Skip to content
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

Fix: do not resolve debug info on build id mismatch #101

Open
wants to merge 2 commits into
base: stable-1.5
Choose a base branch
from

Conversation

frdeso
Copy link
Contributor

@frdeso frdeso commented Dec 10, 2018

Issue

Babeltrace is showing erroneous debugging information when a trace is
read on a system that has a different version of the binary that of the
binary recording in trace.

This is due to the fact that Babeltrace currently does not confirm that
the binary(or debuglink) before resolving the debugging information.

The build ids in the trace and in the local binary must be the same to
ensure that instruction pointer addresses can be decoded.

Solution

Now when setting the build id, confirm that the trace build id and the
binary build id match. Once the match is confirmed, set the
file_build_id_matches field in the corresponding the bin_info
structure. This way when decoding the events, we can quickly check if
the debugging information is available for that binary.

Drawback

None.

Issue
=====
Babeltrace is showing erroneous debugging information when a trace is
read on a system that has a different version of the binary that of the
binary recording in trace.

This is due to the fact that Babeltrace currently does not confirm that
the binary(or debuglink) before resolving the debugging information.

The build ids in the trace and in the local binary must be the same to
ensure that instruction pointer addresses can be decoded.

Solution
========
Now when setting the build id, confirm that the trace build id and the
binary build id match. Once the match is confirmed, set the
`file_build_id_matches` field in the corresponding the `bin_info`
structure. This way when decoding the events, we can quickly check if
the debugging information is available for that binary.

Drawback
========
None.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
@frdeso
Copy link
Contributor Author

frdeso commented Dec 18, 2018

This PR is for the stable-1.5 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant