Skip to content

Conversation

@sstadick
Copy link
Contributor

No description provided.

Signed-off-by: Seth Stadick <sstadick@gmail.com>
@sstadick sstadick force-pushed the issue-50 branch 5 times, most recently from e6bc72d to d8e9f43 Compare June 23, 2025 19:38
Signed-off-by: Seth Stadick <sstadick@gmail.com>
It very much seems like there is a compiler bug optimizing the inner
loop of profile creation with AVX512. When I use a `keep` around
the vars to index in, it works, but without them it doesn't. The
assembly generated between them also offers a hint:

https://mojo.compiler-explorer.com/z/EzcxfxqnM

AI looking at the assembly diff seems to think that it's possible
that the vecotrized version is using a stack temp variable and
writing outside that at some point. This is further enforced when
running with GDB:

```
pixi run gdb --batch --ex run --ex bt --ex quit --args mojo run -I . tests/test_searcher.mojo
```

where it shows a segfault:o

```
Thread 1 "mojo" received signal SIGSEGV, Segmentation fault.
0x00007fff88037d9d in ?? ()
```

However, I haven't been able to get a mimial example to reproduce
outside the full codebase.

Signed-off-by: Seth Stadick <sstadick@gmail.com>
@sstadick
Copy link
Contributor Author

Fixes #50
Possible bug filed: modular/modular#4894

@sstadick sstadick merged commit 6d715cb into main Jun 24, 2025
4 checks passed
@sstadick sstadick deleted the issue-50 branch June 24, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants