Ewa Matejska
Ewa Matejska
Thanks. Closing this per the comment above and let us know if anything else is an issue.
Is this a dup of global var support, not that this should crash ? @Mogball
@jackos Interested to take a look at this to see if this is a problem in the code or a compiler issue?
Thanks for the examples and analysis!
Error that is visible is: ``` 0 mojo 0x0000000102d224b8 llvm_strlcpy + 51480 1 mojo 0x0000000102d207a4 llvm_strlcpy + 44036 2 mojo 0x0000000102d22b58 llvm_strlcpy + 53176 3 libsystem_platform.dylib 0x00000001a4876a24 _sigtramp + 56...
Reduced testcase ``` from tensor import Tensor, TensorSpec, TensorShape from utils.index import Index fn main(): var spec = TensorSpec(DType.bool, 1, 1) var matrix = Tensor[DType.bool](spec) for i in range(matrix.shape()[0]): for...
This could definitely use a better error message behavior.
Thank you, we appreciate your report. I passed it along to the engineering team for more feedback.
@Mogball Heads up looks like a regression.
Reproduces with mojo 2024.7.1005 (a9695bc7)