-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
createdump fails with libunwind assert: Assertion `ip >= di->start_ip && ip < di->end_ip' failed. #64168
Comments
Tagging subscribers to this area: @JulieLeeMSFT Issue Details
|
More context: |
I was looking into it. The problem is not in libunwind - runtime asks it to unwind with instruction pointer in the context set to 0. Although the OS in the CI has generated a dump for both the createdump and the crashed process that the createdump was attempting to dump, the dump from the crashed process didn't contain memory from the executables like libcoreclr.dylib and so SOS cannot work with it. It took me a while to figure out that it was the reason why SOS didn't work with the dump. I was hoping that SOS stack walking would repro the problem when opening the crashing process dump and I could debug it that way, but that was unfortunately not possible. Looking at the dump from the crashing thread stack again now, I can see though that the crash must have happened when only I am back on it. |
So, I was able to make SOS work with dumps that don't contain copy of the libcoreclr.so (dotnet/diagnostics#2827). Now I can repro the issue with the SOS |
I believe this is the commit in the libunwind that has broken us: I have enabled debugging logs in the libunwind and got this:
Notice the IP in the
The above-mentioned commit has added the Dumping the values of the stuff used in the expression:
|
The load_offset doesn't seem to match anything sane. Here is the modules list from the dump:
I am trying to investigate where that offset came from. There is a number of places in the libunwind that sets the |
I've found the culprit, preparing PR... |
The text was updated successfully, but these errors were encountered: