List Info

Thread: how to show cause of segmentation fault with gdb




how to show cause of segmentation fault with gdb
user name
2006-06-20 22:52:45
Hi,

the last days I faced the following problem. I was writing a
program that used 
c-client library. I defined and assigned a

char *myvar;

and the function expected a 

char myvar[];

Because a deeper function needed write access to that
variable the program 
stopped with a segmentation fault. Someone else gave me a
hint which is most 
likely the cause of the error. But he guessed, actually.

Is there a safe way show the cause of that error using gdb.

Best Regards,

Oliver
how to show cause of segmentation fault with gdb
user name
2006-06-20 22:55:15
On Wed, Jun 21, 2006 at 12:52:45AM +0200, Oliver Block
wrote:
> Is there a safe way show the cause of that error using
gdb.

No, not really.

-- 
Daniel Jacobowitz
CodeSourcery
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )