-
Notifications
You must be signed in to change notification settings - Fork 33
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
A panic occured #527
Comments
I've seen other files where the line records extended beyond the size of the function symbol. I didn't get to the bottom of why this was the case. In any case, we should fix the overflow when this happens. Are you running dump_syms in debug mode? I recommend running with |
thanks for the |
Hello,
when running this on my executable I get:
11:23:59 [ERROR] A panic occurred at src/line.rs:213: attempt to subtract with overflow
I'm running v2.1.1.
That line is:
the numbers that crash it are:
last.len = 19 - (5378094 - 5378114)
which my calculator says is
last.len = 19 - (-20)
but u32 cannot become negative of course...
The following code runs through but probably doesn't make sense.
On the other hand the input is somehow corrupted. So probably emitting anything reasonable is better than crashing...
If anyone has any ideas how solve this better let me know. I'm happy to help.
cheers,
nils
The text was updated successfully, but these errors were encountered: