mingming cao wrote: >Here is what I saw: > >[root@elm3b83 shmctl]# ./shmctl01 >shmctl01 1 PASS : pid, size, # of attaches and mode are correct - >pass #1 >shmctl01 0 INFO : shmdt() failed - 22 >shmctl01 0 INFO : shmdt() failed - 22 >shmctl01 0 INFO : shmdt() failed - 22 >shmctl01 0 INFO : shmdt() failed - 22 > These failures are caused by a bug in the ltp test. See the attached patch. >shmctl01 2 PASS : pid, size, # of attaches and mode are correct - >pass #2 >shmctl01 0 INFO : shmdt() failed - 22 >shmctl01 0 INFO : shmdt() failed - 22 >shmctl01 0 INFO : shmdt() failed - 22 >shmctl01 0 INFO : shmdt() failed - 22 >shmctl01 3 FAIL : # of attaches is incorrect - 0 > This one is odd. The testcase contains races, but they can only increase # of attaches. Could you strace shmctl01? The testcase with shmat(), then fork() fails. -- Manfred