From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-181634-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 540F01382C5
	for <garchives@archives.gentoo.org>; Fri, 29 Dec 2017 05:59:53 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id CE9142BC008;
	Fri, 29 Dec 2017 05:59:45 +0000 (UTC)
Received: from mail-ot0-x235.google.com (mail-ot0-x235.google.com [IPv6:2607:f8b0:4003:c0f::235])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 62C6BE0E77
	for <gentoo-user@lists.gentoo.org>; Fri, 29 Dec 2017 05:59:45 +0000 (UTC)
Received: by mail-ot0-x235.google.com with SMTP id w4so6731156otg.3
        for <gentoo-user@lists.gentoo.org>; Thu, 28 Dec 2017 21:59:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=mime-version:sender:in-reply-to:references:from:date:message-id
         :subject:to;
        bh=QN28e6NNW1tA379lodIQcFOPBh53cYMeSSWOtFlWZs4=;
        b=b9BCVMtnzuFodu7Txc1busIpO6f5co5lME1//SwbSagf6DRyH3Qk8zz0CGUVQIkVE7
         4QIP351H3QV/UBgxftr9rHgbwMKOejwy8IzqPDhHIatkkwGlJqvPghPorFBs+NKqKaZS
         TxeS+ALJJZJYdGj6H9Wyy9O7QhC01GaFgqGGlJ7Z/1A/p3cqnpsAR2reG2g5lbLnd28o
         p7DgIYirlzWdjaseH+5Tzy7xWpAalpgnw7HAq91MiZ3dn7kGaWroO9mIjjIYxEako8Jz
         8BNAJdaKoh4gnGdHMTX1lybNPRBKvYOqvvx1V0IyYAv0wOgVYTkNAHvV9IjdZmKWG+Sx
         ZM2A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:sender:in-reply-to:references:from
         :date:message-id:subject:to;
        bh=QN28e6NNW1tA379lodIQcFOPBh53cYMeSSWOtFlWZs4=;
        b=klldsvRBRFFyb6NK/6kRJK5N8cZTglxiVsgZzrD64lhMALk+Db7kKOwcK+REP7y6xJ
         47JchzwJrWbFLqfTXx9XevXenH6bLTdnQYUIuiGUgeKsYPoyKuncuqf+WAT4Xnjv69qK
         uJPqcxN2gxY8+F9+MqLji/lLsUQIEGXxLUDWeeFH5Lv9DIgYBGPXBZdaeuR7ora5aCOv
         D56iUnNorG8MJoYHqOmrLcX9Hv+3GAZEnHVDWsDXCua39RnbrHKbnlQPCLYt+mZ7DFCW
         ZlZOo9s5Hop2NQ6HYWjf8IQm7KC+5eNuA9aR53F5ADxLmb19wcqlhzjaKkak8RC6PuiV
         WOwQ==
X-Gm-Message-State: AKGB3mLBO45n1onFh8YNcdW/NMoyGlX1fPQlR4DHmwpdwsT6UG/3lFfg
	zEASWoJz8ia2TLVdXWDExZo8fDqAAjv0HTql9PJHBQ==
X-Google-Smtp-Source: ACJfBouEI9g9OTwSZ/9NCYVdarjoF1crQNqyFQiVVOVvZYu4Tvl97z4kAvte4ix+5D7S2w2YC3VZpTVislpoiLbSNG8=
X-Received: by 10.157.52.241 with SMTP id t46mr12649415otd.18.1514527184284;
 Thu, 28 Dec 2017 21:59:44 -0800 (PST)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Sender: nsane457@gmail.com
