-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Reproducible Medley hang #1888
Comments
After fixing that error in my program it runs successfully to completion. The only unusual aspect of my code is that it calls |
multiple-values in a loop is a bad idea, a known long-standing bug (Issue #19). It doesn’t clean up the stack properly on each call.
… On Nov 26, 2024, at 1:59 PM, Herb Jellinek ***@***.***> wrote:
After fixing that error in my program it runs successfully to completion. The only unusual aspect of my code is that it calls multiple-value-bind and values in a loop, once each for every pixel in a 32*16 bitmap. Each values invocation returns 4 fixnums.
—
Reply to this email directly, view it on GitHub <#1888 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJNKCKZL6WCQNAUWOAT2CTVK7AVCNFSM6AAAAABSRNGDO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBSGAYTSNRVG4>.
You are receiving this because you are subscribed to this thread.
|
That's too bad, this code would be much less readable and maybe marginally less efficient if I need to cons up an object and return it. loops no more than 512 times I just created a test function that does that and makes it easy to reproduce the problem. I'll close this issue and continue the discussion under issue #19. |
GitHub should have closed it as "duplicate." |
I'm reopening this because it seems not to be related to what's reported in issue #19. From @nbriggs's comment on that issue:
|
The cases where I've seen a crash like this before, though as far as I know not emanating from GC called from N_OP_Cons, have been because other code caused a smash. These were when @rmkaplan was working on the internal data structures of TEdit which involved various pointer bashing exercises. Is there any chance that something that you were working on might have done damage that then sent GC off the deep end? |
The code I've been working doesn't do anything with, for example, raw pointers, nor does it try to outsmart the GC. It's tempting to say it only uses the documented Medley APIs, but the imagestream APIs I'm using aren't as documented as they might be. But my code is using only type-checked operations. And I wasn't using @rmkaplan's experimental TEdit branch. |
@hjellinek do you have the ldesdl executable from the crash? If so, could you zip it up and attach it here. Thanks. |
I just rebuilt it, but Time Machine says this is the previous (Nov 6) version. |
Describe the bug
Running a simple Lisp function that does output to the Exec, Medley hangs with a spinning pizza cursor.
To Reproduce
Steps to reproduce the behavior:
(write-bitmap bm #'debug-output-fn #'pixel-to-monochrome-rgba)
ldesdl
process.Expected behavior
I expect to see several more lines of output in the Exec. I expect Medley not to hang.
Screenshots
I attached one screenshot showing the output
write-bitmap
produced leading up to the hang, though it's unlikely it will show you much. More interestingly, I got macOS to produce a problem report, also attached.Context (please complete the following information):
cea720feb218e25f9927b50e3a123581746a0e52
running SDLAdditional context
I can provide the
lisp.virtualmem
file.crash.log.zip
The text was updated successfully, but these errors were encountered: