Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73061 - GTK BitchX segfaults vulnerabilities
Summary: GTK BitchX segfaults vulnerabilities
Status: RESOLVED DUPLICATE of bug 112402
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Packages in net-irc
URL:
Whiteboard:
Keywords:
: 73062 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-01 12:29 UTC by Quith
Modified: 2006-09-11 03:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Quith 2004-12-01 12:29:53 UTC
*  net-irc/bitchx
      Latest version available: 1.1-r1
      Latest version installed: 1.1-r1
      Size of downloaded files: 2,473 kB
      Homepage:    http://www.bitchx.org/
      Description: An IRC Client
      License:     GPL-2

(at the moment latest 1.1-r2 version is also affected)
 
GTK BitchX segfaults on "dumb" terminal working mode startup:

(quith@exodus:~)─────────────────────────────────────────────────────────────────(pts/1)
(21:15:17) uname -srnm                                                      (2004:12:01)
Linux exodus 2.6.7-gentoo-r8 i686
(quith@exodus:~)─────────────────────────────────────────────────────────────────(pts/1)
(21:15:34) gtkBitchX -d                                                     (2004:12:01)
zsh: segmentation fault  gtkBitchX -d
(quith@exodus:~)─────────────────────────────────────────────────────────────────(pts/2)
(21:15:41) echo $?                                                          (2004:12:01)
139

Here's the gdb debugger log:

(quith@exodus:~)─────────────────────────────────────────────────────────────────(pts/1)
(21:15:54) gdb -q /usr/bin/gtkBitchX                                        (2004:12:01)
(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -d
Starting program: /usr/bin/gtkBitchX -d
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x08113461 in error ()
(gdb) info registers
eax            0x0      0
ecx            0x0      0
edx            0x0      0
ebx            0x81b445c        136004700
esp            0xbffff6e0       0xbffff6e0
ebp            0xbffff748       0xbffff748
esi            0x81b445c        136004700
edi            0x80c6770        135030640
eip            0x8113461        0x8113461
eflags         0x210282 2163330
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x0      0
(gdb) quit


Segmentation fault also appears when I close the BitchX gtk window while connecting to a server.


(quith@exodus:~)─────────────────────────────────────────────────────────────────(pts/2)
(21:18:14) gtkBitchX                                                        (2004:12:01)
zsh: segmentation fault  gtkBitchX

There are the same results also on 1.0 versions. Temporary no fix is available.

------------------------------
Quith <quith@linux-hell.net>
http://www.quith.info



Reproducible: Always
Steps to Reproduce:
Comment 1 Quith 2004-12-01 12:46:20 UTC
I've damaged the shell (zsh) logs a bit, sorry, better look at:
http://quith.info/advisories/bitchx_segfaults.txt
(removed bad $PS1)

Cheers, Quith.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-12-01 14:20:16 UTC
*** Bug 73062 has been marked as a duplicate of this bug. ***
Comment 3 Sven Wegener gentoo-dev 2004-12-01 15:20:37 UTC
(gdb) bt
#0  0x081420af in gui_screen (gtknew=0x826f664) at gtkbitchx.c:3043
#1  0x08126964 in BX_create_new_screen () at screen.c:1534
#2  0x080e617f in main (argc=2, argv=0xbffff3b4, envp=0xbffff3c0) at irc.c:1606

The -d option isn't used for gtkBitchX. It's used for the plain console version
when BitchX is started on a non-tty. This is an upstream bug.

I'm not able to reproduce your segfault when closing gtkBitchX while it's 
connecting to a server. Can you give me some more info on that?
Comment 4 Sven Wegener gentoo-dev 2004-12-01 15:44:42 UTC
Also please supply the output of emerge --info
Comment 5 Quith 2004-12-02 06:55:25 UTC
Well, I've meant closing BitchX by click on [X] key in the up right corner of the GTK window. In my gentoo I can also see the segfault.
Comment 6 Quith 2004-12-02 12:42:21 UTC
% emerge --info
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.7-gentoo-r8 i686)
=================================================================
System uname: 2.6.7-gentoo-r8 i686 Intel(R) Celeron(R) CPU 1.70GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.4.3-r4
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bitmap-fonts crypt cups encode esd f77 fam flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd tiff truetype x86 xml2 xmms xv zlib"

Comment 7 Sven Wegener gentoo-dev 2004-12-02 13:44:07 UTC
Hm, on my system I click on the [X] and gtkBitchX waits some time and then exits cleanly. I'll try on some other systems to see if I can reproduce it.
Comment 8 Polarina 2006-09-02 08:34:01 UTC
(In reply to comment #6)
> % emerge --info
> Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.7-gentoo-r8 i686)
> =================================================================
> System uname: 2.6.7-gentoo-r8 i686 Intel(R) Celeron(R) CPU 1.70GHz
> Gentoo Base System version 1.4.16
> Autoconf: sys-devel/autoconf-2.59-r3
> Automake: sys-devel/automake-1.8.3
> Binutils: sys-devel/binutils-2.14.90.0.8-r1
> Headers:  sys-kernel/linux-headers-2.4.21-r1
> Libtools: sys-devel/libtool-1.4.3-r4
> ACCEPT_KEYWORDS="x86"
> AUTOCLEAN="yes"
> CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
> CHOST="i386-pc-linux-gnu"
> COMPILER=""
> CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
> CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
> CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
> GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> PORTDIR_OVERLAY=""
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="X apm arts avi berkdb bitmap-fonts crypt cups encode esd f77 fam flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd tiff truetype x86 xml2 xmms xv zlib"
> 
> 

Please rebuild your system without -fomit-frame-pointer and try do debug again.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-09-11 03:49:17 UTC

*** This bug has been marked as a duplicate of 112402 ***