I think we missed this as well. Regards-- Subrata
On Tue, 2010-08-17 at 07:57 +0200, Liang, RenXiu wrote: > In mtest06/mmap1.c, when handling the signal 11 in sig_handler, it > doesn't cover another two race conditions: > one is si_code equals "SEGV_MAPERR" but si_address does not equal to > map_address; > and one is si_code equals to "SEGV_ACCERR"; see below error log: > > <<<test_start>>> > tag=mtest06 stime=1270902396 > cmdline=" mmap1 -x 0.05" > contacts="" > analysis=exit > initiation_status="ok" > <<<test_output>>> > mmap1 0 INFO : pid[5456]: map, change contents, unmap files > 1000 times > mmap1 0 INFO : created thread[1216369840] > mmap1 0 INFO : pid[5456] - read contents of memory 0x48002000 > 1000 times > mmap1 0 INFO : page fault occurred at 0x48002000 > mmap1 0 INFO : page fault occurred at 0x48002000 > mmap1 0 INFO : page fault occurred at 0x48002000 > mmap1 0 INFO : page fault occurred at 0x48002000 > ...... > mmap1 0 INFO : page fault occurred at 0x48002000 > mmap1 0 INFO : page fault occurred at 0x48002000 > caught unexpected signal - 11 --- exiting > <<<execution_status>>> > duration=1 termination_type=exited termination_id=255 corefile=no > cutime=0 cstime=4 > <<<test_end>>> > > After cover all the three race conditions in one case in > sig_handler(), run mtest06 repeatedly, test will not fail by catching > signal 11. > > See attached patch. > > Thanks, > Renxiu > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ Ltp-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
