Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ak-coram opened this issue Jun 30, 2020 · 5 comments
Open

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

ak-coram opened this issue Jun 30, 2020 · 5 comments

Comments

@ak-coram
Copy link

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

@Bike
Copy link
Member

Bike commented Jun 30, 2020

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

@ak-coram
Copy link
Author

ak-coram commented Jun 30, 2020

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

@Bike
Copy link
Member

Bike commented Jul 1, 2020

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

@ak-coram
Copy link
Author

ak-coram commented Jan 8, 2021

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) 

@Bike
Copy link
Member

Bike commented Jan 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants