Summary: | Reading syms from /valgrind/lib/valgrind/memcheck-arm-linux bject doesn't have a dynamic symbol table | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | rudici.cazeao |
Component: | memcheck | Assignee: | Julian Seward <jseward> |
Status: | RESOLVED NOT A BUG | ||
Severity: | major | CC: | rudici.cazeao, tom |
Priority: | NOR | ||
Version First Reported In: | 3.11.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Valgrind Output |
Description
rudici.cazeao
2016-07-08 22:14:34 UTC
Well it's statically linked so of course it doesn't have a dynamic symbol table. I don't understand what that has to do with the illegal instruction though? or why you decided to comment out that line? Thanks for your prompt reply. I decided to comment out that line because initially I was experiencing the following: "Fatal error at startup: a function redirection which is mandatory for this platform-tool combination cannot be set up. Details of the the redirection are: A must-be-redirected function whose name matches the patter: strcmp is an object with soname matching : ld-linux.so.3 was not found whilst processing symbols from the object with soname: ld-linux.so.3. .... Cannot contineue --exiting now. Sorry" Might my change explain why I'm getting the illegal instruction? By the way, I hope I'm not sounding unintelligent but I have to ask "how do I insure that memcheck-arm-linux is not statically linked" to avoid the dynamic symbol table table error. That's not an error, it's just an informational message. There is no way to dynamically link that file. When valgrind says the redirection is mandatory it does so for a very good reason, and you can't just comment out the line to stop it complaining! You need to install debug symbols for glibc, or stop it being stripped, or something. Created attachment 100069 [details]
Valgrind Output
This is the output based on the following:
1) using a non-stripped version of ld-2.11.1.so.
Hi Tom,
Would you mind looking into the attachment "attachment 100069 [details]" ?
Also,
This is the only configuration that seems to build on my machine:
./configure --target=arm-none-linux-gnueabi --host=arm-linux-gnueabi --prefix=/usr/sbin/valgrind CFLAGS=-static.
Yet, "uname -a' command on my build machine yields the following:
"Linux rcazeao-o9020ub 3.13.0-62-generic #102-Ubuntu SMP Tue Aug 11 14:29:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux".
What should "--host" be set to?
(In reply to rudici.cazeao from comment #5) > What should "--host" be set to? I think you have it set correctly. But you need to remove CFLAGS=-static and basically forget about changing the linking arrangements. They are how they are for good reasons ;-) The more significant part here is the illegal instruction. This is a failure in the code generated by Valgrind itself. About the only way we can help you is if you can catch the SIGILL in a debugger (GDB) and show what instruction that is. What CPU is this? Is it NEON capable? *** Bug 365686 has been marked as a duplicate of this bug. *** |