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: Mon, 26 Feb 2018 07:05:06 +0100 Message-ID: <87muzw4771.fsf@gmail.com> References: <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]:44815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqBvJ-0003V2-VY for bug-guix@gnu.org; Mon, 26 Feb 2018 01:06:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqBvG-0001NL-PG for bug-guix@gnu.org; Mon, 26 Feb 2018 01:06:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:53081) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqBvG-0001NF-KM for bug-guix@gnu.org; Mon, 26 Feb 2018 01:06:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eqBvG-0007LJ-7g for bug-guix@gnu.org; Mon, 26 Feb 2018 01:06:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: ("=?UTF-8?Q?G=C3=A1bor?= Boskovits"'s message of "Sat, 24 Feb 2018 09:24:22 +0100") 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: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 30591@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable G=C3=A1bor Boskovits writes: > I've also seen this before. My workaround was that I created a package > disabling strip-binaries. That worked well enough. I've also added -g3 to > flags, as I needed macro expansions in debug. If you find out anything > useful for the CRC mismatch thing thou, I would be really interested. That > would have saved me lot of time. I was able to work around the problem by defining and then installing the following custom package into my profile: =2D-8<---------------cut here---------------start------------->8--- (define-public maru-vinagre (package (inherit vinagre) (name "maru-vinagre") (outputs '("out")) (arguments (append (package-arguments vinagre) '(#:strip-binaries? #f))))) =2D-8<---------------cut here---------------end--------------->8--- It does NOT add a debug output; instead, it simply disables the stripping of binaries. GDB seems to be unhappy if I strip the symbols and put them into the debug output. I guess maybe it's related to the CRC mismatch mentioned above? Anyway, here's a little more info about what was going on at the time of the segmentation fault: =2D-8<---------------cut here---------------start------------->8--- [0] marusich@garuda.local:~/debug-vinagre $ gdb --quiet /gnu/store/xz88x8dnckvv0ipqfyvj8f2knbyx98lg-maru-vinagre-3.22= .0/bin/.vinagre-real core Reading symbols from /gnu/store/xz88x8dnckvv0ipqfyvj8f2knbyx98lg-maru-vinag= re-3.22.0/bin/.vinagre-real...done. [New LWP 26776] [New LWP 26778] [New LWP 26803] [New LWP 26779] [Thread debugging using libthread_db enabled] Using host libthread_db library "/gnu/store/n6acaivs0jwiwpidjr551dhdni5kgpc= r-glibc-2.26.105-g0890d5379c/lib/libthread_db.so.1". Core was generated by `/home/marusich/.guix-profile/bin/vinagre'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007f8255f06717 in vnc_connection_coroutine () from /gnu/store/pk2ff= 5244nway4cpirqgm0hm4c39i6xr-gtk-vnc-0.7.0/lib/libgvnc-1.0.so.0 [Current thread is 1 (Thread 0x7f825bd29940 (LWP 26776))] (gdb) l 156 ../vinagre-3.22.0/vinagre/vinagre-main.c: No such file or directory. (gdb) help directory Add directory DIR to beginning of search path for source files. Forget cached info on source file locations and line positions. DIR can also be $cwd for the current working directory, or $cdir for the directory in which the source file was compiled into object code. With no argument, reset the search path to $cdir:$cwd, the default. (gdb) directory vinagre-3.22.0 Source directories searched: /home/marusich/debug-vinagre/vinagre-3.22.0:$c= dir:$cwd (gdb) l 156 { 157 gtk_window_present_with_time (window, GDK_CURRENT_TIME); 158 } 159=09 160 vinagre_options_process_command_line (GTK_APPLICATION (app), window, = &optionstate); 161=09 162 out: 163 g_strfreev (argv); 164=09 165 g_option_context_free (context); (gdb) where #0 0x00007f8255f06717 in vnc_connection_coroutine () from /gnu/store/pk2ff= 5244nway4cpirqgm0hm4c39i6xr-gtk-vnc-0.7.0/lib/libgvnc-1.0.so.0 #1 0x00007f8255f098af in coroutine_trampoline () from /gnu/store/pk2ff5244= nway4cpirqgm0hm4c39i6xr-gtk-vnc-0.7.0/lib/libgvnc-1.0.so.0 #2 0x00007f8254c887e0 in ?? () from /gnu/store/n6acaivs0jwiwpidjr551dhdni5= kgpcr-glibc-2.26.105-g0890d5379c/lib/libc.so.6 #3 0x0000000000ae3578 in ?? () #4 0x0000000000000000 in ?? () (gdb)=20 =2D-8<---------------cut here---------------end--------------->8--- The backtrace makes it look like maybe the segfault occurred in gtk-vnc, not vinagre itself, so I guess I'll need to customize more packages to build more debug outputs and try again... I'll keep poking at this as I get time. If anyone has any tips, I'd really appreciate it. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlqTo5MACgkQ3UCaFdgi Rp0NaQ//a6okaBRIIHGXvdRuPmLcfQOjU+6/jSE85Ns+mznwpA+g59+6jDoqKWUD vjPaix17PAWZTUw/8DfYJA3WAXIrvR6uELyaWBwNaSDX7rBx1setBK+kksguHgxa QksEbs7ECQiHw1KIm/YCH3ckP/B/jkYhX7WhfAG+p+5ZEydRLStVoJXRQnSMShCM V/4rUp+C1Eo2aKgvBR13PLXbsBLOHqPU699Eaq+DKC8PMJGhZaNkbvxvU9+DRCLz dGUKUoajDd212ghfemblFkJvCCJacQMONZnCeYc1WEcKdveSQS8QLnfVlV+b8MYE jTJz7c5gXmqErEKmI+rEd4FUb3XnVlMljpfXOHaq6bAs1JOrzzVYoDm3Y+bQknGb E5hKavJn9e5HvAJtSVGSNikbJU7rLKpdvSXCdcKMiJb2X/oXBGvuxklQKsECvATw UBui1KgfARGAHQCwnry2kYW0ZZfRsFXwv6BnfIDm5eWv/troyaP/s6lo2Anw/AjB wVl/8ufveJe1tn82qbMxptXpeo0+QLzkI7ONPBOALfg3HzMBYGhFGEsDnd5W2aWq yQpQ3oC8MgOepvL3krpE6aySP4vQrYW2/aHRP1E49N/yT86ZIUy9kLs2hrgskFh4 aCxTQABMo2bx4H5J4GrtLT2eXZkwhljUaVATmA0IpeiloO+2zUA= =H0dp -----END PGP SIGNATURE----- --=-=-=--