Re: [Question] Segmentation fault

From: Chris Gilbert (
Date: 04/17/01

On Tuesday 17 April 2001  4:22 am, Peter Ajamian wrote:
> Dust wrote:
> > (gdb) print atoi
> > $1 = {<text variable, no debug info>} 0x281a9ccc <atoi>
> ...
> > (gdb) print atoi
> > $2 = {<text variable, no debug info>} 0x281a9ccc <atoi>
> Okay, it's the same at program start and after the seg-fault.  That means
> that it's not getting overwritten (which is bad news because it means we
> still don't know what the problem is).  At this point I would say the
> only possibility left (at least that I can think of) is that the code
> space itself is getting overwritten.  To verify this you need a
> disassembly dump before and after the seg fault.  Try this...

Are other user compiled programs known to work and run?  IE is it a
compiler/libraries issue?  Are you getting any warnings at compile time?
What platform is FreeBSD running on, i386 or alpha?  What version of FreeBSD
is it?


   | FAQ: |
   | Archives: |

This archive was generated by hypermail 2b30 : 12/05/01 PST