Branch: Tag:

2010-09-27

2010-09-27 17:06:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Unlink ONERROR's before calling them to avoid recursion on error.

Fixes LysLysKOM 18719549/Pike mailinglist 12047.
Thanks to Artur Skawina <art.08.09@gmail.com> for the report.

Rev: src/error.c:1.170
Rev: src/pike_error.h:1.56
Rev: src/testsuite.in:1.899

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.898 2010/07/27 15:33:35 mast Exp $"]]); + test_true([["$Id: testsuite.in,v 1.899 2010/09/27 17:06:30 grubba Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
3952:    return Y(5)->x;   ]], 7)    + test_eval_error([[ +  // Triggered infinite recursion and core dump. +  // cf LysLysKOM 18719518/Pike mailinglist 12047. +  object o = class{}(); +  o->foo += ""; + ]]) +    test_compile_error([[    class X {    int x;