Debian Bug report logs - #249415
slrnface now segfaults with xterm from X 4.3

version graph

Package: slrnface; Maintainer for slrnface is Rhonda D'Vine <rhonda@debian.org>; Source for slrnface is src:slrnface (PTS, buildd, popcon).

Reported by: Tim Connors <tconnors+reportbug@astro.swin.edu.au>

Date: Mon, 17 May 2004 09:48:01 UTC

Severity: normal

Found in version 2.1.1-4

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <alfie@debian.org>:
Bug#249415; Package slrnface. (full text, mbox, link).


Acknowledgement sent to Tim Connors <tconnors+reportbug@astro.swin.edu.au>:
New Bug report received and forwarded. Copy sent to Gerfried Fuchs <alfie@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Tim Connors <tconnors+reportbug@astro.swin.edu.au>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: slrnface now segfaults with xterm from X 4.3
Date: Mon, 17 May 2004 19:35:38 +1000
Package: slrnface
Version: 2.1.1-4
Severity: normal

slrnface now segfaults some time after forking into the background
after slrn starts it (I suspect X 4.3, since it broke first on one
machine using 4.3, and still worked on a 4.2 machine, but is now
broken for both machines, since both are 4.3).

I haven't come anywhere near tracing the cause: I can't trace it with
strace, because once it forks, either I loose the output (if I don't
supply strace with '-f'), or control can't be returned to slrn (if I
used strace -f (I tried background the slrnface process to no avail)).

I tried starting and stracing a renamed slrnface in the background so
it could create the pipe, and then let slrn spawn an empty bash
script, but the slrn session hangs forever. As such, the strace output
is probably useless, because all it shows is a fork occurring, and
then an infinite wait on poll() on the pipe.

Any other way I can debug this?

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-pre7
Locale: LANG=en_AU, LC_CTYPE=en_AU