Received: by 10.74.92.206 with HTTP; Thu, 28 Dec 2017 21:59:23 -0800 (PST)
In-Reply-To: <CAC=wYCFCduMjWCAFKrVPEi2ZGoRYbCso+3U2tkCAV5hurFtGBw@mail.gmail.com>
References: <CAC=wYCFCduMjWCAFKrVPEi2ZGoRYbCso+3U2tkCAV5hurFtGBw@mail.gmail.com>
From: P Levine <plevine457@gmail.com>
Date: Fri, 29 Dec 2017 00:59:23 -0500
X-Google-Sender-Auth: 3xItc_9I10-LxtHiuKzTWBdMT2s
Message-ID: <CADX8ZBJsDuWibjfPOQ7kUGw-J2-4F1UjjrDEvM8dnGCy=Rtbjw@mail.gmail.com>
Subject: Re: [gentoo-user] segfault in gedit / glib
To: gentoo-user@lists.gentoo.org
Content-Type: multipart/alternative; boundary="001a113ecaead2731f056174561c"
X-Archives-Salt: 5efe8c2d-d632-4168-b271-54dfaa49118d
X-Archives-Hash: be87ff150986ab7e24789dc1afa27520

--001a113ecaead2731f056174561c
Content-Type: text/plain; charset="UTF-8"

On Thu, Dec 28, 2017 at 9:01 PM, Adam Carter <adamcarter3@gmail.com> wrote:

> System is ~amd64. If i try to open a text file in gnome via double click,
> i get;
> $ journalctl -b | grep segf
> Dec 29 12:17:32 phat kernel: gedit[1177]: segfault at 7f7c0d36e880 ip
> 00007f7c2550ba74 sp 00007fff66834850 error 4 in libglib-2.0.so.0.5200.3[
> 7f7c254c0000+114000]
>
> The following work;
> Open gedit first, then open the file
> Use right click -> Open With Other Application and chose LibreOffice
> writer.
>
> I've rebuild glib and gedit. Are there any clues on the issue in this
> trace?
>
> $ strace gedit <filename>
> <snip>
> futex(0x55bf3d691a90, FUTEX_WAKE_PRIVATE, 1) = 1
> access("/usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf",
> R_OK) = 0
> openat(AT_FDCWD, "/usr/share/fonts/liberation-
> fonts/LiberationMono-Regular.ttf", O_RDONLY) = 18
> fcntl(18, F_SETFD, FD_CLOEXEC)          = 0
> fstat(18, {st_mode=S_IFREG|0644, st_size=313408, ...}) = 0
> mmap(NULL, 313408, PROT_READ, MAP_PRIVATE, 18, 0) = 0x7fbea8020000
> close(18)                               = 0
> brk(0x55bf3e33b000)                     = 0x55bf3e33b000
> write(11, "\1\0\0\0\0\0\0\0", 8)        = 8
> futex(0x55bf3d79e270, FUTEX_WAKE_PRIVATE, 1) = 1
> futex(0x7fbec2c1c578, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource
> temporarily unavailable)
> futex(0x7fbec2c1c578, FUTEX_WAKE_PRIVATE, 1) = 0
> futex(0x55bf3d79e270, FUTEX_WAKE_PRIVATE, 1) = 1
> futex(0x7fbec2c1c608, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource
> temporarily unavailable)
> futex(0x7fbec2c1c608, FUTEX_WAKE_PRIVATE, 1) = 0
> futex(0x7fbec2c1c608, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource
> temporarily unavailable)
> futex(0x7fbec2c1c608, FUTEX_WAKE_PRIVATE, 1) = 0
> futex(0x7fbec2c1c578, FUTEX_WAKE_PRIVATE, 1) = 0
> futex(0x7fbec2c1c608, FUTEX_WAIT_PRIVATE, 2, NULL) = -1 EAGAIN (Resource
> temporarily unavailable)
> futex(0x7fbec2c1c608, FUTEX_WAKE_PRIVATE, 1) = 0
> --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR,
> si_addr=0x7fbe9b976880} ---
> +++ killed by SIGSEGV (core dumped) +++
> Segmentation fault (core dumped)
>

Try opening the file via gedit in a user shell and see if segfaults and if
there is any other output.

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

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:tahoma,s=
ans-serif;font-size:small"><span style=3D"font-family:arial,sans-serif">On =
Thu, Dec 28, 2017 at 9:01 PM, Adam Carter </span><span dir=3D"ltr" style=3D=
"font-family:arial,sans-serif">&lt;<a href=3D"mailto:adamcarter3@gmail.com"=
 target=3D"_blank">adamcarter3@gmail.com</a>&gt;</span><span style=3D"font-=
