malloc error with M2 mac
@zavataafnan,
The image which you provided is related to the **I(information)** which might not be affecting the execution of the code. Also I suspect this issue might be a mismatch of the Bazel version you are trying with the tensorflow v2.15. 
https://www.tensorflow.org/install/source#cpu_2

Could you please try with the compatible Bazel 6.1.0 with the tensorflow v2.15. Thank you! @tilakrayal,
thank you for your response. My Bazel version is 7.0.2. Unfortunately, downgrading Bazel to 6.1.0 is not straightforward in Mac. it has many dependencies like OpenJDK. 
when do you think it will be released with the upper Bazel version?
Can I also use a snapshot of tensorflow that maybe is okay with higher Bazel?

Best Regards,
Mostafa @zavataafnan,
We can't mention right now that for which tensorflow releases the upper(higher) Bazel version would be compatible. It will be mentioned in the same official document which was provided. Also for the smooth tensorflow usage, we strongly recommend the community to use the compatible versions rather than higher or lower versions.

Also please take a look at this official [document](https://github.com/bazelbuild/bazelisk?tab=readme-ov-file#how-does-bazelisk-know-which-bazel-version-to-run) for the reference which provides the information about the Bazelisk for which Bazel version to run. Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62925">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62925">No</a>

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

binary

### TensorFlow version

v2.15.0-rc1-8-g6887368d6d4 2.15.0

### Custom code

Yes

### OS platform and distribution

macOS 14.2.1 (23C71)

### Mobile device

_No response_

### Python version

3.11.7

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

I want to use TensorFlow to train a neural network with macOS 14 with a m2 CPU. 
With the latest TensorFlow, I can run the code and train without problem in Windows. But I got this error when I ran in macOS:
![Screenshot 2024-02-08 at 20 51 23](https://github.com/tensorflow/tensorflow/assets/8389046/6c5dc557-ef00-47ec-9ee0-28dfbb23e7f1)



### Standalone code to reproduce the issue

```shell
Please see this github repository. 
I run test3.py

https://github.com/zavataafnan/ann_tensor
there is also a data file.
```


### Relevant log output

_No response_