Non-reproducable [REPL help, but really GC] bug in 0.5.2; report this or other bugs in old versions?


#1

EDIT: I see now just minutes after with top “65956 free” (I often see lower, and get OOM, e.g. for firefox processes, not sure it happened now), in case memory/resources run out, can and should/does(current Julia?) Julia give you more friendly/informative error (in case that actually happened here):

Jul 4 16:59:00 Ryksugan kernel: [915898.672390] —[ end trace bf49870dbcf9f02d ]—
[older above, i.e. only this one line in /var/log/kern.log]
Jul 4 18:15:08 Ryksugan kernel: [920467.355583] julia[3253]: segfault at 220bedbab8 ip 00007fc31399dfda sp 00007ffc4b0a3500 error 4 in libjulia.so.0.5.2[7fc31391d000+196000]

I’m not sure I should be reporting on GitHub, in case this might also be in later versions.

Has anyone had this happen [for trivial search] or an idea why it happened?

help?> std
search: std stdm STDIN STDOUT STDERR setdiff setdiff! hist2d hist2d! stride

[just showing REPL worked ok up to including last command, that was also a help search]
help?> parallel
search: @parallel

Couldn't find parallel

signal (11): Segmentation fault
while loading no file, in expression starting on line 139
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1384
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1386
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1386
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1484
gc_push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1183 [inlined]
gc_mark_module at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1212
push_root at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1447
visit_mark_stack at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1521 [inlined]
_jl_gc_collect at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1729 [inlined]
jl_gc_collect at /build/julia-bVoEld/julia-0.5.2/src/gc.c:1883
jl_gc_pool_alloc at /build/julia-bVoEld/julia-0.5.2/src/gc.c:828
levenshtein at ./docs/utils.jl:224
unknown function (ip: 0x7fc30e37889f)
jl_call_method_internal at /build/julia-bVoEld/julia-0.5.2/src/julia_internal.h:211 [inlined]
jl_apply_generic at /build/julia-bVoEld/julia-0.5.2/src/gf.c:1950
#28 at ./docs/utils.jl:237 [inlined]
map at ./essentials.jl:124
levsort at ./docs/utils.jl:237
unknown function (ip: 0x7fc30e37cf5f)
jl_call_method_internal at /build/julia-bVoEld/julia-0.5.2/src/julia_internal.h:211 [inlined]
jl_apply_generic at /build/julia-bVoEld/julia-0.5.2/src/gf.c:1950
print_correction at ./docs/utils.jl:289
repl_corrections at ./docs/utils.jl:129
unknown function (ip: 0x7fc101b19786)
jl_call_method_internal at /build/julia-bVoEld/julia-0.5.2/src/julia_internal.h:211 [inlined]
jl_apply_generic at /build/julia-bVoEld/julia-0.5.2/src/gf.c:1950
repl_corrections at ./docs/utils.jl:132
unknown function (ip: 0x7fc101b19632)
jl_call_method_internal at /build/julia-bVoEld/julia-0.5.2/src/julia_internal.h:211 [inlined]
jl_apply_generic at /build/julia-bVoEld/julia-0.5.2/src/gf.c:1950
do_call at /build/julia-bVoEld/julia-0.5.2/src/interpreter.c:66
eval at /build/julia-bVoEld/julia-0.5.2/src/interpreter.c:190
eval_body at /build/julia-bVoEld/julia-0.5.2/src/interpreter.c:550
jl_interpret_call at /build/julia-bVoEld/julia-0.5.2/src/interpreter.c:573
jl_toplevel_eval_flex at /build/julia-bVoEld/julia-0.5.2/src/toplevel.c:572 [inlined]
jl_toplevel_eval at /build/julia-bVoEld/julia-0.5.2/src/toplevel.c:580
jl_toplevel_eval_in_warn at /build/julia-bVoEld/julia-0.5.2/src/builtins.c:590
eval at ./boot.jl:234
unknown function (ip: 0x7fc30e2bfd6f)
jl_call_method_internal at /build/julia-bVoEld/julia-0.5.2/src/julia_internal.h:211 [inlined]
jl_apply_generic at /build/julia-bVoEld/julia-0.5.2/src/gf.c:1950
eval_user_input at ./REPL.jl:64
unknown function (ip: 0x7fc101b03036)
jl_call_method_internal at /build/julia-bVoEld/julia-0.5.2/src/julia_internal.h:211 [inlined]
jl_apply_generic at /build/julia-bVoEld/julia-0.5.2/src/gf.c:1950
macro expansion at ./REPL.jl:95 [inlined]
#3 at ./event.jl:68
unknown function (ip: 0x7fc101afff0f)
jl_call_method_internal at /build/julia-bVoEld/julia-0.5.2/src/julia_internal.h:211 [inlined]
jl_apply_generic at /build/julia-bVoEld/julia-0.5.2/src/gf.c:1950
jl_apply at /build/julia-bVoEld/julia-0.5.2/src/julia.h:1388 [inlined]
start_task at /build/julia-bVoEld/julia-0.5.2/src/task.c:254
unknown function (ip: 0xffffffffffffffff)
Allocations: 3059967 (Pool: 3058882; Big: 1085); GC: 2

^C
^Z
Segmentation fault (core dumped)


$
$
$ julia

help?> parallel
search: @parallel

Couldn't find parallel
Perhaps you meant @parallel or parse
  No documentation found.

  Binding parallel does not exist.

julia> versioninfo(true)
Julia Version 0.5.2
Commit f4c6c9d4bb (2017-05-06 16:34 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM)2 Duo CPU     T8100  @ 2.10GHz
  WORD_SIZE: 64
           Ubuntu 16.04.4 LTS
  uname: Linux 4.4.0-124-generic #148-Ubuntu SMP Wed May 2 13:00:18 UTC 2018 x86_64 x86_64
Memory: 3.8496665954589844 GB (105.203125 MB free)
Uptime: 4.742024e6 sec
Load Avg:  0.77978515625  0.75048828125  0.86083984375
Intel(R) Core(TM)2 Duo CPU     T8100  @ 2.10GHz: 
       speed         user         nice          sys         idle          irq
#1  2101 MHz   31456703 s     185964 s    5258787 s   53434934 s          0 s
#2  2101 MHz   31327978 s     219846 s    5569374 s     969892 s          0 s

  BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Penryn)
  LAPACK: liblapack.so.3
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, penryn)
Environment:
  TERM = xterm-256color
  XDG_SESSION_PATH = /org/freedesktop/DisplayManager/Session0
  XDG_SEAT_PATH = /org/freedesktop/DisplayManager/Seat0
  DEFAULTS_PATH = /usr/share/gconf/ubuntu.default.path
  PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  MANDATORY_PATH = /usr/share/gconf/ubuntu.mandatory.path
[..]

#2

v0.5.2 is marked as unmaintained: https://julialang.org/downloads/oldreleases.html and I can’t reproduce the issue on the current v0.6.3 release, so there’s probably not much to be gained by opening an issue. Can you just upgrade to a supported version of Julia?