Juno.jl
Juno.jl copied to clipboard
[BUG] Segfault when hovering the mouse over a const
Julia segfaults when I hover my mouse over a value defined as a const.
Details
- Atom version: 1.52.0
- Julia version: 1.5.0 and master
- OS: Ubuntu
- Package versions:
- Atom.jl: 0.12.24
- julia-client: 0.12.26
- ink: 0.12.5
Steps to reproduce
I'm not sure this is fully minimal but here is a somewhat small reproducer:
- Create a local package and
dev
it: here I called itTEST
. - Add a dependency: I used
Logging
below but it also crashed withSerialization
for instance. - Create a
const
from a type that comes from the dependency. - Open your REPL, call your package with
using TEST
- Hover your mouse above the name of the
const
and don't move it.
The full stacktrace is:
signal (11): Segmentation fault
in expression starting at none:0
uv_fileno at /workspace/srcdir/libuv/src/unix/core.c:729
_fd at ./stream.jl:1065 [inlined]
show at ./stream.jl:205
unknown function (ip: 0x7f0b7dc48005)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2231 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
_show_default at ./show.jl:406
show_default at ./show.jl:389 [inlined]
show at ./show.jl:384 [inlined]
show at ./multimedia.jl:47 [inlined]
__binrepr at ./multimedia.jl:161 [inlined]
_textrepr at ./multimedia.jl:151 [inlined]
#repr#1 at ./multimedia.jl:147
repr##kw at ./multimedia.jl:147
unknown function (ip: 0x7f0b7dc47ce5)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2231 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
processval! at /home/liozou/.julia/packages/Atom/MxsDb/src/datatip.jl:115
unknown function (ip: 0x7f0b7dc47630)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2231 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
globaldatatip at /home/liozou/.julia/packages/Atom/MxsDb/src/datatip.jl:66
datatip at /home/liozou/.julia/packages/Atom/MxsDb/src/datatip.jl:27
unknown function (ip: 0x7f0b7dc32077)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
#311 at /home/liozou/.julia/packages/Atom/MxsDb/src/datatip.jl:16
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
handlemsg at /home/liozou/.julia/packages/Atom/MxsDb/src/comm.jl:169
unknown function (ip: 0x7f0b7dba9feb)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1690 [inlined]
do_apply at /buildworker/worker/package_linux64/build/src/builtins.c:655
#31 at ./task.jl:356
unknown function (ip: 0x7f0b7db9cc44)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1690 [inlined]
start_task at /buildworker/worker/package_linux64/build/src/task.c:707
unknown function (ip: (nil))
Allocations: 29317955 (Pool: 29310829; Big: 7126); GC: 31
I will probably open an issue on the main Julia repo as well, unless you think it's not worth it.
I can't repro this on Julia 1.5.0 and [email protected]. This does indeed seem like a Base issue, given that the segfault occurs somewhere in repr
.
Looking into the Atom
source files, I can reproduce the issue simply by calling Atom.globaldatatip("TEST", "customLogger")
after loading the TEST
module defined like in the gif. It still does not crash for you?
Nope.
All right. I'm trying to reduce it further and once it's done I'll report it upstream.