family:arial,sans-serif"> wrote:</span><br></div><div class=3D"gmail_extra"=
><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
x"><div dir=3D"ltr"><div><div><div><div><div>System is ~amd64. If i try to =
open a text file in gnome via double click, i get;<br>$ journalctl -b | gre=
p segf<br>Dec 29 12:17:32 phat kernel: gedit[1177]: segfault at 7f7c0d36e88=
0 ip 00007f7c2550ba74 sp 00007fff66834850 error 4 in libglib-2.0.so.0.5200.=
3[<wbr>7f7c254c0000+114000]<br></div><div><br></div><div>The following work=
;<br></div>Open gedit first, then open the file<br></div>Use right click -&=
gt; Open With Other Application and chose LibreOffice writer.<br><br></div>=
I&#39;ve rebuild glib and gedit. Are there any clues on the issue in this t=
race?<br><br></div>$ strace gedit &lt;filename&gt;<br></div>&lt;snip&gt;<br=
>futex(0x55bf3d691a90, FUTEX_WAKE_PRIVATE, 1) =3D 1<br>access(&quot;/usr/sh=
are/fonts/<wbr>liberation-fonts/<wbr>LiberationMono-Regular.ttf&quot;, R_OK=
) =3D 0<br>openat(AT_FDCWD, &quot;/usr/share/fonts/liberation-<wbr>fonts/Li=
berationMono-Regular.<wbr>ttf&quot;, O_RDONLY) =3D 18<br>fcntl(18, F_SETFD,=
 FD_CLOEXEC)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0<br=
>fstat(18, {st_mode=3DS_IFREG|0644, st_size=3D313408, ...}) =3D 0<br>mmap(N=
ULL, 313408, PROT_READ, MAP_PRIVATE, 18, 0) =3D 0x7fbea8020000<br>close(18)=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0<wbr>=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0<br>brk(0x55bf3e33b000)=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0<wbr>=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0x55bf3e33b000<br>write(11, =
&quot;\1\0\0\0\0\0\0\0&quot;, 8)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
=3D 8<br>futex(0x55bf3d79e270, FUTEX_WAKE_PRIVATE, 1) =3D 1<br>futex(0x7fbe=
c2c1c578, FUTEX_WAIT_PRIVATE, 2, NULL) =3D -1 EAGAIN (Resource temporarily =
unavailable)<br>futex(0x7fbec2c1c578, FUTEX_WAKE_PRIVATE, 1) =3D 0<br>futex=
(0x55bf3d79e270, FUTEX_WAKE_PRIVATE, 1) =3D 1<br>futex(0x7fbec2c1c608, FUTE=
X_WAIT_PRIVATE, 2, NULL) =3D -1 EAGAIN (Resource temporarily unavailable)<b=
r>futex(0x7fbec2c1c608, FUTEX_WAKE_PRIVATE, 1) =3D 0<br>futex(0x7fbec2c1c60=
8, FUTEX_WAIT_PRIVATE, 2, NULL) =3D -1 EAGAIN (Resource temporarily unavail=
able)<br>futex(0x7fbec2c1c608, FUTEX_WAKE_PRIVATE, 1) =3D 0<br>futex(0x7fbe=
c2c1c578, FUTEX_WAKE_PRIVATE, 1) =3D 0<br>futex(0x7fbec2c1c608, FUTEX_WAIT_=
PRIVATE, 2, NULL) =3D -1 EAGAIN (Resource temporarily unavailable)<br>futex=
(0x7fbec2c1c608, FUTEX_WAKE_PRIVATE, 1) =3D 0<br>--- SIGSEGV {si_signo=3DSI=
GSEGV, si_code=3DSEGV_MAPERR, si_addr=3D0x7fbe9b976880} ---<br>+++ killed b=
y SIGSEGV (core dumped) +++<br>Segmentation fault (core dumped)<br></div>
</blockquote></div><br></div><div class=3D"gmail_extra"><span style=3D"font=
-family:tahoma,sans-serif">Try opening the file via gedit in a user shell a=
nd see if segfaults and if there is any other output.</span><br></div></div=
>

--001a113ecaead2731f056174561c--