clasp
clasp copied to clipboard
swank debugger crash on the division-by-zero condition (FreeBSD)
Steps to reproduce:
- Evaluate
(mod 1 0)in the slime repl. - Condition of type
division-by-zerois signaled opening the slime debugger. - Press
a(forsldb-abort)
The clasp process dies with the following message:
../../src/main/main.cc:266 There was an unhandled unknown exception in process [pid: 37961] - do something about it.
Other conditions (such as type-error) seem to work fine.
Environment:
- OS: FreeBSD 12.1-RELEASE-p6 (x86-64)
- LLVM: 9.0.1
- Clasp: clasp-boehm-0.4.2-2750-g957e3270
- SLIME: unreleased master (f05e2106b292b53d3908fc413334c963fe0fa4a5)
Possibly related to #961. Relatedly, could you try the example in that issue?
(handler-bind ((arithmetic-error #'abort))
(restart-case
(integer-decode-float #.ext:short-float-positive-infinity)
(abort ())))
Relatedly, could you try the example in that issue?
@Bike: I get a condition of type EXT:SEGMENTATION-VIOLATION in the debugger, it crashes as well when I do sldb-abort (GDB backtrace). It doesn't crash when I use the cli repl (the same condition gets signaled).
That's weird. Maybe FreeBSD has different signal behavior somehow.
I can't reproduce this anymore, with the current master I simply get the following (without even involving swank):
Starting cclasp-boehm-0.4.2-3624-ge22772226-cst ... loading image...
Top level in: #<PROCESS TOP-LEVEL @0x80e02ccd1 (Running)>.
COMMON-LISP-USER> (mod 1 0)
Floating point exception (core dumped)
That is of course worse...
I don't have a FreeBSD system to test on and I'm still mystified by the other problems we've had in #961