cynthia / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

google-perftools 1.7 heap-checker_unittest hangs when glibc 2.14 #342

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Hello, 

I have a problem with google-perftools unit tests.

The unit test (heap-checker) hangs during the HEAPCHECK=normal phase.
lt-heap-checker process just grows bigger and bigger, and nothnig else happens.

The problem occurs only with glibc 2.14. With other glibc versions everything 
is perfect.

Probably the problem is related to the __memalign_hook function.

Original issue reported on code.google.com by i...@chub.in on 6 Jun 2011 at 7:08

GoogleCodeExporter commented 9 years ago
Interesting.  2.14 isn't stable yet, is that right?  So it could be a bug in 
glibc.

I'm not going to be able to help you track this down, I'm afraid, but any 
debugging you do would be very good to know.  You can try removing the 
__memalign_hook function -- it shouldn't be needed with modern glibc's -- to 
see if it helps.  Let us know!

Original comment by csilv...@gmail.com on 6 Jun 2011 at 9:13

GoogleCodeExporter commented 9 years ago
I tried to comment out __memalign_hook function, it didn't help. 
The problem is still here.

strace for lt-heap-checker shows an infinite loop with

futex(0x7f3168910bd0, FUTEX_WAIT_PRIVATE, 2, {0, 1000000}) == -1 ETIMEDOUT 
(Connection timed out)

Original comment by i...@chub.in on 7 Jun 2011 at 7:25

GoogleCodeExporter commented 9 years ago
Ugh, it looks like I totally missed your commenting on this, or else neglected 
to respond to it.  My apologies.

It looks like glibc 2.14 was just released a few weeks ago.  Can you retry the 
tests with the latest (release) version of glibc 2.14?  That way we can see if 
the problem was a glibc bug that has since been resolved.

btw, the futex-loop means it's just waiting for a lock in another thread -- 
which is another process for the purposes of strace.  You'd have to try 
attaching to other threads in that process to see what was actually hanging.

Original comment by csilv...@gmail.com on 18 Oct 2011 at 6:30

GoogleCodeExporter commented 9 years ago
I haven't heard any other reports of this, and haven't heard anything in a few 
months, so I'm closing.  Feel free to reopen if you're still seeing problems.

Original comment by csilv...@gmail.com on 25 Jan 2012 at 11:38