[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segfault when building GTK+ application with Meson
From: |
HiPhish |
Subject: |
Re: Segfault when building GTK+ application with Meson |
Date: |
Sun, 14 Mar 2021 16:41:12 +0100 |
I have tried running the application through GDB to print a backtrace, and
here is what it prints:
$ gdb ./build/src/vala-language-server
GNU gdb (GDB) 10.1
(gdb) run
Starting program: /home/hiphish/Applications/lsp/vala-language-server/build/
src/vala-language-server
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-
glibc-2.31/lib/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7fe1f2c in call_init (l=<optimized out>, argc=argc@entry=1,
argv=argv@entry=0x7fffffffdd28,
env=env@entry=0x7fffffffdd38) at dl-init.c:74
74 dl-init.c: No such file or directory.
(gdb) bt
#0 0x00007ffff7fe1f2c in call_init (l=<optimized out>, argc=argc@entry=1,
argv=argv@entry=0x7fffffffdd28,
env=env@entry=0x7fffffffdd38) at dl-init.c:74
#1 0x00007ffff7fe20a1 in call_init (env=0x7fffffffdd38, argv=0x7fffffffdd28,
argc=1,
l=<optimized out>) at dl-init.c:37
#2 _dl_init (main_map=0x7ffff7ffe1a0, argc=1, argv=0x7fffffffdd28,
env=0x7fffffffdd38)
at dl-init.c:88
#3 0x00007ffff7fd308a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#4 0x0000000000000001 in ?? ()
#5 0x00007fffffffe10e in ?? ()
#6 0x0000000000000000 in ?? ()
To me it looks like even before the segmentation fault happens even before the
main function has been called, and it happens in a system library. Is there a
dependency I am missing? I still don't understand why the program only crashes
if I compile it myself with dependencies from Guix, but not if I install the
application itself through Guix.