www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - I Hate Segfaults

reply teqDruid <me teqdruid.com> writes:
OK... I don't even know where to start with this one.  What could cause
this?

Program received signal SIGSEGV, Segmentation fault.
0x0805ad7d in _D9invariant12_d_invariantFC6ObjectZv ()

Based on my printf debug's, it's happening after a call one of my methods,
but before any code in that method is run.  Any hints?

Thanks
John
Oct 16 2004
parent teqDruid <me teqdruid.com> writes:
Wait... I figured it out.  Dumb bug.  Infinite recursion can cause this
particular segfault, BTW.

On Sat, 16 Oct 2004 19:28:33 -0400, teqDruid wrote:

 OK... I don't even know where to start with this one.  What could cause
 this?
 
 Program received signal SIGSEGV, Segmentation fault.
 0x0805ad7d in _D9invariant12_d_invariantFC6ObjectZv ()
 
 Based on my printf debug's, it's happening after a call one of my methods,
 but before any code in that method is run.  Any hints?
 
 Thanks
 John
Oct 16 2004