Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 332871

Summary: dev-util/valgrind-3.5.0: doesnt work sys-libs/glibc-2.12
Product: Gentoo Linux Reporter: Michal 'vorner' Vaner <vorner>
Component: [OLD] DevelopmentAssignee: Maurice van der Pot (RETIRED) <griffon26>
Status: RESOLVED FIXED    
Severity: major CC: tdalman, zeev.tarantov
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 331665    
Attachments: Emerge --info

Description Michal 'vorner' Vaner 2010-08-15 18:23:28 UTC
Hello

After an upgrade of glibc to 2.12.1, valgrind starts reporting many false positives, like the ones noted here: http://www.cygwin.com/ml/libc-alpha/2010-05/msg00024.html or here: http://bugs.archlinux.org/task/19634.

Downgrade of glibc is not supported, attempt to reemerge valgrind fails with (end of configure):
checking for egrep... /bin/grep -E
checking the GLIBC_VERSION version... unsupported version
configure: error: Valgrind requires glibc version 2.2 - 2.11

This is kind of unlucky, as it leaves no way to restore valgrind into usable state without complete system reinstall or other risky operations like forced downgrade of glibc (no, I'm not going to try that). May I suggest some kind of block that would stop glibc from upgrading if valgrind is installed?

Thanks

Reproducible: Always

Steps to Reproduce:
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-08-15 20:14:23 UTC
emerge --info please 
Comment 2 SpanKY gentoo-dev 2010-08-15 20:31:11 UTC
not a bug in glibc
Comment 3 Michal 'vorner' Vaner 2010-08-15 20:57:34 UTC
Created attachment 243107 [details]
Emerge --info
Comment 4 Michal 'vorner' Vaner 2010-08-15 21:02:05 UTC
I do not think it is bug neither in glibc nor in valgrind. Just that glibc does some magic inside and valgrind needs to know about it and it does not yet know this version. With short look trough the internet, they are working on newer valgrind that will know glibc-2.12, but until then, they do not work together, so I think there should be a block in the ebuilds.
Comment 5 Zeev Tarantov 2010-08-15 23:47:48 UTC
valgrind-9999 works fine with glibc-2.12.1 on ~amd64.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-08-19 17:58:15 UTC
+  19 Aug 2010; Samuli Suominen <ssuominen@gentoo.org> valgrind-3.5.0.ebuild,
+  +files/valgrind-3.5.0-glibc-2.12.patch,
+  +files/valgrind-3.5.0-stat_h.patch:
+  Fix building with recent glibc wrt #332871 by Michal Vaner.