GNU bug report logs - #30591
Vinagre segmentation fault - and gdb cannot find symbols?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Chris Marusich <cmmarusich@HIDDEN>; dated Sat, 24 Feb 2018 08:00:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 30591 <at> debbugs.gnu.org:


Received: (at 30591) by debbugs.gnu.org; 26 Feb 2018 06:05:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 26 01:05:27 2018
Received: from localhost ([127.0.0.1]:60978 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eqBug-0007KN-3I
	for submit <at> debbugs.gnu.org; Mon, 26 Feb 2018 01:05:26 -0500
Received: from mail-io0-f182.google.com ([209.85.223.182]:32794)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cmmarusich@HIDDEN>) id 1eqBue-0007K8-8m
 for 30591 <at> debbugs.gnu.org; Mon, 26 Feb 2018 01:05:24 -0500
Received: by mail-io0-f182.google.com with SMTP id f1so2078275iob.0
 for <30591 <at> debbugs.gnu.org>; Sun, 25 Feb 2018 22:05:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=dypeVzreAujGfwOrz7GRRoeABpKJUon12Jy9hNWlJsc=;
 b=tN9vFigpqyZ0kqrMfCRW4Wj0vLRyYvUzyRVoiDN+Xa8bSxP9Maj1Fqz6tC55ImiMmV
 L3BjQd8waSIR2Fq9lbTcF/XAo4GPnXa7ucY89Hs+jqACN1wYFUhDSlPwKpVYBg08ooC4
 PucHjJxlha2rZRjzvWyfosq8zy6nxwVbFLd5iZ7TyEmJM/RkYT+7Lc+DEqJEej5etyNE
 kD2CVnsxyqHGCeRk/gjs5+ay26aXzBSQzFGW5C3fOGpSFkMzSd3ktZm76qTY0ouDVXdY
 W+Dnsn5wF1SSu/ZYGzVwKX3M+XdUp9MQsetzorLEMi39RxMHD+ZLWX+VBPv8DXQePbqU
 Uldw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=dypeVzreAujGfwOrz7GRRoeABpKJUon12Jy9hNWlJsc=;
 b=UB1e9AYS2ONDrov9yPame2giM8FR8l/S7FVG0+GE7JxzbsR5HDE76EuVciBoKSSoCj
 Nj9ydRSlEw5lzuffeNqf4gCw/GnigfGbcf1koLSbwZMu/AiBjjXLbXGu4uqA7WY+SU+q
 p0pP0mHYOS2GLuMbLjqW8PDqqtfq7kdC0C4Qz0B09S6ZgebKD+5RRqAnF293gHviULtT
 bGEu+mmupBAB8K1P9xUYwTMvZrA8V5Ei6PJP1m7YC4dmmpCx4rSAyuEJd6/lYxh9WYU+
 aaWn3Wu9RmuEBwjKM3pce8ouFF3SDZVFvvFsi53aj5K+ohX94R3XEOBPcYYhL99XW+V9
 0+FA==
X-Gm-Message-State: APf1xPCaZHkDf3f7gp2QgoE/DVdEH2dHDFd5v1Vm8oJfqM43EFWvHBd8
 3JVxLn+OmMZvv2FG2tB9oqi1uQ==
X-Google-Smtp-Source: AG47ELuZcBRUFa9n7sgiVoSIbMekVWPsQ2T9CQqsYwNGBOYCoWfB8t9cLBTFvnFphjkq6s+un/TbYA==
X-Received: by 10.107.163.204 with SMTP id m195mr10645064ioe.295.1519625117941; 
 Sun, 25 Feb 2018 22:05:17 -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 b99sm1796219ioj.82.2018.02.25.22.05.14
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 25 Feb 2018 22:05:16 -0800 (PST)
From: Chris Marusich <cmmarusich@HIDDEN>
To: =?utf-8?Q?G=C3=A1bor?= Boskovits <boskovits@HIDDEN>
Subject: Re: bug#30591: Vinagre segmentation fault - and gdb cannot find
 symbols?
References: <87tvu6q0mj.fsf@HIDDEN>
 <CAE4v=pgkCvk-Y9pVV-8xsZwC6-KMPKbLRR59nnfcAW3J7eBx7Q@HIDDEN>
Date: Mon, 26 Feb 2018 07:05:06 +0100
In-Reply-To: <CAE4v=pgkCvk-Y9pVV-8xsZwC6-KMPKbLRR59nnfcAW3J7eBx7Q@HIDDEN>
 (=?utf-8?Q?=22G=C3=A1bor?= Boskovits"'s message of "Sat, 24 Feb 2018
 09:24:22 +0100")
Message-ID: <87muzw4771.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 30591
Cc: 30591 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

G=C3=A1bor Boskovits <boskovits@HIDDEN> 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@HIDDEN:~/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-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#30591; Package guix. Full text available.

Message received at 30591 <at> debbugs.gnu.org:


Received: (at 30591) by debbugs.gnu.org; 24 Feb 2018 08:24:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 24 03:24:31 2018
Received: from localhost ([127.0.0.1]:58166 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1epV8B-000886-0F
	for submit <at> debbugs.gnu.org; Sat, 24 Feb 2018 03:24:31 -0500
Received: from mail-io0-f170.google.com ([209.85.223.170]:39924)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <boskovits@HIDDEN>) id 1epV88-00087s-Hj
 for 30591 <at> debbugs.gnu.org; Sat, 24 Feb 2018 03:24:29 -0500
Received: by mail-io0-f170.google.com with SMTP id b34so12249946ioj.6
 for <30591 <at> debbugs.gnu.org>; Sat, 24 Feb 2018 00:24:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc; bh=sa+jiWhJFLgbzkTySfBv3YPbbn26D6euMZ2pAmzUn2Q=;
 b=L/98hbUb+sEsOGORUlrR9412Gz8DzUOsf7KPaRoqo6NyU6iM1K0bAyPaAPmK0oHaHZ
 +QjdAyzFa4mIoD/vnm4WBG8gNxMfFwsWVOLTXKVasxm1MhEEall693HnCjY7NN1reQwo
 TPic/FkpGfO0iCp/JqPw1nTLdpGbdUP8ozglHDmQPycvOzJIFRo/djYPVWoAmXrBes3t
 OJtkgsk7z4u79Au5XPwbrboR8ReOATVTAV0IeIKj/RQpGY2XACglGTUw8xUMa8a9HxtQ
 vp/+345nf9V39t2dvjInuwmE0VrKIxWyjoiGPa/BUBG3/uY0zIN20rmnR+02Sc/mM/Hx
 x2XA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc;
 bh=sa+jiWhJFLgbzkTySfBv3YPbbn26D6euMZ2pAmzUn2Q=;
 b=kxSI/vF4vb4OSWpY/p5KBct4efVjdi3SyD0JjGo99SDHgsUj4PX1qyC5WeKPjtzkvt
 prFW7gttBhBO0xJnQt2zfe3zW1gEbBvMqft6U4gGBMKENR23WpFEgPk9ZkF8eQJ1oAYj
 c1higxuFuTelIBPjMY/gEOEubkqF0bi+yMV4g1tVEobCRyC/gkMpmXUSLLA2uJAlCWjy
 a1mnlqTqf/x6aJaIDSl6cWMZwiFaNKuydJryL/9B/+03zmCEFNMmf5/aOv5LQYs4tiwv
 KSUpsDTvPy+H6ZGomOS0fd4sb/WmMCd81+BO1IT796C4dwo+jy5dS69fiJl3rgFrdDqT
 b4/Q==
X-Gm-Message-State: APf1xPAITqrUUPa8ekk2jhv7B1CAoehTMoMdjuZAlGQ9F4eelhrmUP9M
 bTwDbUFqEeibM4FfC/Ecc9jQc8ajrNLNAaK8HQ==
X-Google-Smtp-Source: AG47ELtRWyYuSdVGSz65PbEnMvx6F3i9dIlET5Ijktm+iDGSRmnJO4TQWBxwaxIgOVX5Z6HPEO7mxfDeDBppBFvXa+0=
X-Received: by 10.107.57.4 with SMTP id g4mr4470978ioa.236.1519460662847; Sat,
 24 Feb 2018 00:24:22 -0800 (PST)
MIME-Version: 1.0
Received: by 10.79.197.4 with HTTP; Sat, 24 Feb 2018 00:24:22 -0800 (PST)
In-Reply-To: <87tvu6q0mj.fsf@HIDDEN>
References: <87tvu6q0mj.fsf@HIDDEN>
From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= <boskovits@HIDDEN>
Date: Sat, 24 Feb 2018 09:24:22 +0100
Message-ID: <CAE4v=pgkCvk-Y9pVV-8xsZwC6-KMPKbLRR59nnfcAW3J7eBx7Q@HIDDEN>
Subject: Re: bug#30591: Vinagre segmentation fault - and gdb cannot find
 symbols?
To: Chris Marusich <cmmarusich@HIDDEN>
Content-Type: multipart/alternative; boundary="001a114ab6fa0f31fa0565f101e2"
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  2018-02-24 8:59 GMT+01:00 Chris Marusich : > 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:
    > > --8<cut herestart>8--- > [0] marusich@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] marusich@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: '/gnu/store/
    > 7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0/bin/.vinagre-real',
    > platform: 'x86_64' > [0] marusich@HIDDEN:~/debug-vinagre > $ tree
    ~/.guix-profile/lib/debug/ > /home/marusich/.guix-profile/lib/debug/ > └──
    gnu > └── store > ├── 7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0
    -> > /gnu/store/j6nkca3pr1vhbd8bf25pphcwk66fb7nj-maru-vinagre-3.22.0-debug/
    > lib/debug/gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0
    > └── 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@HIDDEN:~/debug-vinagre > $ grep -A99 ~/custom-guix-packages/
    > marusich.scm marusich.scm~ my-packages/ > [0] [...] 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
                             trust
                             [209.85.223.170 listed in list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail provider
                             (boskovits[at]gmail.com)
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                             [209.85.223.170 listed in wl.mailspike.net]
  0.0 HTML_MESSAGE           BODY: HTML included in message
  1.2 HTML_OBFUSCATE_10_20   BODY: Message is 10% to 20% HTML obfuscation
  0.0 T_DKIM_INVALID         DKIM-Signature header exists but is not valid
X-Debbugs-Envelope-To: 30591
Cc: 30591 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  2018-02-24 8:59 GMT+01:00 Chris Marusich : > 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:
    > > --8<cut herestart>8--- > [0] marusich@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] marusich@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: '/gnu/store/
    > 7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0/bin/.vinagre-real',
    > platform: 'x86_64' > [0] marusich@HIDDEN:~/debug-vinagre > $ tree
    ~/.guix-profile/lib/debug/ > /home/marusich/.guix-profile/lib/debug/ > └──
    gnu > └── store > ├── 7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0
    -> > /gnu/store/j6nkca3pr1vhbd8bf25pphcwk66fb7nj-maru-vinagre-3.22.0-debug/
    > lib/debug/gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0
    > └── 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@HIDDEN:~/debug-vinagre > $ grep -A99 ~/custom-guix-packages/
    > marusich.scm marusich.scm~ my-packages/ > [0] [...] 
 
 Content analysis details:   (1.2 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
                             trust
                             [209.85.223.170 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
                             [209.85.223.170 listed in wl.mailspike.net]
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail provider
                             (boskovits[at]gmail.com)
  0.0 HTML_MESSAGE           BODY: HTML included in message
  1.2 HTML_OBFUSCATE_10_20   BODY: Message is 10% to 20% HTML obfuscation
  0.0 T_DKIM_INVALID         DKIM-Signature header exists but is not valid

--001a114ab6fa0f31fa0565f101e2
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

2018-02-24 8:59 GMT+01:00 Chris Marusich <cmmarusich@HIDDEN>:

> 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:
>
> --8<---------------cut here---------------start------------->8---
> [0] marusich@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] marusich@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: '/gnu/store/
> 7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0/bin/.vinagre-real',
> platform: 'x86_64'
> [0] marusich@HIDDEN:~/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=
-vinagre-3.22.0 ->
> /gnu/store/j6nkca3pr1vhbd8bf25pphcwk66fb7nj-maru-vinagre-3.22.0-debug/
> lib/debug/gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0
>         =E2=94=94=E2=94=80=E2=94=80 n6nvxlk2j8ysffjh3jphn1k5silnakh6-glib=
c-2.25 -> /gnu/store/
> z1y36la9q1xkc5i5vcxqm7d995nrngmn-gcc-toolchain-7.2.0/lib/debug/gnu/store/
> n6nvxlk2j8ysffjh3jphn1k5silnakh6-glibc-2.25
>
> 4 directories, 0 files
> [0] marusich@HIDDEN:~/debug-vinagre
> $ grep -A99 ~/custom-guix-packages/
> marusich.scm   marusich.scm~  my-packages/
> [0] marusich@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] marusich@HIDDEN:~/debug-vinagre
> $ guix package --list-installed | grep maru-vinagre
> maru-vinagre    3.22.0  debug   /gnu/store/j6nkca3pr1vhbd8bf25pphcwk66fb7
> nj-maru-vinagre-3.22.0-debug
> maru-vinagre    3.22.0  out     /gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8b
> bv-maru-vinagre-3.22.0
> [0] marusich@HIDDEN:~/debug-vinagre
> $ gdb --quiet /gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8b
> bv-maru-vinagre-3.22.0/bin/.vinagre-real core
> Reading symbols from /gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8b
> bv-maru-vinagre-3.22.0/bin/.vinagre-real...
> warning: the debug information found in "/home/marusich/.guix-profile/
> lib/debug//gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8b
> bv-maru-vinagre-3.22.0/bin/.vinagre-real.debug" does not match
> "/gnu/store/7w9pimrkk7n1f9zxw9va6jkhmgyw8bbv-maru-vinagre-3.22.0/bin/.vin=
agre-real"
> (CRC mismatch).
>
>
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.


