-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Metadata missing from inlined frames in backtraces #41031
Comments
I poked around a little bit. I noticed there's a Is there a point at which the
I'd like to determine if this Update: Found out I can inspect |
Sounds great if it's reliable. Getting module information would be useful, but it would be even better if we could trace back to the |
Awesome to see this fixed. Thanks so much @BioTurboNick :-) |
Having the parent Module and other method metadata available for each frame in a backtrace is quite useful for pretty printing, but we're currently missing it for inlined frames. For example:
For the
foo
frame, thelinfo
field contains theMethodInstance
which in turn can be traced back to theMethod
usingst[2].linfo.def
to get theModule
or other desired metadata. However, for thebar
frame we just getnothing
here.A place to start looking is inside the lookup code at
julia/src/debuginfo.cpp
Line 542 in 1a2285b
As suggested there, we should have the MethodInstance (or a CodeInfo thunk for toplevel code... IIRC) for the parent non-inlined frame in
new_frames[n_frames-1]
. So if we made sure that contained sufficient information about inlined methods we could fill inlinfo
in some way from there.See also #33065 (comment)
The text was updated successfully, but these errors were encountered: