clasp icon indicating copy to clipboard operation
clasp copied to clipboard

swank debugger crash on the division-by-zero condition (FreeBSD)

Open ak-coram opened this issue 5 years ago • 5 comments

Steps to reproduce:

  1. Evaluate (mod 1 0) in the slime repl.
  2. Condition of type division-by-zero is signaled opening the slime debugger.
  3. Press a (for sldb-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)

GDB-Backtrace.txt

ak-coram avatar Jun 30 '20 15:06 ak-coram

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 ())))

Bike avatar Jun 30 '20 16:06 Bike

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).

ak-coram avatar Jun 30 '20 17:06 ak-coram

That's weird. Maybe FreeBSD has different signal behavior somehow.

Bike avatar Jul 01 '20 11:07 Bike

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) 

ak-coram avatar Jan 08 '21 11:01 ak-coram

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

Bike avatar Jan 08 '21 17:01 Bike