[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jabber-bugs
Subject:    [JBUG] Bug Report for Pre3
From:       Thomas Charron <tcharron () ductape ! net>
Date:       1999-11-04 18:02:48
[Download RAW message or body]

  While playing with XML::Stream, I noticed a very reproducable bug in 
0.7pre3.  If you connect, send a stream, then close the port 4 times, after the 
fourth time, jserver segfaults.  Here is a snippet from teh end where it cores:

DEBUG: sending packet to session
URNuts: _tstream_run: read event
ERROR: tstream, error reading from socket
DEBUG: SVC_BASIC: cleanup
URNuts: _tstream_run: read event
ERROR: tstream, error reading from socket
DEBUG: cleaning up transports db entries
DEBUG: _xmlstream_cleanup
DEBUG: tstream_cleanup
Segmentation fault (core dumped)

  Here is the output of gdb on the core, with a backtrace:

[tcha@honda tcha]$ gdb jserver -c core
GNU gdb 4.18
Copyright 1998 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-redhat-linux"...
Core was generated by `jserver'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libjabber.so.0...done.
Reading symbols from /usr/local/lib/libetherx.so.0...done.
Reading symbols from /usr/local/lib/libpth.so.11...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /usr/local/lib/jabber/svc_basic.so...done.
Reading symbols from /usr/local/lib/jabber/mod_basic.so...done.
#0  __libc_free (mem=0x1) at malloc.c:2941
2941    malloc.c: No such file or directory.
(gdb) backtrace
#0  __libc_free (mem=0x1) at malloc.c:2941
#1  0x804a31d in resource_free (r=0x80b6c10) at resources.c:63
#2  0x804a7ee in session_end (s=0x80b6a98) at sessions.c:39
#3  0x400156bd in svc_basic_cleanup (arg=0x807fd28) at conn.c:98
#4  0x4004265d in __pth_cleanup_popall () from /usr/local/lib/libpth.so.11
#5  0x40041846 in pth_exit () from /usr/local/lib/libpth.so.11
#6  0x4001c97a in _tstream_main (arg=0x807fd28) at tstream.c:126
#7  0x400413ce in pth_spawn_trampoline () from /usr/local/lib/libpth.so.11
#8  0x0 in ?? ()
(gdb)  


--- 
Thomas Charron
<< Wanted: One decent sig >>
<< Preferably litle used  >>
<< and stored in garage.  ?>>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic