Skip to content

tf.raw_ops.LoopCond aborts in Debug build #62982

Description

@Sehun0819

Issue type

Bug

Have you reproduced the bug with TensorFlow Nightly?

Yes

Source

source

TensorFlow version

tf 2.17

Custom code

Yes

OS platform and distribution

Linux Ubuntu 22.04 LTS

Mobile device

No response

Python version

3.11.7

Bazel version

6.5.0

GCC/compiler version

clang 16

CUDA/cuDNN version

No response

GPU model and memory

No response

Current behavior?

tf.raw_ops.LoopCond aborts in Debug build(compiled with --config=dbg).
In release build, it does not crash.

Standalone code to reproduce the issue

import tensorflow as tf

# it aborts only when compiled with `--config=dbg`
tf.raw_ops.LoopCond(input=True)

Relevant log output

2024-02-18 02:37:24.039192: F tensorflow/core/graph/graph_partition.cc:644] Check failed: !frame_name.empty() 
Aborted (core dumped)

Activity

  1. SuryanarayanaY commented on Feb 19, 2024

    @SuryanarayanaY
    Collaborator

    Hi @Sehun0819 ,

    Thanks for reporting. Could you please confirm whether this works fine with TF2.16 or lower ? I don't see any changes in .bazelrc either.

  2. added
    type:build/install
    subtype: ubuntu/linux
    on Feb 19, 2024
  3. Sehun0819 commented on Feb 19, 2024

    @Sehun0819
    Author

    @SuryanarayanaY
    I just found TF2.16 behaves in the same manner. Below is execution log in my environment.
    Note that it was also built with --config=dbg.

    Python 3.11.7 (main, Dec 15 2023, 18:12:31) [GCC 11.2.0] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import tensorflow as tf
    2024-02-19 21:38:38.963814: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
    To enable the following instructions: SSE3 SSE4.1 SSE4.2 AVX AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
    >>> tf.__version__
    '2.16.0-rc0'
    >>> tf.raw_ops.LoopCond(input=True)
    2024-02-19 21:38:54.052798: F tensorflow/core/graph/graph_partition.cc:644] Check failed: !frame_name.empty()
    Aborted (core dumped)
    
  4. SuryanarayanaY commented on Feb 19, 2024

    @SuryanarayanaY
    Collaborator

    In release build, it does not crash.

    Hi @Sehun0819 , As per your note above, could you please confirm which build it was success ?

  5. Sehun0819 commented on Feb 19, 2024

    @Sehun0819
    Author

    @SuryanarayanaY
    Does 'success' mean successful bug reproducing?
    It was TF2.17 built from source with --config=dbg flag.

  6. SuryanarayanaY commented on Feb 22, 2024

    @SuryanarayanaY
    Collaborator

    Hi @Sehun0819 , I mean in any older TF version debug build tf.raw_ops.LoopCond(input=True) works without crash? This would be helpful whether this a regression problem or it exists since a while ?

  7. Sehun0819 commented on Feb 23, 2024

    @Sehun0819
    Author

    @SuryanarayanaY
    I have no idea because I just checked TF2.16 and TF2.17, and I haven't build previous versions from source.

  8. added
    stat:awaiting tensorflower
    on Mar 19, 2024
  9. removed
    stat:awaiting tensorflower
    on Jun 8, 2026
  10. Kayyuri commented on Jun 8, 2026

    @Kayyuri

    Hi @Sehun0819,
    Thank you so much for filing this issue! We truly appreciate your support. At the moment, this request is not prioritized and mark it for community contributions. If you would like to contribute on a fix, please feel free to fork the repository and submit a pull request in accordance with the TensorFlow CONTRIBUTION GUIDELINES and link this issue in your PR to ensure the maintainers can easily review and collaborate.
    To avoid duplicate work, please leave a comment here if you decide to take it on!

    Thank you again for your interest and we look forward to seeing your contributions!

  11. added
    stat:contribution welcome
    on Jun 8, 2026
  12. removed
    stat:contribution welcome
    on Oct 20, 2026
  13. Venkat6871 commented on Oct 20, 2026

    @Venkat6871
    Contributor

    Hi @Sehun0819 ,
    Thank you for raising your concern here.
    A fix for this issue has been proposed in this #129186. Once it is merged, this issue will be resolved.

    Hi @bodapatisaikrishna ,
    Thank you for raising the PR to address this issue. We truly appreciate your initiative and the effort in contributing the fix.

  14. added
    awaiting PR merge
    2.17
    on Oct 20, 2026
  15. google-ml-butler commented on Oct 23, 2026

    @google-ml-butler

    Are you satisfied with the resolution of your issue?
    Yes
    No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

2.17awaiting PR mergesubtype: ubuntu/linuxtype:bugtype:build/install

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions