Opened 4 years ago

Last modified 7 months ago

#1695 new defect

Exception handler bug when compiled with -O5?

Reported by: sjamaan Owned by:
Priority: major Milestone: 6.0.0
Component: compiler Version: 5.2.0
Keywords: Cc:
Estimated difficulty: hard


Reported by NieDzejkob? on IRC:

Compile the following program with -O4 or lower and it terminates. With -O5 it gets stuck in an endless loop in the with-exception-handler lambda.

(import (chicken condition))
  (handle-exceptions exn
                      (if (eq? exn 'two)
                        (abort exn))
    (let [(orig (current-exception-handler))]
        (lambda (exn)
          (if (eq? exn 'one)
              (abort 'two)
              (orig exn)))
        (lambda ()
          (abort 'one))))))

Change History (2)

comment:1 Changed 3 years ago by felix winkelmann

Milestone: 5.35.4

comment:2 Changed 7 months ago by felix winkelmann

Note: See TracTickets for help on using tickets.