Exact arguments for incorrect arg-count show bogus locals

Bug #1409402 reported by csziacobus on 2015-01-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Wishlist
Unassigned

Bug Description

In the case of incorrrect arg-count error, SBCL shows incorrect locals for the stack frame after commit 48ca019191b2ff09c516228e4018ad2b31451d91 (although I admit that it could've been introduced earlier; however that commit seems especially pertinent)

* (lisp-implementation-version)
"1.2.7.38-5f888f1"
* (logbitp 11234 2349 (+ 213423 4) (+ 12342))

debugger invoked on a SB-INT:SIMPLE-PROGRAM-ERROR in thread
#<THREAD "main thread" RUNNING {10030667D3}>:
  invalid number of arguments: 4

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(LOGBITP 11234 2349 213427 12342) [tl,external]
0] list-locals
SB-DEBUG::ARG-1 = 213427
SB-DEBUG::ARG-2 = 70368634731480

whereas in a previous version:

* (lisp-implementation-version)

"1.2.6"
* (logbitp 11234 2349 (+ 213423 4) (+ 12342))

debugger invoked on a SB-INT:SIMPLE-PROGRAM-ERROR in thread
#<THREAD "main thread" RUNNING {10030164C3}>:
  invalid number of arguments: 4

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

(LOGBITP 11234 2349 #<unknown> #<unknown>) [tl,external]
0] list-locals
SB-DEBUG::ARG-0 = 4
SB-DEBUG::ARG-1 = 11234
SB-DEBUG::ARG-2 = 2349

Stas Boukarev (stassats) wrote :

There's no locals at this point, so it needs to show nothing.

Changed in sbcl:
importance: Undecided → Wishlist
Stas Boukarev (stassats) wrote :

In f7c4da4ae93e15e112f0a4cead8da3a18af9dc39

Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers