From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: bug#30591: Vinagre segmentation fault - and gdb cannot find symbols? Date: Sat, 24 Feb 2018 08:59:16 +0100 Message-ID: <87tvu6q0mj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epUkZ-0002In-NM for bug-guix@gnu.org; Sat, 24 Feb 2018 03:00:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epUkU-0008Gt-SK for bug-guix@gnu.org; Sat, 24 Feb 2018 03:00:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:50262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epUkU-0008GJ-P8 for bug-guix@gnu.org; Sat, 24 Feb 2018 03:00:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1epUkU-0007a6-IO for bug-guix@gnu.org; Sat, 24 Feb 2018 03:00:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1epUjv-00020W-Sm for bug-guix@gnu.org; Sat, 24 Feb 2018 02:59:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1epUjq-0007aW-AR for bug-guix@gnu.org; Sat, 24 Feb 2018 02:59:27 -0500 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:44242) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1epUjq-0007ZZ-2f for bug-guix@gnu.org; Sat, 24 Feb 2018 02:59:22 -0500 Received: by mail-pf0-x22a.google.com with SMTP id 17so4467494pfw.11 for ; Fri, 23 Feb 2018 23:59:21 -0800 (PST) Received: from garuda.local (c-24-18-253-84.hsd1.wa.comcast.net. [24.18.253.84]) by smtp.gmail.com with ESMTPSA id a13sm7798064pgd.1.2018.02.23.23.59.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Feb 2018 23:59:18 -0800 (PST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 30591@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, 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 crashes. 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: =2D-8<---------------cut here---------------start------------->8--- [0] marusich@garuda.local:~/debug-vinagre $ cat ~/.gdbinit=20 # 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] marusich@garuda.local:~/debug-vinagre $ file core=20 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: 1= 000, real gid: 998, effective gid: 998, execfn: '/gnu/store/7w9pimrkk7n1f9z= xw9va6jkhmgyw8bbv-maru-vinagre-3.22.0/bin/.vinagre-real', platform: 'x86_64' [0] marusich@garuda.local:~/debug-vinagre $ tree ~/.guix-profile/lib/debug/ /home/marusich/.guix-profile/lib/debug/ =E2=94=94=E2=94=80=E2=94=80 gnu =E2=94=94=E2=94=80=E2=94=80 store =E2=94=9C=E2=94=80=E2=94=80 7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-v= inagre-3.22.0 -> /gnu/store/j6nkca3pr1vhbd8bf25pphcwk66fb7nj-maru-vinagre-3= .22.0-debug/lib/debug/gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinag= re-3.22.0 =E2=94=94=E2=94=80=E2=94=80 n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-= 2.25 -> /gnu/store/z1y36la9q1xkc5i5vcxqm7d995nrngmn-gcc-toolchain-7.2.0/lib= /debug/gnu/store/n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25 4 directories, 0 files [0] marusich@garuda.local:~/debug-vinagre $ grep -A99 ~/custom-guix-packages/ marusich.scm marusich.scm~ my-packages/=20=20=20 [0] marusich@garuda.local:~/debug-vinagre $ grep -A99 maru-vinagre ~/custom-guix-packages/marusich.scm=20 (define-public maru-vinagre (package (inherit vinagre) (name "maru-vinagre") (outputs '("out" "debug")))) [0] marusich@garuda.local:~/debug-vinagre $ guix package --list-installed | grep maru-vinagre maru-vinagre 3.22.0 debug /gnu/store/j6nkca3pr1vhbd8bf25pphcwk66fb7nj-maru-= vinagre-3.22.0-debug maru-vinagre 3.22.0 out /gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vi= nagre-3.22.0 [0] marusich@garuda.local:~/debug-vinagre $ gdb --quiet /gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22= .0/bin/.vinagre-real core Reading symbols from /gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinag= re-3.22.0/bin/.vinagre-real... warning: the debug information found in "/home/marusich/.guix-profile/lib/d= ebug//gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0/bin/.v= inagre-real.debug" does not match "/gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8= bbv-maru-vinagre-3.22.0/bin/.vinagre-real" (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 "/gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8klha= h-glibc-2.25/lib/libthread_db.so.1". Core was generated by `/home/marusich/.guix-profile/bin/vinagre'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f173c081707 in vnc_connection_coroutine () from /gnu/store/slxc1= lf23wdzjamn6pfp2inrzy74dbwh-gtk-vnc-0.7.0/lib/libgvnc-1.0.so.0 [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 /gnu/store/slxc1= lf23wdzjamn6pfp2inrzy74dbwh-gtk-vnc-0.7.0/lib/libgvnc-1.0.so.0 #1 0x00007f173c08489f in coroutine_trampoline () from /gnu/store/slxc1lf23= wdzjamn6pfp2inrzy74dbwh-gtk-vnc-0.7.0/lib/libgvnc-1.0.so.0 #2 0x00007f173ae6c990 in ?? () from /gnu/store/3h31zsqxjjg52da5gp3qmhkh4x8= klhah-glibc-2.25/lib/libc.so.6 #3 0x000000000101ec08 in ?? () #4 0x0000000000000000 in ?? () (gdb)=20 =2D-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, =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlqRG1QACgkQ3UCaFdgi Rp0Skg/+L40LWEp+Tv30W5Ifpb703TjhnUlMotRhtuVlvsRYZySD9IaTiCER9/pX WJ8rOV4uCw2/6IAhWiuX2VCr2FnAOBfU411++OmCbLgblQPhr94UjP0kXM/Mc6Ro b7A6InMfGIccloS07hWza1idB6m5RaRRefJ+qY9xAejKK/6keiB/3bfhqH/cRmML DdCwVXosHZ0I1FcJHOHYwEcFqMzpefGsYp7nQRLm8QtIJKRbcKqVLE2SqHdmcWry tDi5pcToMBkyhmTpslFLUvywsogEinOb0yzis+IuguUgYIV1LP0bXAtAfV7x0q9/ 1nyMXc98e3sTwwzLDUrN98lO9FqSDYAm7OJg2nHx2XwVqtsQewvDMAIkxVbvvWC9 Fh2AxjpNkSPPbLPImK5m3Im5c4550TMru354/vlw2iMQHLH1aI3fwKZBL1p4+UQ6 7FA6TXc700k8lXP71fL8aRixuqV/siR9dIZSmcR6KUKbzENR7qUpXojhwzuTkd8d JWnsB2++OgW5Rxjo0WXx3eKIH4E1T21lZ2nbtjLVfqmDQkdJQEKh5bAUyiRLf1+S hfZP4iLt75vzaJ78rEB22i5oBZphWgSfLDnec4l37HuiVA16MoKIUKzkfyM3a2KJ gP59BdOeNkdj3xP+hF/Lyzb5/Iw1cxRl0mm/8Dr1odQ4u1KM7GI= =Ni2+ -----END PGP SIGNATURE----- --=-=-=--