In one of our projects, Crystal compiler segfaults on:
Dependencies are satisfied Building: *something* Error target *something* failed to compile: Invalid memory access (signal 11) at address 0x7f54bae43de8 [0x7f54dd6a5c56] ??? [0x7f54dd5efddb] ??? [0x7f54de4734f1] ???
On average, 3-4 release builds out of ten is segfaultting. Each compilation attempt is made as follows:
rm -rf ~/.cache/crystal/ && time shards build --release
We can’t share the project source code, because it’s private.
I can’t create github issue until I have some relevant information instead of several question marks and irrelevant hex addresses. What can I do next? Compile Crystal compiler myself in debug mode? Is there any instruction, how to do it? If I had a debug stacktrace, would that be enough to detect a compiler error?