Versions of packages slrnface depends on:
ii  libc6                      2.3.2.ds1-11  GNU C Library: Shared libraries an
ii  libcompfaceg1              1989.11.11-24 Compress/decompress images for mai
ii  slrn                       0.9.8.0-12    threaded news reader (fast for slo
ii  xlibs                      4.3.0-7       X Window System client libraries m

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <alfie@debian.org>:
Bug#249415; Package slrnface. (full text, mbox, link).


Acknowledgement sent to Christoph Berg <cb@df7cb.de>:
Extra info received and forwarded to list. Copy sent to Gerfried Fuchs <alfie@debian.org>. (full text, mbox, link).


Message #10 received at 249415@bugs.debian.org (full text, mbox, reply):

From: Christoph Berg <cb@df7cb.de>
To: 249415@bugs.debian.org
Subject: Re: slrnface now segfaults with xterm from X 4.3
Date: Wed, 21 Jul 2004 14:28:59 +0200
[Message part 1 (text/plain, inline)]
Re: Tim Connors in <E1BPeX4-0001q2-00@scuzzie.home>
> slrnface now segfaults some time after forking into the background
> after slrn starts it (I suspect X 4.3, since it broke first on one
> machine using 4.3, and still worked on a 4.2 machine, but is now
> broken for both machines, since both are 4.3).

I can confirm this.

slrnface segfaults somewhere inside the X libs:

[0] cb@planck:~/debian/slrnface/slrnface-2.1.1 1j $gdb slrnface 15377
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-linux"...Using host libthread_db
library "/lib/libthread_db.so.1".

Attaching to program: /home/cb/debian/slrnface/slrnface-2.1.1/slrnface,
process 15377
Reading symbols from /usr/lib/libcompface.so.1...done.
Loaded symbols for /usr/lib/libcompface.so.1
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0x40216818 in poll () from /lib/libc.so.6
(gdb) c
Continuing.

At that point I'm printing something to the FIFO...

Program received signal SIGSEGV, Segmentation fault.
0x400bbe48 in XrmQGetSearchResource () from /usr/X11R6/lib/libX11.so.6
(gdb) bt
#0  0x400bbe48 in XrmQGetSearchResource () from
/usr/X11R6/lib/libX11.so.6
#1  0x400bc3e8 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
#2  0x4009c896 in XGetDefault () from /usr/X11R6/lib/libX11.so.6
#3  0xbffff4b0 in ?? ()
#4  0xbffff4a0 in ?? ()
#5  0xbffff494 in ?? ()
#6  0xbffff498 in ?? ()
#7  0x00000001 in ?? ()
#8  0x00000001 in ?? ()
#9  0x00000000 in ?? ()
#10 0x00000000 in ?? ()
#11 0x402afbb0 in ?? ()
#12 0xbffff480 in ?? ()
#13 0x0804e670 in ?? ()
#14 0x000001e3 in ?? ()
#15 0x000001e4 in ?? ()
#16 0x00000000 in ?? ()
#17 0x4001c264 in ?? ()
#18 0x000001e1 in ?? ()
#19 0x000001e2 in ?? ()
#20 0x00000000 in ?? ()
#21 0x0804e670 in ?? ()
#22 0xbffff518 in ?? ()
#23 0x4000bbe0 in _dl_map_object_deps () from /lib/ld-linux.so.2
#24 0x4001f2fb in ?? ()
#25 0x0804e670 in ?? ()
#26 0x40022481 in ?? ()
#27 0x4002247c in ?? ()
#28 0x4001c063 in ?? ()
#29 0x4001ba5c in ?? ()
#30 0x00000000 in ?? ()
#31 0x08057f50 in ?? ()
#32 0x00000000 in ?? ()
#33 0x00000008 in ?? ()
#34 0x00000000 in ?? ()
#35 0x000000b4 in ?? ()
#36 0x40023bc4 in ?? ()
#37 0x02c00003 in ?? ()
#38 0x0804e670 in ?? ()
#39 0xbffff528 in ?? ()
#40 0x4001f39f in ?? ()
#41 0x0804e670 in ?? ()
#42 0x40023bc4 in ?? ()
#43 0xbffff558 in ?? ()
#44 0x40021c5f in ?? ()
#45 0x0804e670 in ?? ()
#46 0x40145d28 in ?? () from /usr/X11R6/lib/libX11.so.6
#47 0xbffff558 in ?? ()
#48 0x4009688f in XGContextFromGC () from /usr/X11R6/lib/libX11.so.6
Previous frame inner to this frame (corrupt stack?)
(gdb) The program is running.  Quit anyway (and detach it)? (y or n) 

Happens with xterm and aterm from Sarge.

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <alfie@debian.org>:
Bug#249415; Package slrnface. (full text, mbox, link).


Acknowledgement sent to Christoph Berg <cb@df7cb.de>:
Extra info received and forwarded to list. Copy sent to Gerfried Fuchs <alfie@debian.org>. (full text, mbox, link).


Message #15 received at 249415@bugs.debian.org (full text, mbox, reply):

From: Christoph Berg <cb@df7cb.de>
To: 249415@bugs.debian.org
Subject: Re: slrnface now segfaults with xterm from X 4.3
Date: Wed, 21 Jul 2004 15:58:04 +0200
[Message part 1 (text/plain, inline)]
Re: To 249415@bugs.debian.org in <20040721122859.GB1691@df7cb.de>
> #0  0x400bbe48 in XrmQGetSearchResource () from
> /usr/X11R6/lib/libX11.so.6
> #1  0x400bc3e8 in XrmQGetResource () from /usr/X11R6/lib/libX11.so.6
> #2  0x4009c896 in XGetDefault () from /usr/X11R6/lib/libX11.so.6

The following patch "fixes" the problem in that it avoids the calls that
segfault:

--- slrnface.c~	2004-07-21 15:54:43.000000000 +0200
+++ slrnface.c	2004-07-21 15:54:46.000000000 +0200
@@ -534,8 +534,8 @@
        * line parameters directly, so at least that will work.
        */
 
-      if (strpbrk (terminal.res_name, ".*?")
-	  || strpbrk (terminal.res_class, ".*?"))
+      if (1 /*strpbrk (terminal.res_name, ".*?")
+	  || strpbrk (terminal.res_class, ".*?")*/)
       {
 	 force_cmd_line (*argc, argv);
       }

I hope to find a better fix later though...

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <alfie@debian.org>:
Bug#249415; Package slrnface. (full text, mbox, link).


Acknowledgement sent to Gerfried Fuchs <alfie@ist.org>:
Extra info received and forwarded to list. Copy sent to Gerfried Fuchs <alfie@debian.org>. (full text, mbox, link).


Message #20 received at 249415@bugs.debian.org (full text, mbox, reply):

From: Gerfried Fuchs <alfie@ist.org>
To: Tim Connors <tconnors+reportbug@astro.swin.edu.au>, Christoph Berg <cb@df7cb.de>
Cc: 249415@bugs.debian.org
Subject: Re: slrnface now segfaults with xterm from X 4.3
Date: Tue, 17 May 2005 14:16:23 +0200
[Message part 1 (text/plain, inline)]
* Tim Connors <tconnors+reportbug@astro.swin.edu.au> [2004-05-17 19:35]:
> slrnface now segfaults some time after forking into the background
> after slrn starts it (I suspect X 4.3, since it broke first on one
> machine using 4.3, and still worked on a 4.2 machine, but is now
> broken for both machines, since both are 4.3).

 Can you still reproduce this? I *think* it is solved by recent versions
of X. I was able to reproduce it back then but am not able to anymore.

 I'll try again to contact the upstream maintainer which wasn't
successfull so far, but for me the problem looks fixed in the same way
it appreared. It might be some dirty code like Christoph found (will
have to take a closer look what this is meaning to be and if the fix
isn't just as dirty as the code), but I'm not sure and don't want to
hurry it.

 Anyway, it is noted, and if you agree we can close this bugreport for
now.

 So long,
Alfie
-- 
() | Ich bin anders, nur soviel anders wie der Himmel, wie das Meer am Horizont.
/\ | Oder anders, vielleicht anders - was heisst schon anders?
   |                                   -- Alfons Haider, 2001
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <alfie@debian.org>:
Bug#249415; Package slrnface. (full text, mbox, link).


Acknowledgement sent to Tim Connors <tconnors+reportbug@astro.swin.edu.au>:
Extra info received and forwarded to list. Copy sent to Gerfried Fuchs <alfie@debian.org>. (full text, mbox, link).


Message #25 received at 249415@bugs.debian.org (full text, mbox, reply):

From: Tim Connors <tconnors+reportbug@astro.swin.edu.au>
To: Gerfried Fuchs <alfie@ist.org>
Cc: Christoph Berg <cb@df7cb.de>, 249415@bugs.debian.org
Subject: Re: slrnface now segfaults with xterm from X 4.3
Date: Tue, 17 May 2005 23:08:49 +1000 (EST)
On Tue, 17 May 2005, Gerfried Fuchs wrote:

> * Tim Connors <tconnors+reportbug@astro.swin.edu.au> [2004-05-17 19:35]:
> > slrnface now segfaults some time after forking into the background
> > after slrn starts it (I suspect X 4.3, since it broke first on one
> > machine using 4.3, and still worked on a 4.2 machine, but is now
> > broken for both machines, since both are 4.3).
>
>  Can you still reproduce this? I *think* it is solved by recent versions
> of X. I was able to reproduce it back then but am not able to anymore.

I am still getting a core file with the X that was in sid up until a few
weeks ago (I have installed the latest X, but haven't restarted yet)


Are you sure you haven't currently got a slrnface installed that you
patched with that hack to not read the X resources?  The date of last
update for the debian slrnface is sep 20, 2003, so it is unlikely that
your patched version has been overwritten with debian's copy since you
last patched (if indeed you have).

>  Anyway, it is noted, and if you agree we can close this bugreport for
> now.

Probably best to keep it open.

-- 
TimC -- http://astronomy.swin.edu.au/staff/tconnors/
> Bugger you guys.
> The babelfish is idempotent on the set above.
I'm afraid that isn't a very good pickup line either, Tim.    - MaryG



Information forwarded to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <alfie@debian.org>:
Bug#249415; Package slrnface. (full text, mbox, link).


Acknowledgement sent to Gerfried Fuchs <alfie@ist.org>:
Extra info received and forwarded to list. Copy sent to Gerfried Fuchs <alfie@debian.org>. (full text, mbox, link).


Message #30 received at 249415@bugs.debian.org (full text, mbox, reply):

From: Gerfried Fuchs <alfie@ist.org>
To: Tim Connors <tconnors+reportbug@astro.swin.edu.au>, 249415@bugs.debian.org
Cc: Christoph Berg <cb@df7cb.de>
Subject: Re: Bug#249415: slrnface now segfaults with xterm from X 4.3
Date: Tue, 17 May 2005 16:21:54 +0200
[Message part 1 (text/plain, inline)]
* Tim Connors <tconnors+reportbug@astro.swin.edu.au> [2005-05-17 23:08]:
> On Tue, 17 May 2005, Gerfried Fuchs wrote:
>>  Can you still reproduce this? I *think* it is solved by recent versions
>> of X. I was able to reproduce it back then but am not able to anymore.
> 
> I am still getting a core file with the X that was in sid up until a few
> weeks ago (I have installed the latest X, but haven't restarted yet)

 That's strange, I notice no segfault in sarge since a few weeks.... And
sarge is what we are going to release, so I won't make this release
critical. :)

> Are you sure you haven't currently got a slrnface installed that you
> patched with that hack to not read the X resources?

 Yes, definitely.

> The date of last update for the debian slrnface is sep 20, 2003, so it
> is unlikely that your patched version has been overwritten with
> debian's copy since you last patched (if indeed you have).

 I haven't. Like I said I'm not sure if the patch is clean and really
addresses this problem or is as ugly as the underlying code that might
be the result...  With which I don't call the code ulgy, I just really
haven't taken a look yet. :)

> Probably best to keep it open.

 Yes, but it's not release critical because it's working on sarge.
Alfie
-- 
  * Move from non-US to mani
 -- LaMont Jones, changelog.Debian for openssh (1:3.0.2p1-8.1)
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <alfie@debian.org>:
Bug#249415; Package slrnface. (full text, mbox, link).


Acknowledgement sent to Tim Connors <tconnors+reportbug@astro.swin.edu.au>:
Extra info received and forwarded to list. Copy sent to Gerfried Fuchs <alfie@debian.org>. (full text, mbox, link).


Message #35 received at 249415@bugs.debian.org (full text, mbox, reply):

From: Tim Connors <tconnors+reportbug@astro.swin.edu.au>
To: Gerfried Fuchs <alfie@ist.org>
Cc: 249415@bugs.debian.org, Christoph Berg <cb@df7cb.de>
Subject: Re: Bug#249415: slrnface now segfaults with xterm from X 4.3
Date: Wed, 18 May 2005 00:27:12 +1000 (EST)
On Tue, 17 May 2005, Gerfried Fuchs wrote:

> > Probably best to keep it open.
>
>  Yes, but it's not release critical because it's working on sarge.

Oh.  Is it marked rc?  Not according to querybts...

-- 
TimC -- http://astronomy.swin.edu.au/staff/tconnors/
"Application encountered an error while failing. Error recovered
successfully, proceeding to fail"



Information forwarded to debian-bugs-dist@lists.debian.org, Gerfried Fuchs <alfie@debian.org>:
Bug#249415; Package slrnface. (full text, mbox, link).


Acknowledgement sent to Wolf Wiegand <wolf@kondancemilch.de>:
Extra info received and forwarded to list. Copy sent to Gerfried Fuchs <alfie@debian.org>. (full text, mbox, link).


Message #40 received at 249415@bugs.debian.org (full text, mbox, reply):

From: Wolf Wiegand <wolf@kondancemilch.de>
To: 249415@bugs.debian.org
Subject: Re: Bug#249415: slrnface now segfaults with xterm from X 4.3
Date: Tue, 22 Aug 2006 20:07:15 +0200
Hi,

could you please include the above patch? It definately does more good
than bad :-) and it's sort of annoying having the rebuild the package on
one's own. Thanks!

Cheers, Wolf



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Aug 27 02:40:46 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.