> (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/3h31zsqxjjg52da5gp3qmhkh4x8kl=
h
> ah-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/
> slxc1lf23wdzjamn6pfp2inrzy74dbwh-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/
> slxc1lf23wdzjamn6pfp2inrzy74dbwh-gtk-vnc-0.7.0/lib/libgvnc-1.0.so.0
> #1  0x00007f173c08489f in coroutine_trampoline () from /gnu/store/
> slxc1lf23wdzjamn6pfp2inrzy74dbwh-gtk-vnc-0.7.0/lib/libgvnc-1.0.so.0
> #2  0x00007f173ae6c990 in ?? () from /gnu/store/
> 3h31zsqxjjg52da5gp3qmhkh4x8klhah-glibc-2.25/lib/libc.so.6
> #3  0x000000000101ec08 in ?? ()
> #4  0x0000000000000000 in ?? ()
> (gdb)
> --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,
>
> --
> Chris
>

--001a114ab6fa0f31fa0565f101e2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">2018=
-02-24 8:59 GMT+01:00 Chris Marusich <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:cmmarusich@HIDDEN" target=3D"_blank">cmmarusich@HIDDEN</a>&gt;</spa=
n>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Recently, I&#39;ve noticed that Vinagre segfaults when I initiate a<br>
connection.=C2=A0 To reproduce, try doing the following:<br>
<br>
1) Install Vinagre.<br>
2) Try to connect to a remote host.<br>
3) Vinagre displays a black screen, and about 10-20 seconds later, it<br>
crashes.<br>
<br>
I&#39;ve obtained a core dump, but it seems I can&#39;t get debug symbols f=
rom<br>
it.=C2=A0 I&#39;m using a custom version that adds a &quot;debug&quot; outp=
ut, and my<br>
~/.gdbinit is set up according to what Guix recommends in its manual<br>
((guix) Installing Debugging Files).=C2=A0 What do I need to do to get gdb =
to<br>
give me useful information?<br>
<br>
Example debugging session follows:<br>
<br>
--8&lt;---------------cut here---------------start------<wbr>-------&gt;8--=
-<br>
[0] marusich@HIDDEN:~/debug-<wbr>vinagre<br>
$ cat ~/.gdbinit<br>
# Tell GDB where to look for separate debugging files.<br>
set debug-file-directory ~/.guix-profile/lib/debug<br>
# Let GDB auto-load any files it needs.<br>
set auto-load safe-path /<br>
[0] marusich@HIDDEN:~/debug-<wbr>vinagre<br>
$ file core<br>
core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from &=
#39;/home/marusich/.guix-profile/<wbr>bin/vinagre&#39;, real uid: 1000, eff=
ective uid: 1000, real gid: 998, effective gid: 998, execfn: &#39;/gnu/stor=
e/<wbr>7w9pimrkk7n1f9zxw9va6jkhmgyw8b<wbr>bv-maru-vinagre-3.22.0/bin/.<wbr>=
vinagre-real&#39;, platform: &#39;x86_64&#39;<br>
[0] marusich@HIDDEN:~/debug-<wbr>vinagre<br>
$ tree ~/.guix-profile/lib/debug/<br>
/home/marusich/.guix-profile/<wbr>lib/debug/<br>
=E2=94=94=E2=94=80=E2=94=80 gnu<br>
=C2=A0 =C2=A0 =E2=94=94=E2=94=80=E2=94=80 store<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =E2=94=9C=E2=94=80=E2=94=80 7w9pimrkk7n1f9zxw9v=
a6jkhmgyw8b<wbr>bv-maru-vinagre-3.22.0 -&gt; /gnu/store/<wbr>j6nkca3pr1vhbd=
8bf25pphcwk66fb7<wbr>nj-maru-vinagre-3.22.0-debug/<wbr>lib/debug/gnu/store/=
<wbr>7w9pimrkk7n1f9zxw9va6jkhmgyw8b<wbr>bv-maru-vinagre-3.22.0<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =E2=94=94=E2=94=80=E2=94=80 n6nvxlk2j8ysffjh3jp=
hn1k5silnak<wbr>h6-glibc-2.25 -&gt; /gnu/store/<wbr>z1y36la9q1xkc5i5vcxqm7d=
995nrng<wbr>mn-gcc-toolchain-7.2.0/lib/<wbr>debug/gnu/store/<wbr>n6nvxlk2j8=
ysffjh3jphn1k5silnak<wbr>h6-glibc-2.25<br>
<br>
4 directories, 0 files<br>
[0] marusich@HIDDEN:~/debug-<wbr>vinagre<br>
$ grep -A99 ~/custom-guix-packages/<br>
marusich.scm=C2=A0 =C2=A0marusich.scm~=C2=A0 my-packages/<br>
[0] marusich@HIDDEN:~/debug-<wbr>vinagre<br>
$ grep -A99 maru-vinagre ~/custom-guix-packages/<wbr>marusich.scm<br>
(define-public maru-vinagre<br>
=C2=A0 (package (inherit vinagre)<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(name &quot;maru-vinagre&quot;)<br=
>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(outputs &#39;(&quot;out&quot; &qu=
ot;debug&quot;))))<br>
[0] marusich@HIDDEN:~/debug-<wbr>vinagre<br>
$ guix package --list-installed | grep maru-vinagre<br>
maru-vinagre=C2=A0 =C2=A0 3.22.0=C2=A0 debug=C2=A0 =C2=A0/gnu/store/<wbr>j6=
nkca3pr1vhbd8bf25pphcwk66fb7<wbr>nj-maru-vinagre-3.22.0-debug<br>
maru-vinagre=C2=A0 =C2=A0 3.22.0=C2=A0 out=C2=A0 =C2=A0 =C2=A0/gnu/store/<w=
br>7w9pimrkk7n1f9zxw9va6jkhmgyw8b<wbr>bv-maru-vinagre-3.22.0<br>
[0] marusich@HIDDEN:~/debug-<wbr>vinagre<br>
$ gdb --quiet /gnu/store/<wbr>7w9pimrkk7n1f9zxw9va6jkhmgyw8b<wbr>bv-maru-vi=
nagre-3.22.0/bin/.<wbr>vinagre-real core<br>
Reading symbols from /gnu/store/<wbr>7w9pimrkk7n1f9zxw9va6jkhmgyw8b<wbr>bv-=
maru-vinagre-3.22.0/bin/.<wbr>vinagre-real...<br>
warning: the debug information found in &quot;/home/marusich/.guix-profile/=
<wbr>lib/debug//gnu/store/<wbr>7w9pimrkk7n1f9zxw9va6jkhmgyw8b<wbr>bv-maru-v=
inagre-3.22.0/bin/.<wbr>vinagre-real.debug&quot; does not match &quot;/gnu/=
store/<wbr>7w9pimrkk7n1f9zxw9va6jkhmgyw8b<wbr>bv-maru-vinagre-3.22.0/bin/.<=
wbr>vinagre-real&quot; (CRC mismatch).<br>
<br></blockquote><div><br></div><div>I&#39;ve also seen this before. My wor=
karound was that I created a package disabling strip-binaries. That worked =
well enough. I&#39;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.</div><=
div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e=
x;border-left:1px #ccc solid;padding-left:1ex">
(no debugging symbols found)...done.<br>
[New LWP 28789]<br>
[New LWP 28790]<br>
[New LWP 28791]<br>
[New LWP 28792]<br>
[Thread debugging using libthread_db enabled]<br>
Using host libthread_db library &quot;/gnu/store/<wbr>3h31zsqxjjg52da5gp3qm=
hkh4x8klh<wbr>ah-glibc-2.25/lib/libthread_<wbr>db.so.1&quot;.<br>
Core was generated by `/home/marusich/.guix-profile/<wbr>bin/vinagre&#39;.<=
br>
Program terminated with signal SIGSEGV, Segmentation fault.<br>
#0=C2=A0 0x00007f173c081707 in vnc_connection_coroutine () from /gnu/store/=
<wbr>slxc1lf23wdzjamn6pfp2inrzy74db<wbr>wh-gtk-vnc-0.7.0/lib/libgvnc-<wbr>1=
.0.so.0<br>
[Current thread is 1 (Thread 0x7f1741e67500 (LWP 28789))]<br>
(gdb) l<br>
No symbol table is loaded.=C2=A0 Use the &quot;file&quot; command.<br>
(gdb) where<br>
#0=C2=A0 0x00007f173c081707 in vnc_connection_coroutine () from /gnu/store/=
<wbr>slxc1lf23wdzjamn6pfp2inrzy74db<wbr>wh-gtk-vnc-0.7.0/lib/libgvnc-<wbr>1=
.0.so.0<br>
#1=C2=A0 0x00007f173c08489f in coroutine_trampoline () from /gnu/store/<wbr=
>slxc1lf23wdzjamn6pfp2inrzy74db<wbr>wh-gtk-vnc-0.7.0/lib/libgvnc-<wbr>1.0.s=
o.0<br>
#2=C2=A0 0x00007f173ae6c990 in ?? () from /gnu/store/<wbr>3h31zsqxjjg52da5g=
p3qmhkh4x8klh<wbr>ah-glibc-2.25/lib/libc.so.6<br>
#3=C2=A0 0x000000000101ec08 in ?? ()<br>
#4=C2=A0 0x0000000000000000 in ?? ()<br>
(gdb)<br>
--8&lt;---------------cut here---------------end--------<wbr>-------&gt;8--=
-<br>
<br>
I&#39;m pretty new to debugging C programs in gdb, so if I&#39;m making any=
<br>
obvious mistakes, I&#39;d really appreciate it if you&#39;d let me know!<br=
>
<br>
Thank you,<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
Chris<br>
</font></span></blockquote></div><br></div></div>

--001a114ab6fa0f31fa0565f101e2--




Information forwarded to bug-guix@HIDDEN:
bug#30591; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Feb 2018 07:59:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 24 02:59:38 2018
Received: from localhost ([127.0.0.1]:58159 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1epUk5-0007Z2-PS
	for submit <at> debbugs.gnu.org; Sat, 24 Feb 2018 02:59:38 -0500
Received: from eggs.gnu.org ([208.118.235.92]:43049)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cmmarusich@HIDDEN>) id 1epUk4-0007Yo-6D
 for submit <at> debbugs.gnu.org; Sat, 24 Feb 2018 02:59:36 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cmmarusich@HIDDEN>) id 1epUjx-0007jz-HM
 for submit <at> debbugs.gnu.org; Sat, 24 Feb 2018 02:59:30 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44690)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <cmmarusich@HIDDEN>)
 id 1epUjx-0007jh-D8
 for submit <at> debbugs.gnu.org; Sat, 24 Feb 2018 02:59:29 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34012)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cmmarusich@HIDDEN>) id 1epUjv-00020W-Sm
 for bug-guix@HIDDEN; Sat, 24 Feb 2018 02:59:29 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cmmarusich@HIDDEN>) id 1epUjq-0007aW-AR
 for bug-guix@HIDDEN; 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 <cmmarusich@HIDDEN>)
 id 1epUjq-0007ZZ-2f
 for bug-guix@HIDDEN; Sat, 24 Feb 2018 02:59:22 -0500
Received: by mail-pf0-x22a.google.com with SMTP id 17so4467494pfw.11
 for <bug-guix@HIDDEN>; Fri, 23 Feb 2018 23:59:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:user-agent:mime-version;
 bh=Mhi7ShgVO5dHvodoj0OvX6eXhS4PCJ1fLb/d7c3n6ZA=;
 b=l8NjB9LsbdiDahrqiZXzT1G1KNd1dy19TcAOURTft+xW7hFIs4JMTvjwlcnYlmEqZn
 uC9UHH7rmB7Oow4XAUu4UHQgMhnyFRNyIPHVmCt+aJhRKK+NPrwnqDfjrFSOK2RprYL1
 /hCLqMTcFa4iI+e0h/FAgIZ0oXt7B16d57cg9Vl7xeZheB1UEmGG9VDWWWPOr6PK4lPr
 CtiYMjLhc7hZKJlClbzfjE7+YJnPvp2pRB/Dvk66J/MJJsb2S3bZdeVnR7ARIfoN4OmJ
 rr7tv1ulFpq9UCELQpEigxsQna2ithW92PIUHkMovUIrWYkYv24mnnmJStdyggeKMgC3
 rf9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:user-agent
 :mime-version;
 bh=Mhi7ShgVO5dHvodoj0OvX6eXhS4PCJ1fLb/d7c3n6ZA=;
 b=miBqyBGbyA1LJ0YDrF7fifl3jw/NQ33g6LL+2pgNwntpYlcwslUa1WIxtiHcvGaZR5
 WYAdafYgJHT6ykIkr3GQLnOiCsuZ6J7ISDBg0HLg3xtVvfFoNdhF08EukoJqPxZBQZTB
 aKH37R/Kn1IhpexGru8oYHkTRMkuoxsp8lZLkn3q73hCkEqcVZfEPzY4Q8mx0Ehfupps
 5Nj2Vp8z0D7WqM4hHCObTkX6TsMa3uNtx8U9r7ePymhmd5Xe/GIkrwxqIRiypbof2Ol3
 D2GU+tuIZqKF6EftrwublhbWOkcY9wLsbynWJ+iJ6z3tfR3+UXKlonvvtHQ6DUNyP1Wp
 fE2w==
X-Gm-Message-State: APf1xPCyhxehrnDlSQy8CKNn02Z2SjoBQJu03bgegZpi4FWUmULFaccC
 2m7a/HRafv5sWXAYcJ8fkwNZ5w==
X-Google-Smtp-Source: AH8x2266ql8scEaG9LKQ4lpvaDQFA/NdRErQzAdQcUm0c+M3VHZjO10hKtOYqGk20KpclbfGouSc0Q==
X-Received: by 10.98.15.15 with SMTP id x15mr4314343pfi.116.1519459159912;
 Fri, 23 Feb 2018 23:59:19 -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 <bug-guix@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 23 Feb 2018 23:59:18 -0800 (PST)
From: Chris Marusich <cmmarusich@HIDDEN>
To: bug-guix@HIDDEN
Subject: Vinagre segmentation fault - and gdb cannot find symbols?
Date: Sat, 24 Feb 2018 08:59:16 +0100
Message-ID: <87tvu6q0mj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

--=-=-=
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@HIDDEN:~/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@HIDDEN:~/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@HIDDEN:~/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@HIDDEN:~/debug-vinagre
$ grep -A99 ~/custom-guix-packages/
marusich.scm   marusich.scm~  my-packages/=20=20=20
[0] marusich@HIDDEN:~/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@HIDDEN:~/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@HIDDEN:~/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-----
--=-=-=--




Acknowledgement sent to Chris Marusich <cmmarusich@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#30591; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.