PDA

View Full Version : Seg Fault When Running



ponyboy
05-08-2004, 01:09 PM
I'm getting this seg fault when running SEQ. I know it has to do with SEQ not looking in the right directory for showeq.xml but where do I edit the directory? Also showeq.xml and seqdef.xml are in my /usr/local/share/showeq/ directory.

Here's the error message:

Using config file '/root/.showeq/showeq.xml'
Loaded preferences file: /usr/local/share/showeq/seqdef.xml!
Unable to open file: /root/.showeq/showeq.xml!
Segmentation fault


Not sure what the .showeq is since there is no folder by that name in the root directory. But when I try to create a folder named .showeq it says there is already one there.

Freakyuno
05-08-2004, 01:32 PM
Try setting your file manager to display hidden files.

uRit1u2CBBA=
05-08-2004, 03:08 PM
in *nix file systems, any file or folder starting with a dot (.) will be hidden.

I don't know how to do it in the gui's but in the command line if you want to see hidden files, you want to add a -a to your ls command.



ls -a /root

ponyboy
05-08-2004, 05:29 PM
I was looking over the forums and I'm under the impression that showeq.xml file isnt' created until after you run it for the first time after a compile. Looks like that wasn't the problem. I'm still getting a seg fault when trying to run seq. No errors on compile and it still won't run. Here's the message I get:

ShowEQ 5.0.0.7, released under the GPL.
SINS 0.5, released under the GPL.
All ShowEQ source code is Copyright (C) 2000-2004 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.0.0.7, Built from 'main.cpp' on May 8 2004 at 18:06:35
CVS: @(#) $Id: main.cpp,v 1.33.6.3 2004/01/16 20:22:10 dohpaz Exp $ $Name: pre_5_0_beta $
Using GCC version: 3.0.2
Using glibc version: 2.3
Using Qt version: 3.2.3
Using headers from linux version: 2.4.9-9
Using EQItemDB: @(#) $Id: itemdb.cpp,v 1.10.6.1 2003/12/07 06:30:43 dohpaz Exp $ $Name: pre_5_0_beta $
Using GDBM: This is GDBM version 1.8.0, as of May 19, 1999.
Running on Linux release 2.4.18-14 for processor i686

Using config file '/usr/local/share/showeq/showeq.xml'
Loaded preferences file: /usr/local/share/showeq/seqdef.xml!
Loaded preferences file: /usr/local/share/showeq/showeq.xml!
Segmentation fault


Any ideas as to what's happening?

bonkersbobcat
05-09-2004, 11:00 AM
Originally posted by ponyboy

Using headers from linux version: 2.4.9-9
Running on Linux release 2.4.18-14 for processor i686


I am not sure if this is the problem or not, but how come your header files are of a different version then your kernel?

BB

Cryonic
05-09-2004, 11:24 AM
That's normal for RH.

They only upgrade the headers when they have to and for a number of things they will backport changes to the kernel into their own version. This is due to the wording of their support contracts

repudi8or
05-11-2004, 08:59 AM
I have what appears to be the same segfault so I thought I would run it under GDB. Dunno what this means though. Am hoping someone else might. Thanks in advance.

[root@co3001858-A showeq]# gdb /usr/local/bin/showeq
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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-gnu"...
(gdb) r
Starting program: /usr/local/bin/showeq
[New Thread 1085538720 (LWP 12354)]
ShowEQ 5.0.0.8, released under the GPL.
SINS 0.5, released under the GPL.
All ShowEQ source code is Copyright (C) 2000-2004 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.0.0.8, Built from 'main.cpp' on May 8 2004 at 19:26:39
CVS: @(#) $Id: main.cpp,v 1.33.6.3 2004/01/16 20:22:10 dohpaz Exp $ $Name: $
Using GCC version: 3.2.2
Using glibc version: 2.3
Using Qt version: 3.1.1
Using headers from linux version: 2.4.20
Using EQItemDB: @(#) $Id: itemdb.cpp,v 1.10.6.1 2003/12/07 06:30:43 dohpaz Exp $ $Name: $
Using GDBM: This is GDBM version 1.8.0, as of May 19, 1999.
Running on Linux release 2.4.20-8 for processor i686

Using config file '/root/.showeq/showeq.xml'
Loaded preferences file: /usr/local/share/showeq/seqdef.xml!
Unable to open file: /root/.showeq/showeq.xml!
Info: Listening for first client seen.
Info: Initializing Packet Capture Thread:
Info: Filtering packets on device eth0, searching for EQ client...
[New Thread 1096359104 (LWP 12361)]
Warning: Spells: Failed to open: '/usr/local/share/showeq/spells_us.txt'
Warning: GuildMgr: Could not load guildsfile, /root/.showeq/tmp/guilds2.dat
Debug: ItemDB: Disabled
Info: Loading Filters from '/home/brett/showeq'
Info: Loading Zone Filter File: /home/brett/showeq
Info: Loading Zone Filter File: /home/brett/showeq
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'!

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1085538720 (LWP 12354)]
0x4025abd1 in QGridLayout::sizeHint() const ()
from /opt/qt-x11-free-3.1.1/lib/libqt-mt.so.3
(gdb) bt
#0 0x4025abd1 in QGridLayout::sizeHint() const ()
from /opt/qt-x11-free-3.1.1/lib/libqt-mt.so.3
#1 0x08100f7e in ExperienceWindow (this=0x82a3a70, dataLocMgr=0x8320590,
player=0x8320590, groupMgr=0x8320590, zoneMgr=0x8320590, parent=0x0,
name=0x0) at qwidget.h:393
#2 0x080abcbf in EQInterface (this=0xbfffd7f0, dlm=0x8320590, parent=0x0,
name=0x818ffe8 "interface") at interface.cpp:373
#3 0x08067b04 in main (argc=1, argv=0xbfffd7f0) at main.cpp:684
#4 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
(gdb)

ponyboy
05-13-2004, 11:04 PM
I got it working by doing a wipe and re-install of Red Hat. Not sure if this an option for you but it worked for me. Hope this helps.