-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Stack traces broken with arc/orc #19078
Comments
FWIW, it works on 7b58dc2 which is dated 2021-08-19. |
the issue only occurs with --exceptions:goto EDIT: also if this line is removed it "works". |
ah I think I found the issue in the C code generated from this function: https://github.com/nim-lang/Nim/blob/devel/lib/system/excpt.nim#L252 if (!(((NI) 0) < s.p->data[i].line)) goto LA15_;
prepareAdd((&result), 1);
appendString((&result), TM__Q5wkpxktOdTGvlSRo9bzt9aw_116);
addInt__stdZprivateZdigitsutils_180((&result), s.p->data[i].line);
if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; the exception code is still non zero, that's why that goto after addInt__stdZprivateZdigitsutils_180 is followed and the string is incomplete. |
Workaround |
79: fixes regression in Nim - nim-lang/Nim#19078 r=disruptek a=zacharycarter Co-authored-by: Tail Wag Games <carterza@gmail.com>
Example
Current Output
something like
Expected Output
Additional Information
It's definitely a regression, I remember this worked some time ago, but I haven't bisected it yet.
The text was updated successfully, but these errors were encountered: