PDA

View Full Version : seg fault/crash in 5.2.1, gdb info included.



Could_Be_Anyone
10-29-2005, 09:57 AM
Program starts, and until it sees a player, seems fine.
Player logs in or zones, map briefly displays properly, then program crashes.

gdb output for 2 sessions below, edited to remove char. info.
Looks to be related to QT, somehow.. but I'm no programmer.
Any ideas?

========
Session 1:
===================================
Script started on Sat Oct 29 11:25:29 2005
sh-3.00# gdb showeq
GNU gdb 6.3
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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/bin/showeq
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 21360)]
Xlib: extension "XInputExtension" missing on display "192.168.1.101:0.0".
Failed to get list of devices
ShowEQ 5.2.1.0, released under the GPL.
SINS 0.5, released under the GPL.
All ShowEQ source code is Copyright (C) 2000-2005 by the respective ShowEQ Developers
ShowEQ comes with NO WARRANTY.

You may redistribute copies of ShowEQ under the terms of
The GNU General Public License.
See: http://www.gnu.org/copyleft/gpl.html for more details...

For updates and information, please visit http://seq.sourceforge.net/
ShowEQ 5.2.1.0, Built from 'main.cpp' on Oct 29 2005 at 10:47:55
CVS: @(#) $Id: main.cpp,v 1.35 2005/10/05 15:29:08 cmmalone Exp $ $Name: $
Using GCC version: 3.3.5
Using glibc version: 2.3
Using Qt version: 3.3.4
Using headers from linux version: 2.6.11
Using EQItemDB: @(#) $Id: itemdb.cpp,v 1.11 2005/09/13 15:23:11 cmmalone Exp $ $Name: $
Using GDBM: GDBM version 1.8.3. 10/15/2002 (built May 1 2005 16:44:41)
Running on Linux release 2.6.11-gentoo-r6 for processor i686

Using config file '/root/.showeq/showeq.xml'
Loaded preferences file: /usr/local/share/showeq/seqdef.xml!
Loaded preferences file: /root/.showeq/showeq.xml!
Info: - Listening for client: 192.168.1.100
Info: - Initializing Packet Capture Thread:
Info: - Filtering packets on device eth1, IP host 192.168.1.100
[New Thread 32769 (LWP 21366)]
[New Thread 16386 (LWP 21367)]
Info: - Loaded 7872 spells from '/usr/local/share/showeq/spells_us.txt' maxSpell=0x20fe
Info: - GuildMgr: Guildsfile loaded
Debug: - ItemDB: Disabled
Info: - Loading Filters from '/root/.showeq/filters/global.xml'
Info: - Loading Zone Filter File: /root/.showeq/filters/unknown.xml
Info: - Loading Zone Filter File: /root/.showeq/filters/unknown.xml
Info: - Categories Reloaded
Info: - No Map found for zone 'unknown'!
Info: - Checked for all variants of 'unknown.map', 'unknown.txt', and 'unknown_1.txt'
Info: - in directories '/root/.showeq/maps' and '/usr/local/share/showeq/maps'!
Info: - Loaded 5901 message strings from '/usr/local/share/showeq/eqstr_us.txt' maxFormat=35003
Info: - GuildMgr: New guildsfile written
Info: - GuildMgr: Guildsfile loaded
MOTD: - Greetings Norrathians! Share your Norrathian pride and honor your past, present, and future adventures by voting EverQuest to the "Walk of Game." Vote once a day through the end of the month at http://www.walkofgame.com/ and help make history!
Zone: - EntryCode: Client
Info: - Loaded SOE map: '/usr/local/share/showeq/maps/bazaar.txt'
Info: - Loading Zone Filter File: /root/.showeq/filters/bazaar.xml
Zone: - Zoning, Please Wait... (Zone: 'bazaar')
(EDITED PLAYER INFO)
Debug: - charProfile(1367.692139/-677.680176/33.156166 - 281.000000)
Debug: - Player::backfill(): Pos (1367.692139/-677.680176/33.156166) Heading: 281.000000
Debug: - Player::backfill(bind): Pos (1153.632080/-149.387558/-78.874420) Heading: 0.000000
(EDITED PLAYER INFO)
Info: - Loaded SOE map: '/usr/local/share/showeq/maps/bazaar.txt'
Info: - Loading Zone Filter File: /root/.showeq/filters/bazaar.xml
Zone: - Zoning, Please Wait... (Zone: 'bazaar')
Debug: - Player::zoneBegin(): Pos (-677.625000/1367.625000/33.125000) Heading 1124.000000
Zone: - EntryCode: Server
Time: - Tue 10/14/3208 12:44 - Tue Oct 14,3208 - 12:44 pm
Debug: - Tue 10/14/3208 12:44 - Welcome to lovely downtown 'The Bazaar' with an experience multiplier of 1.000000
Debug: - Tue 10/14/3208 12:44 - Safe Point (-71.000000, -250.000000, 33.000000)
Info: - Tue 10/14/3208 12:44 - Loaded spawn points: /root/.showeq/spawnpoints/bazaar.sp
Info: - Tue 10/14/3208 12:44 - Loading Zone Filter File: /root/.showeq/filters/bazaar.xml
Zone: - Tue 10/14/3208 12:44 - Entered: ShortName = 'bazaar' LongName = The Bazaar
Zone: - Tue 10/14/3208 12:44 - NewCode: Zone: Bazaar (The Bazaar)
(EDITED PLAYER INFO)
General: - Tue 10/14/3208 12:48 - There are 18 Buyers waiting to purchase your loot. Type /barter to search for them, or use /buyer to set up your own Buy Lines.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 21360)]
0xb7e5024e in operator== () from /usr/qt/3/lib/libqt-mt.so.3
(gdb) quit
The program is running. Exit anyway? (y or n) y
=======================================
Session 2:
=======================================

