Bug 887 - valgrind errors in ALL tests on glibc-2.10
valgrind errors in ALL tests on glibc-2.10
Status: RESOLVED INVALID
Product: ns-3
Classification: Unclassified
Component: general
pre-release
PC Linux
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-20 06:52 EDT by Andrey Mazo
Modified: 2011-08-09 14:16 EDT (History)
3 users (show)

See Also:


Attachments
./test.py --grind --retain --verbose on (216.81 KB, application/octet-stream)
2010-04-20 07:59 EDT, Andrey Mazo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Mazo 2010-04-20 06:52:33 EDT
./test.py --grind summary:
0 of 126 tests passed (0 passed, 6 skipped, 0 failed, 0 crashed, 120 valgrind errors)

1) ns-3-dev revision 3aa30fa758f5
2) ./waf configure -d optimized --disable-python (debug/release are also affected)
3) ./test.py --grind

Tested on following machines:
*) gcc 4.3.4, glibc 2.10.1, valgrind 3.4.1, kernel 2.6.32, 64-bit
*) gcc 4.3.4, glibc 2.10.1, valgrind 3.5.0, kernel 2.6.33, 32-bit
*) gcc 4.4.1, glibc 2.10.1, valgrind 3.5.0, kernel 2.6.31, 32-bit
o) gcc 4.3.4, glibc 2.9_p20081201, valgrind 3.4.1, kernel 2.6.31, 64-bit

Tests pass successfully on o) machine only.
Comment 1 Andrey Mazo 2010-04-20 07:59:24 EDT
Created attachment 838 [details]
./test.py --grind --retain --verbose on 

on machine
gcc 4.3.4, glibc 2.10.1, valgrind 3.4.1, kernel 2.6.32, 64-bit
Comment 2 Craig Dowell 2010-04-20 14:26:33 EDT
What is valgrind complaining about?  (i.e., ./test.py -v -g)

I am running kernel 2.6.32, glibc 2.11.1, valgrind 3.5.0 with no problem.
Comment 3 Craig Dowell 2010-04-20 14:35:48 EDT
Sorry, I didn't notice the attachment.

You can always add the offending library errors to the suppressions file (testpy.supp).
Comment 4 Andrey Mazo 2010-04-21 06:20:59 EDT
(In reply to comment #3)
> Sorry, I didn't notice the attachment.
> 
> You can always add the offending library errors to the suppressions file
> (testpy.supp).

I've reinstalled valgrind and it seems to solve the bunch of invalid read errors.
Looks like valgrind produces false errors in case, when glibc was updated after valgrind.

Suppose to close the bug as WORKSFORME.
Comment 5 Andrey Mazo 2010-10-02 09:45:25 EDT
(In reply to comment #4)
> (In reply to comment #3)
> > Sorry, I didn't notice the attachment.
> > 
> > You can always add the offending library errors to the suppressions file
> > (testpy.supp).
> 
> I've reinstalled valgrind and it seems to solve the bunch of invalid read
> errors.
> Looks like valgrind produces false errors in case, when glibc was updated after
> valgrind.
> 
> Suppose to close the bug as WORKSFORME.

Well, the same problem has appeared several times on various Gentoo installations.
And every time just rebuilding valgrind solved the problem.
Looks like it's a Gentoo/valgrind bug, not ns-3 one.
So I'd propose to close this bug.
Comment 6 Tom Henderson 2011-08-09 14:16:08 EDT
moving this to the wiki and marking resolved/invalid since it is not an ns-3 problem:

https://www.nsnam.org/wiki/index.php/Troubleshooting#Valgrind_errors