nptl01 test in LTP fails for the 20070415 release on sparc

Bug #107012 reported by Marc Tardif
18
Affects Status Importance Assigned to Milestone
linux-source-2.6.20 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

The nptl01 test is for detecting a bug found in the pthread_cond_timedwait() system call of the Native POSIX Thread Library (NPTL) library code. There was an error path in the system call, where the sequence counters were getting updated w/o holding the internal condvar lock. A FAIL is indicated by the test hanging and not completing execution.

The nptl01 test hung for the 20070415 release installed on both T1000 and T2000 hardware.

Revision history for this message
Marc Tardif (cr3) wrote :

The nptl01 test is part of the ltp-kernel-test package. For your convenience, I have attached the relevant file from the source package.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

this is another hang in FUTEX_WAIT but at least we have a much smaller test case then building openoffice.

Fabio

Revision history for this message
Marc Tardif (cr3) wrote :

I tried rebooting from the linux-image-2.6.20-15-sparc64 kernel and then ran the same test 1000 times:

  export PATH="$PATH:/usr/lib/debian-test/tools:/usr/lib/debian-test/tests/linux/testcases/bin"
  export LTPROOT="/usr/lib/debian-test/tests/linux";
  for i in `seq 1 1000`; do nptl01; done

That never hung, so that seems to confirm the bug is SMP related.

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

Patch has been made available. Note that this bug affects all arches and not just sparc. Diff is that sparc did show it quickly due to the amount of CPUs locking/unlocking.

Fabio

Changed in linux-source-2.6.20:
status: Confirmed → In Progress
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

I hope I'm not injecting unwanted noise here.
It seems to me that bug #107093 is also due to a hang in FUTEX_WAIT, or am I totally wrong?

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

this was fixed with the last feisty kernel upload to -security

Changed in linux-source-2.6.20:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.