[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [pbmserv-dev] Segmentation fault



Here's the results of the GDB where.  I'm going to go poke around in
Game.cpp to see if I spot something obvious:

Program received signal SIGSEGV, Segmentation fault.
0x610e94a4 in strcmp () from /usr/bin/cygwin1.dll
(gdb) where
#0  0x610e94a4 in strcmp () from /usr/bin/cygwin1.dll
#1  0x0040c137 in Game::Challenge (this=0x22ed90, argc=0, argv=0x4e10e8)
    at game.cpp:1611
#2  0x0040a774 in Game::Main (this=0x22ed90, argc=4, argv=0x4e10d8)
    at game.cpp:1385
#3  0x004010fc in main (argc=4, argv=0x4e10d8) at gomoku_main.cpp:9
(gdb)

-----Original Message-----
From: owner-pbmserv-dev@gamerz.net [mailto:owner-pbmserv-dev@gamerz.net] On
Behalf Of Richard Rognlie
Sent: Wednesday, June 29, 2005 11:52 AM
To: pbmserv-dev@gamerz.net
Subject: Re: [pbmserv-dev] Segmentation fault

On Wed, Jun 29, 2005 at 11:49:32AM -0500, Michael Hammond wrote:
> I'm not sure where core files would be appearing (do you know?), so I just
> launched gomoku from within gdb.  Here's what I got.
> 
> ----------------------------------------------
> 
> (gdb) set args challenge test1 test2
> (gdb) run
> Starting program: /cygdrive/c/temp/gomoku.exe challenge test1 test2
> 
> <snipped board output>
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x610e94a4 in strcmp () from /usr/bin/cygwin1.dll

if you add "-g" to the compile/link flags, it'll include debug infor that
will allow you to type "where" in gdb when it breaks to get a useful stack
trace.

> ---------------------------------------------------------
> 
> -----Original Message-----
> From: Paul van Wamelen [mailto:wamelen@math.lsu.edu] 
> Sent: Wednesday, June 29, 2005 11:06 AM
> To: Michael Hammond
> Subject: RE: [pbmserv-dev] New guy
> 
> 
> probably yet another file or directory is needed. Are
> you getting "core" files? Do you have gdb (type "which gdb")? That will
> tell you quickly where things break.
> (
> try "gdb gomoku core"
> and then at the gdb prompt type backtrace
> )
> 
> fritzd
> 
> 
> To unsubscribe, send a message to esquire@gamerz.net with
> 	unsubscribe pbmserv-dev@gamerz.net
> as the BODY of the message.  The SUBJECT is ignored.
> 

-- 
 /  \__  | Richard Rognlie / Sendmail Ninja / Gamerz.NET Lackey
 \__/  \ | http://www.gamerz.net/~rrognlie    <rrognlie at gamerz.net>
 /  \__/ | 
 \__/    | Forgive and Forget...  but keep a list of names


To unsubscribe, send a message to esquire@gamerz.net with
	unsubscribe pbmserv-dev@gamerz.net
as the BODY of the message.  The SUBJECT is ignored.