-
Notifications
You must be signed in to change notification settings - Fork 13
Compiled hello.jl hangs #46
Comments
Huh, yeah for me it behaves very similarly, but it segfaults instead of hanging. (I'm on 164454
164455
164456
164457
signal (11): Segmentation fault: 11
while loading no file, in expression starting on line 0
gc_push_root at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
gc_mark_stack at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
gc_scan_obj_ at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
gc_push_root at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
...
gc_scan_obj_ at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
gc_push_root at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
gc_mark_module at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
gc_scan_obj_ at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
gc_push_root at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
gc_mark_module at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
gc_scan_obj_ at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
gc_push_root at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
_jl_gc_collect at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jl_gc_collect at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jl_gc_pool_alloc at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jl_gc_alloc at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
jl_alloc_string at /Applications/Julia-0.6.app/Contents/Resources/julia/lib/libjulia.dylib (unknown line)
dec at /Users/daly/src/static-julia/builddir/libhello.dylib (unknown line)
print at ./show.jl:261
unknown function (ip: 0x11ac57099)
print at ./strings/io.jl:40
julia_main at /Users/daly/src/static-julia/builddir/libhello.dylib (unknown line)
julia_main at /Users/daly/src/static-julia/builddir/libhello.dylib (unknown line)
main at /Users/daly/src/static-julia/./builddir/hello (unknown line)
Allocations: 2321417 (Pool: 2320272; Big: 1145); GC: 0
[2] 40575 segmentation fault ./builddir/hello For me, it seems like which number it segfaults on is more dependent on how I invoke it than on recompiling:
the numbers always seemed to be around 164,000: And, of course, calling this method from the julia REPL directly works just fine. |
Based on the segfault, it looks like the error is something to do with attempting to allocate and then print the string. And, in fact, I can verify that it works just fine if the print statement is moved to after the while loop:
|
And I guess the failing call to
I guess for some reason it's messing up when trying to alloc so many strings so quickly... Looks like a bug, but I wouldn't know where to look. |
Hi- I'm fairly new to Julia but have been having an issue with compiling static julia.
my hello.jl:
which prints the numbers from 1 to n as expected when called from Julia. However, when compiling this and running it, it will hang at some large number (the number it hangs at is the same every time it is run after being compiled, but changes when recompiled).
I don't think it is an IO issue, since another program which did more work in the loop, but did not print anything was also hanging.
This was compiled with Julia version 0.6.1
The text was updated successfully, but these errors were encountered: