-
Notifications
You must be signed in to change notification settings - Fork 0
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
c4test
segfaults with e.g. basic1.c4m
#37
Comments
I cannot reproduce locally; please provide a stack trace. |
Quick one, from the latest commit on
libcon4m/src/hatrack/hash/dict.c Lines 86 to 91 in 1721c36
|
Well, there is no free handler being set anywhere via So if you can track down any more info, that would be very helpful. |
Okay, I found a candidate for the culprit. Can you try, in
to this:
It's definitely wrong and have made the change locally; even though I can't reproduce directly, I feel pretty good about it being the issue. |
That fixed it, thanks. Let's add an initial testing workflow in CI? I've created #38, which shows the current segfault:
and succeeds when your fix is applied. Still need to make it find the crypto library on macOS, though. |
After commit 1e6a017 (2024-06-17, "Code generation"), running c4test could sometimes produce a segfault: $ build/c4test tests/basic1.c4m info: Compiling from: tests/basic1.c4m zsh: segmentation fault (core dumped) build/c4test tests/basic1.c4m Apply John's fix [1]. Fixes: #37 [1] #37 (comment)
I don't know whether you wanted to make any other changes there right now, but I created #39 in case that's helpful. Please close it if you'd prefer to create a PR yourself. |
Running
c4test
sometimes works:and sometimes segfaults:
It looks like this was introduced by 1e6a017 (the codegen PR, #31). The commit before that seems OK.
The segfaults still occur with #36.
The text was updated successfully, but these errors were encountered: