On Tue, 25 Feb 1997 10:07:02 PST, David Dyck wrote:
>
>summary:
> op/tie.t gets "Segmentation fault" with Sarathy's perl_call patch
>
Oops. Thanks for that report (Evil how the segfault doesn't show
up under `make test`. Evil.)
Try this patch. (I was being risque with the runlevel pretense...)
p5p-msgid: <
199702251925.OAA15498@aatma.engin.umich.edu>
{
int ret;
int oldrunlevel = runlevel;
+ OP *oldop = op;
Sigjmp_buf oldtop;
op = o;
- runlevel--; /* pretense */
Copy(top_env, oldtop, 1, Sigjmp_buf);
#ifdef DEBUGGING
assert(mustcatch == TRUE);
Copy(oldtop, top_env, 1, Sigjmp_buf);
runlevel = oldrunlevel;
mustcatch = TRUE;
+ op = oldop;
Siglongjmp(top_env, ret);
/* NOTREACHED */
case 3:
Copy(oldtop, top_env, 1, Sigjmp_buf);
runlevel = oldrunlevel;
mustcatch = TRUE;
+ op = oldop;
return Nullop;
}