`tf.raw_ops.LoopCond` aborts in Debug build
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. @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)
``` > In release build, it does not crash.

Hi @Sehun0819 , As per your note above, could you please confirm which build it was success ? @SuryanarayanaY
Does 'success' mean successful bug reproducing?
It was TF2.17 built from source with `--config=dbg` flag. 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 ? @SuryanarayanaY 
I have no idea because I just checked TF2.16 and TF2.17, and I haven't build previous versions from source.
### 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

```shell
import tensorflow as tf

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


### Relevant log output

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