-
Notifications
You must be signed in to change notification settings - Fork 432
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
PLT hook segfault about GCC 7 #91
Comments
Is the test program (t-abc) is a same binary for both case (or is it also rebuilt with GCC7)? I need to check GCC changes about PLT handling.. |
If the binaries are different (IOW rebuit), could you please chek there's any difference in the disassembly output? |
@namhyung I think there aren't big difference about PLT handling.. But if checking disassembly code of test program (t-abc) built by
If checking the case of
|
@namhyung And let me show all cases about Case A) with uftrace built by
Case B) with uftrace built by
|
OK. Many thanks. Could you provide a link for libmcount-fast.so built with GCC7 so that I can take a look at the binary? |
@namhyung Okey, you want to download libmcount-fast.so built by gcc 7. Right ? |
Yes, appreciated! |
Hum.. My build way is wrong ?..
|
Not sure.. maybe it contains some object files built with GCC5. But I can reproduce the segfault so it's ok for me. |
And the problem might be due to stack alignment required by "movaps" instruction. Could you please test below patch?
|
Sure, after I tested this, will tell you the result ! 😄 |
@namhyung The segfault is gone ! with your patch. But I don't understand exactly what |
FYI http://x86.renejeschke.de/html/file_module_x86_id_180.html
|
Thank you ! |
There is no this problem of uftrace built by
gcc 5.4.1
.But when building uftrace by
gcc 7.0.1
, I found the segmentation fault about PLT hook like below.But if using
--no-libcall
, the segmentation fault didn't appear.If checking core file, you can see libmcount/plthook.c:429
The text was updated successfully, but these errors were encountered: