Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* how to show cause of segmentation fault with gdb
@ 2006-06-20 22:55 Oliver Block
  2006-06-20 23:28 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Block @ 2006-06-20 22:55 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to show cause of segmentation fault with gdb
  2006-06-20 22:55 how to show cause of segmentation fault with gdb Oliver Block
@ 2006-06-20 23:28 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2006-06-20 23:28 UTC (permalink / raw)
  To: Oliver Block; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-20 22:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-20 22:55 how to show cause of segmentation fault with gdb Oliver Block
2006-06-20 23:28 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox