I have an interesting (in the Chinese proverb sense) problem here.
While working on SPICE.jl I have been having problems with Julia crashing in the test suite but I had not been able to reproduce it consistently until now.
I have narrowed it down to two parameters:
- The first one is confusingly the size of the code base. When there is a certain amount of code Julia will crash. What kind of code it is does not seem to matter. More confusingly the problem can also go away when adding more code until it reappears later when the size of the code is “right” again.
- The inlining pass and/or precompiling seems to blame. I originally could not reproduce the crashes because I did not realize that they would only occur with the exact same flags that the
Pkg.test()operation uses to spawn Julia., i.e. the crashes will only occur with
The backtrace and the 30k lines of output produced by running the test suite are here https://gist.github.com/helgee/83658705479ac566f15abb3a7e1966a1
The code is on this branch: https://github.com/JuliaAstro/SPICE.jl/tree/segfault
Another “fun” fact: When I pipe the output of the crashing command to a file, Julia will not crash
Any ideas? I would like to narrow this a little more before opening an issue but I have no clue how to proceed.