-
Notifications
You must be signed in to change notification settings - Fork 588
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
Some test failures with GDB 10.1 #2740
Comments
Great, please submit those as a PR.
This probably needs more investigation. Can you show us the |
Attached file contains the dump, the test run before and some source changes to show the commands in the bash script and show the output of /proc/$pid/maps in test-monitor of the processes.
And this is the last occourence of 0x7f1f8c18a000 in the dump file:
rr-ctest_debian_x86_64_mmap_replace_most_mappings_2020-11-16_18-27-16.tar.gz |
According to this the tracee wipes out the mapping of the first page of the interpreter with an inaccessible guard page. This causes rr to be unable to determine the interpreter file path. We probably should capture the ld_path and interpreter_base when the address space is created during execve, and store them alongside the saved_auxv, so we don't have to look them up here and get confused by later mapping changes. Can you implement that? |
This aids compatibility with GDB 10.1. Related issue rr-debugger#2740. Is signalling of "found" needed, or is interpreter_base != nullptr enough?
Hello @rocallahan, a first attempt to implement it is 498a016. It moves the time when it gets saved to the same when the auxv is stored. |
That looks good to me, please submit it. |
This aids compatibility with GDB 10.1. Related issue rr-debugger#2740.
Retrieving the interpreter_base fails if done after interpreter gets invalidated. Related to rr-debugger#2740
This aids compatibility with GDB 10.1. Related issue #2740.
Retrieving the interpreter_base fails if done after interpreter gets invalidated. Related to #2740
Hello, thanks for merging. |
This aids compatibility with GDB 10.1. Related issue rr-debugger#2740.
Retrieving the interpreter_base fails if done after interpreter gets invalidated. Related to rr-debugger#2740
GDB 10.1 appeared a few days ago in debian testing.
Some tests fail because of the output of command
show architecture
changed.The first two changes below should take care of it.
But there is another issue with the mmap_replace_most_mappings test, but I could track it just down to a mapping that seems to point to /usr/lib/x86_64-linux-gnu/ld-2.31.so, but for some reason the name is not correctly retrieved.
Installing just GDB 9.2 makes the test succeed with the same build directory.
Returning early in this case made this test succeed too, but I don't know if that would be right.
The text was updated successfully, but these errors were encountered: