in reply to Debugging segfault in inline C (actually inline pdlpp, but probably the same principle)

Hi andye,
FWIW (which may not be a lot), I usually stick in some debug printf("got to here\n") calls, so that I can identify the precise function call that's causing the segfault. Once the problem code has been identified, I often find I can figure out what's going awry.

Cheers,
Rob
  • Comment on Re: Debugging segfault in inline C (actually inline pdlpp, but probably the same principle)

Replies are listed 'Best First'.
Re^2: Debugging segfault in inline C (actually inline pdlpp, but probably the same principle)
by andye (Curate) on Apr 20, 2007 at 15:00 UTC
    Hi Rob,

    Yeah, that's what I've been doing for much of today. :) I have at least found what's going wrong - I'm overrunning an array - but I'd really like to find out if there was an easier way...

    Best wishes, andye