sh-3.00# gdb showeq
GNU gdb 6.3
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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/bin/showeq
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 21381)]
Xlib: extension "XInputExtension" missing on display "192.168.1.101:0.0".
Failed to get list of devices
ShowEQ 5.2.1.0, released under the GPL.
SINS 0.5, released under the GPL.
All ShowEQ source code is Copyright (C) 2000-2005 by the respective ShowEQ Developers
ShowEQ comes with NO WARRANTY.

You may redistribute copies of ShowEQ under the terms of
The GNU General Public License.
See: http://www.gnu.org/copyleft/gpl.html for more details...

For updates and information, please visit http://seq.sourceforge.net/
ShowEQ 5.2.1.0, Built from 'main.cpp' on Oct 29 2005 at 10:47:55
CVS: @(#) $Id: main.cpp,v 1.35 2005/10/05 15:29:08 cmmalone Exp $ $Name: $
Using GCC version: 3.3.5
Using glibc version: 2.3
Using Qt version: 3.3.4
Using headers from linux version: 2.6.11
Using EQItemDB: @(#) $Id: itemdb.cpp,v 1.11 2005/09/13 15:23:11 cmmalone Exp $ $Name: $
Using GDBM: GDBM version 1.8.3. 10/15/2002 (built May 1 2005 16:44:41)
Running on Linux release 2.6.11-gentoo-r6 for processor i686

Using config file '/root/.showeq/showeq.xml'
Loaded preferences file: /usr/local/share/showeq/seqdef.xml!
Loaded preferences file: /root/.showeq/showeq.xml!
Info: - Listening for client: 192.168.1.100
Info: - Initializing Packet Capture Thread:
Info: - Filtering packets on device eth1, IP host 192.168.1.100
[New Thread 32769 (LWP 21387)]
[New Thread 16386 (LWP 21388)]
Info: - Loaded 7872 spells from '/usr/local/share/showeq/spells_us.txt' maxSpell=0x20fe
Info: - GuildMgr: Guildsfile loaded
Debug: - ItemDB: Disabled
Info: - Loading Filters from '/root/.showeq/filters/global.xml'
Info: - Loading Zone Filter File: /root/.showeq/filters/unknown.xml
Info: - Loading Zone Filter File: /root/.showeq/filters/unknown.xml
Info: - Categories Reloaded
Info: - No Map found for zone 'unknown'!
Info: - Checked for all variants of 'unknown.map', 'unknown.txt', and 'unknown_1.txt'
Info: - in directories '/root/.showeq/maps' and '/usr/local/share/showeq/maps'!
Info: - Loaded 5901 message strings from '/usr/local/share/showeq/eqstr_us.txt' maxFormat=35003
MOTD: - Greetings Norrathians! Share your Norrathian pride and honor your past, present, and future adventures by voting EverQuest to the "Walk of Game." Vote once a day through the end of the month at http://www.walkofgame.com/ and help make history!
Zone: - EntryCode: Client
Info: - Loaded SOE map: '/usr/local/share/showeq/maps/poknowledge.txt'
Info: - Loading Zone Filter File: /root/.showeq/filters/poknowledge.xml
Zone: - Zoning, Please Wait... (Zone: 'poknowledge')
(EDITED PLAYER INFO)
Debug: - charProfile(-368.000000/1335.000000/-125.000000 - 76.000000)
Debug: - Player::backfill(): Pos (-368.000000/1335.000000/-125.000000) Heading: 76.000000
Debug: - Player::backfill(bind): Pos (1153.632080/-149.387558/-78.874420) Heading: 0.000000
(EDITED PLAYER INFO)
Info: - Loaded SOE map: '/usr/local/share/showeq/maps/poknowledge.txt'
Info: - Loading Zone Filter File: /root/.showeq/filters/poknowledge.xml
Zone: - Zoning, Please Wait... (Zone: 'poknowledge')
Debug: - Player::zoneBegin(): Pos (1335.000000/-368.000000/-125.000000) Heading 304.000000
Zone: - EntryCode: Server
Time: - Tue 10/14/3208 13:40 - Tue Oct 14,3208 - 01:40 pm
Debug: - Tue 10/14/3208 13:41 - Welcome to lovely downtown 'The Plane of Knowledge' with an experience multiplier of 1.000000
Debug: - Tue 10/14/3208 13:41 - Safe Point (-285.000000, -148.000000, -159.000000)
Info: - Tue 10/14/3208 13:41 - Loaded spawn points: /root/.showeq/spawnpoints/poknowledge.sp
Info: - Tue 10/14/3208 13:41 - Loading Zone Filter File: /root/.showeq/filters/poknowledge.xml
Zone: - Tue 10/14/3208 13:41 - Entered: ShortName = 'poknowledge' LongName = The Plane of Knowledge
Zone: - Tue 10/14/3208 13:41 - NewCode: Zone: PoKnowledge (The Plane of Knowledge)
(EDITED PLAYER INFO)
Spell: - Tue 10/14/3208 13:44 - Xantik has begun casting 'See Invisible' - Casting time is 2 Seconds

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 21381)]
0xb7e5024e in operator== () from /usr/qt/3/lib/libqt-mt.so.3
(gdb) quit
The program is running. Exit anyway? (y or n) yes
sh-3.00# exit

Cryonic
10-29-2005, 11:23 AM
Think it would help if you would ask for a backtrace after the segfault. Think it is bt when you get the gdb prompt back.

purple
10-29-2005, 11:24 AM
Yeah, with no bt that's not really useful. It's probably just a wrong opcode which a handler causing a problem.

Could_Be_Anyone
10-29-2005, 12:30 PM
Sorry.. bt output below:
===============================================
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 10385)]
0xb7e5024e in operator== () from /usr/qt/3/lib/libqt-mt.so.3
(gdb) bt
#0 0xb7e5024e in operator== () from /usr/qt/3/lib/libqt-mt.so.3
#1 0xb7c4e4d6 in QListViewItem::setText () from /usr/qt/3/lib/libqt-mt.so.3
#2 0x0819e466 in GuildListItem::update (this=0x86e8198, guildShell=0x0)
at guildlist.cpp:97
#3 0x081a0e9f in GuildListWindow::populate (this=0x8473bb8)
at guildlist.cpp:34
#4 0x081a12da in GuildListWindow::qt_invoke (this=0x8473bb8, _id=59,
_o=0xbfffc970) at guildlist.cpp:263
#5 0xb7b6fedc in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#6 0xb7b6fd04 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#7 0x0819da3e in GuildShell::loaded (this=0x0) at qmetaobject.h:261
#8 0x0819d69c in GuildShell::guildMemberList (this=0x83d9ca8, data=0x0, len=0)
at guildshell.cpp:230
#9 0x0819ddaf in GuildShell::qt_invoke (this=0x83d9ca8, _id=2, _o=0xbfffcab0)
at qucom_p.h:312
#10 0xb7b6fedc in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#11 0x0808ff3d in EQPacketDispatch::signal (this=0x839fad8, t0=0x0, t1=23567,
t2=2 '\002') at packetinfo.moc:99
#12 0x080892be in EQPacketStream::dispatchPacket (this=0x83290f0,
data=0x898ddf2 "Annoid", len=23567, opCode=5245, opcodeEntry=0x83c5090)
at packetstream.cpp:435
#13 0x0808a034 in EQPacketStream::processPacket (this=0x83290f0, packet=@0x0)
at packetfragment.h:49
---Type <return> to continue, or q <return> to quit---
#14 0x080899aa in EQPacketStream::handlePacket (this=0x83290f0,
packet=@0xbfffcd20) at packetstream.cpp:566
#15 0x08092bae in EQPacket::dispatchPacket (this=0x83fec38, packet=@0xbfffcd20)
at packet.cpp:654
#16 0x08092aaa in EQPacket::dispatchPacket (this=0x83fec38, size=0, buffer=0x0)
at packet.cpp:578
#17 0x080950a6 in EQPacket::qt_invoke (this=0x83fec38, _id=222, _o=0xbfffcda0)
at packet.cpp:398
#18 0xb7b6fedc in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#19 0xb7b6fd04 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
#20 0xb7eb4d6b in QTimer::timeout () from /usr/qt/3/lib/libqt-mt.so.3
#21 0xb7b91822 in QTimer::event () from /usr/qt/3/lib/libqt-mt.so.3
#22 0xb7b1349f in QApplication::internalNotify ()
from /usr/qt/3/lib/libqt-mt.so.3
#23 0xb7b127d5 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3
#24 0xb7b02a15 in QEventLoop::activateTimers ()
from /usr/qt/3/lib/libqt-mt.so.3
#25 0xb7abc835 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3
#26 0xb7b25948 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3
#27 0xb7b257f8 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
#28 0xb7b136f1 in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3
#29 0x080681dd in main (argc=1, argv=0x84ddc20) at main.cpp:712
(gdb)
(gdb) quit
The program is running. Exit anyway? (y or n) y
===========================================

purple
10-29-2005, 01:34 PM
Looks like the guild member list changed I guess. Close your guild window and it should stop crashing.

Could_Be_Anyone
10-29-2005, 02:43 PM
If you mean close the Guild list (alt-g), that's not open.

The Guild window in SEQ is not up, either. Unchecked all the options for it in it's window preferences section of SEQ.. no change.

However, you did lead me to try it with a toon that's not guilded....

I tried it with 2 different toons in two different guilds, both of those crash it.. two different unguilded toons do not.

purple
10-29-2005, 03:19 PM
If you want to fix it, just go into guildshell.cpp and find m_guildTributeDonation = time_t(netStream.readUInt32()); and add netStream.readUInt32(); after that line. Or wait until I have time to spin another release tonight. There's some new flag in there, maybe the beginning of allowing you to flag someone as a prospect or something.