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

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