Re: NULL deference in real_exception

2005-05-09 Thread Nicholas Clark
On Thu, Apr 28, 2005 at 02:14:17PM +0200, Leopold Toetsch wrote: > Nicholas Clark <[EMAIL PROTECTED]> wrote: > > > (gdb) p interpreter->exceptions > > $5 = (struct parrot_exception_t *) 0x0 > > > what should have initialised that? > > An exception structure is created per entering a run-loop, se

Re: NULL deference in real_exception

2005-04-28 Thread Leopold Toetsch
Nicholas Clark <[EMAIL PROTECTED]> wrote: > (gdb) p interpreter->exceptions > $5 = (struct parrot_exception_t *) 0x0 > what should have initialised that? An exception structure is created per entering a run-loop, see: src/inter_runc.c:runops(). You can either create your own exception setup/hand

NULL deference in real_exception

2005-04-28 Thread Nicholas Clark
In exceptions.c, real_exception has: { STRING *msg; Parrot_exception *the_exception = interpreter->exceptions; ... /* * FIXME classify errors */ the_exception->severity = EXCEPT_error; which goes BOOM: Program received signal EXC_BAD_ACCESS, Could not access memory.