|
From: Philippe W. <phi...@sk...> - 2020-03-01 22:32:51
|
On Sun, 2020-03-01 at 22:24 +0000, Tom Hughes wrote: > On 01/03/2020 21:57, Philippe Waroquiers wrote: > > > Allow valgrind to find debug info in a 'usr merge' setup. > > > > On ubuntu 19.10, valgrind fails telling that it cannot find > > the mandatory redirection for strlen in ld-linux-x86-64.so.2. > > Why is this a problem on Ubuntu and not on Fedora which has > had usr merge for years? Not clear to me. Maybe Ubuntu and Fedora do not put debug info at the same location, and this fix is thus only needed on Ubuntu ? Or maybe on a freshly installed ubuntu ? (I had no problem on a ubuntu that was upgraded). > > I guess it's to do with the Ubuntu multilib setup being different > but are we sure this isn't going to break Fedora/RH systems? Before pushing, I tested on a centos 7.7 to be sure. > > > Without this patch, valgrind searches the debug info (a.o.) > > in /usr/lib/debug/usr/lib/x86_64-linux-gnu/ld-2.30.so > > so using the concatenation of /usr/lib/debug > > and /usr/lib/x86_64-linux-gnu/ld-2.30.so, > > but the debug info is located at the concatenation of > > /usr/lib/debug and /lib/x86_64-linux-gnu/ld-2.30.so > > (so without the leading /usr). > > Modify the debug info search so as to try with and without the /usr. > > I guess so long as it searches both that is fine... Yes, that is what I thought (and double checked on centos). Philippe |