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

DrRacket Crashes on Debug Rerun on Earlier Stack-frame #610

Open
LiamGaudy opened this issue Mar 2, 2023 · 1 comment
Open

DrRacket Crashes on Debug Rerun on Earlier Stack-frame #610

LiamGaudy opened this issue Mar 2, 2023 · 1 comment

Comments

@LiamGaudy
Copy link

LiamGaudy commented Mar 2, 2023

I’m submitting this report in case it is helpful. The workaround is to stay on the last stack-frame when rerunning. I checked every mention of crashing in existing issues, and no one appears to have reported this issue. On 2 different laptops with Windows 10, and DrRacket version 8.8, this crash is easily reproducible. For your convenience, I put the below code and the steps to reproduce in a file that you can just run.

#lang racket
;Run this in debug mode
(define (inner)
  (void))
(define (outer)
  (inner)) ;Put a break-point here
(outer)
;Hit Go. Click on the earlier stack-frame.
;Click on Debug again. CRASH!

Here is the crash stack-trace. Let me know if you need more information from me to be helpful to you.

@rfindler
Copy link
Member

rfindler commented Mar 4, 2023

This appears to be a problem specifically when there are two frames but they are really in tail-position wrt to each other (so they aren't actually two frames). That is, this program doesn't seem to have the problem:

#lang racket
;Run this in debug mode
(define (inner)
  11)
(define (outer)
  (+ 1 (inner))) ;Put a break-point here
(outer)
;Hit Go. Click on the earlier stack-frame.
;Click on Debug again. CRASH!

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

No branches or pull requests

2 participants