Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Valgrind and gcc [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1632

PostPosted: Sat Dec 28, 2013 2:31 pm    Post subject: Valgrind and gcc [SOLVED] Reply with quote

Does anyone have a working pair of Valgrind/GCC versions, assuming that
splitdebug is set for glibc? I've tried a couple of combinations of versions,
and Valgrind blows up every time; there must surely be a way to get it to work?

(I've read the bug reports, and they don't seem hopeful.)

Will


Last edited by cwr on Sun Dec 29, 2013 2:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 8599

PostPosted: Sat Dec 28, 2013 4:57 pm    Post subject: Reply with quote

I use an amd64 system with Valgrind 3.9.0, glibc 2.15 (FEATURES=nostrip), and various released gcc. I have not noticed any problems that I would characterize as "blowing up" on execution. You asked for splitdebug, but is there a reason you want that instead of nostrip? You can selectively build particular packages with FEATURES=nostrip, though it is admittedly inconvenient.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1632

PostPosted: Sun Dec 29, 2013 2:06 pm    Post subject: Reply with quote

I used splitdebug (on glibc-2.15.-r3 only) because from reading the bug reports that seems to be the approved
way of fixing valgrind. As I understand it, valgrind looks for some symbols that recent versions of gcc optimise
away - on one of my older systems valgrind runs with no problems at all.

Anyway, glibc and splitdebug and the most recent testing version of valgrind now work, so that's something
accomplished. Quite what was broken and why I still don't understand.

Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum