[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30591: Vinagre segmentation fault - and gdb cannot find symbols?

From: Chris Marusich
Subject: bug#30591: Vinagre segmentation fault - and gdb cannot find symbols?
Date: Sat, 24 Feb 2018 08:59:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)


Recently, I've noticed that Vinagre segfaults when I initiate a
connection.  To reproduce, try doing the following:

1) Install Vinagre.
2) Try to connect to a remote host.
3) Vinagre displays a black screen, and about 10-20 seconds later, it

I've obtained a core dump, but it seems I can't get debug symbols from
it.  I'm using a custom version that adds a "debug" output, and my
~/.gdbinit is set up according to what Guix recommends in its manual
((guix) Installing Debugging Files).  What do I need to do to get gdb to
give me useful information?

Example debugging session follows:

--8<---------------cut here---------------start------------->8---
[0] address@hidden:~/debug-vinagre
$ cat ~/.gdbinit 
# Tell GDB where to look for separate debugging files.
set debug-file-directory ~/.guix-profile/lib/debug
# Let GDB auto-load any files it needs.
set auto-load safe-path /
[0] address@hidden:~/debug-vinagre
$ file core 
core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from 
'/home/marusich/.guix-profile/bin/vinagre', real uid: 1000, effective uid: 
1000, real gid: 998, effective gid: 998, execfn: 
 platform: 'x86_64'
[0] address@hidden:~/debug-vinagre
$ tree ~/.guix-profile/lib/debug/
└── gnu
    └── store
        ├── 7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0 -> 
        └── n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25 -> 

4 directories, 0 files
[0] address@hidden:~/debug-vinagre
$ grep -A99 ~/custom-guix-packages/
marusich.scm   marusich.scm~  my-packages/   
[0] address@hidden:~/debug-vinagre
$ grep -A99 maru-vinagre ~/custom-guix-packages/marusich.scm 
(define-public maru-vinagre
  (package (inherit vinagre)
           (name "maru-vinagre")
           (outputs '("out" "debug"))))
[0] address@hidden:~/debug-vinagre
$ guix package --list-installed | grep maru-vinagre
maru-vinagre    3.22.0  debug   
maru-vinagre    3.22.0  out     
[0] address@hidden:~/debug-vinagre
$ gdb --quiet 
Reading symbols from 
warning: the debug information found in 
 does not match 
 (CRC mismatch).

(no debugging symbols found)...done.
[New LWP 28789]
[New LWP 28790]
[New LWP 28791]
[New LWP 28792]
[Thread debugging using libthread_db enabled]
Using host libthread_db library 
Core was generated by `/home/marusich/.guix-profile/bin/vinagre'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f173c081707 in vnc_connection_coroutine () from 
[Current thread is 1 (Thread 0x7f1741e67500 (LWP 28789))]
(gdb) l
No symbol table is loaded.  Use the "file" command.
(gdb) where
#0  0x00007f173c081707 in vnc_connection_coroutine () from 
#1  0x00007f173c08489f in coroutine_trampoline () from 
#2  0x00007f173ae6c990 in ?? () from 
#3  0x000000000101ec08 in ?? ()
#4  0x0000000000000000 in ?? ()
--8<---------------cut here---------------end--------------->8---

I'm pretty new to debugging C programs in gdb, so if I'm making any
obvious mistakes, I'd really appreciate it if you'd let me know!

Thank you,


Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]