Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

gl-area example causes segfault (SIGSEGV) #417

Closed
dmos62 opened this issue May 29, 2019 · 2 comments
Closed

gl-area example causes segfault (SIGSEGV) #417

dmos62 opened this issue May 29, 2019 · 2 comments

Comments

@dmos62
Copy link

dmos62 commented May 29, 2019

Experiencing this segfault when running gl-area.jl example:

> julia gl-area.jl
signal (11): Segmentation fault
in expression starting at /home/domas/darbalaukiai/mano/piesejas1/gtk_examples/g
l-area.jl:42
_ZN4llvm13StringMapImpl15LookupBucketForENS_9StringRefE at /home/domas/opt/julia
/bin/../lib/julia/libLLVM-6.0.so (unknown line)
_ZN4llvm9StringMapIPNS_2cl6OptionENS_15MallocAllocatorEE11try_emplaceIJS3_EEESt4
pairINS_17StringMapIteratorIS3_EEbENS_9StringRefEDpOT_ at /home/domas/opt/julia/
bin/../lib/julia/libLLVM-6.0.so (unknown line)
_ZN12_GLOBAL__N_117CommandLineParser9addOptionEPN4llvm2cl6OptionEPNS2_10SubComma
ndE at /home/domas/opt/julia/bin/../lib/julia/libLLVM-6.0.so (unknown line)
_ZN4llvm2cl6Option11addArgumentEv at /home/domas/opt/julia/bin/../lib/julia/libL
LVM-6.0.so (unknown line)
unknown function (ip: 0x7f43dd217723)
call_init.part.0 at /lib64/ld-linux-x86-64.so.2 (unknown line)
_dl_init at /lib64/ld-linux-x86-64.so.2 (unknown line)
dl_open_worker at /lib64/ld-linux-x86-64.so.2 (unknown line)
_dl_catch_error at /lib64/ld-linux-x86-64.so.2 (unknown line)
_dl_open at /lib64/ld-linux-x86-64.so.2 (unknown line)
dlopen_doit at /lib64/libdl.so.2 (unknown line)
_dl_catch_error at /lib64/ld-linux-x86-64.so.2 (unknown line)
_dlerror_run at /lib64/libdl.so.2 (unknown line)
dlopen at /lib64/libdl.so.2 (unknown line)
unknown function (ip: 0x7f43e786af21)
unknown function (ip: 0x7f43e786db44)
unknown function (ip: 0x7f43e784d423)
unknown function (ip: 0x7f43e7849a9a)
glXQueryServerString at /usr/lib64/../lib64/libGL.so.1 (unknown line)
epoxy_glx_version at /usr/lib64/../lib64/libepoxy.so.0 (unknown line)
unknown function (ip: 0x7f43e9739e50)
unknown function (ip: 0x7f43e973a4c6)
unknown function (ip: 0x7f43e971be69)
gdk_window_create_gl_context at /usr/lib64/../lib64/libgdk-3.so.0 (unknown line)
unknown function (ip: 0x7f43e9b50051)
unknown function (ip: 0x7f43e9b94d86)
g_closure_invoke at /usr/lib64/libgobject-2.0.so (unknown line)
unknown function (ip: 0x7f43ea9026ed)
g_signal_emit_valist at /usr/lib64/libgobject-2.0.so (unknown line)
g_signal_emit at /usr/lib64/libgobject-2.0.so (unknown line)
unknown function (ip: 0x7f43e9b4fe88)
unknown function (ip: 0x7f43ea8f0b63)
g_signal_emit_valist at /usr/lib64/libgobject-2.0.so (unknown line)
g_signal_emit at /usr/lib64/libgobject-2.0.so (unknown line)
gtk_widget_realize at /usr/lib64/libgtk-3.so (unknown line)
gtk_widget_set_parent at /usr/lib64/libgtk-3.so (unknown line)
unknown function (ip: 0x7f43e9a9592a)
g_cclosure_marshal_VOID__OBJECTv at /usr/lib64/libgobject-2.0.so (unknown line)
unknown function (ip: 0x7f43ea8f0b63)
g_signal_emit_valist at /usr/lib64/libgobject-2.0.so (unknown line)
g_signal_emit at /usr/lib64/libgobject-2.0.so (unknown line)
gtk_container_add at /usr/lib64/libgtk-3.so (unknown line)
push! at /home/domas/.julia/packages/Gtk/aP55V/src/container.jl:2
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1842
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2197
do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:323
eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:411
eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:362 [inlined]
eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:773
jl_interpret_toplevel_thunk_callback at /buildworker/worker/package_linux64/build/src/interpreter.c:885
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x7f43f865c5af)
unknown function (ip: 0xffffffffffffffff)
jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:894
jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:764
jl_parse_eval_all at /buildworker/worker/package_linux64/build/src/ast.c:883
jl_load at /buildworker/worker/package_linux64/build/src/toplevel.c:826
include at ./boot.jl:326 [inlined]
include_relative at ./loading.jl:1038
include at ./sysimg.jl:29
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2197
exec_options at ./client.jl:267
_start at ./client.jl:436
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2197
unknown function (ip: 0x40191d)
unknown function (ip: 0x401523)
__libc_start_main at /lib64/libc.so.6 (unknown line)
unknown function (ip: 0x4015c4)
Allocations: 4268226 (Pool: 4267374; Big: 852); GC: 8
fish: Job 2, 'julia gl-area.jl' terminated by signal SIGSEGV (Address boundary error)

Other examples don't crash. Though unless you run task_issue.jl like this: julia -L task_issue.jl, it closes immediately.

Also, when doing compile_incremental with PackageCompiler, it segfaults as well, though I tried it with the drawing.jl GtkReactive example (that example works ok, apart from also needing to be run with julia -L).

Edit: trying compile_incremental on the 2048.jl example from Gtk.jl segfaults as well.

@dmos62
Copy link
Author

dmos62 commented May 29, 2019

I was experiencing segfaults with GLFW.jl also, so I opened an issue there as well. It already has some insight into the problem, and it's probably the same one. A straightforward fix is not apparent yet though. JuliaGL/GLFW.jl#183

This has turned into a sort of double-post, sorry about that.

@dmos62
Copy link
Author

dmos62 commented May 29, 2019

Solved here.

@dmos62 dmos62 closed this as completed May 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant