[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ltp-list
Subject:    Re: [LTP] patch for mtest01 hangs up
From:       Robert Williamson <robbiew () us ! ibm ! com>
Date:       2005-12-23 17:33:57
Message-ID: OF6D65A080.C1DBD0F9-ON852570E0.00607168-862570E0.006061CB () us ! ibm ! com
[Download RAW message or body]

Applied patch to CVS tree for January release.

Thanks!

-robbie
(Embedded image moved to file: pic05171.jpg)


                                                                           
             "Mao, Bibo"                                                   
             <bibo.mao@intel.c                                             
             om>                                                        To 
             Sent by:                  <ltp-list@lists.sourceforge.net>    
             ltp-list-admin@li                                          cc 
             sts.sourceforge.n         "Zou, Nanhai"                       
             et                        <nanhai.zou@intel.com>, "Gavrilova, 
                                       Tatiana G"                          
                                       <tatiana.g.gavrilova@intel.com>     
             12/04/2005 10:17                                      Subject 
             PM                        [LTP] patch for mtest01 hangs up    
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Would you like to take into account next issue?

LTP release is ltp-full-20051005.
mtest01 test case hangs up.

mtest01w mtest01 -p80 -w

This test program has some problem, it uses SIGUSR1 to inform parent
process
that child process has finished memory allocation operation. But this
signal is
not reliable, it need RT signal to inform parent process. Without this
patch, sometime parent process can not receive the signal, so it will
hang up.

Attachment contains patch.

Regards
bibo,mao
(See attached file: mtest01.patch)
["pic05171.jpg" (image/jpeg)]
["mtest01.patch" (application/octet-stream)]

--- ltp-full-20051005.org/testcases/kernel/mem/mtest01/mtest01.c	2005-10-05 23:46:33.000000000 +0800
+++ ltp-full-20051005/testcases/kernel/mem/mtest01/mtest01.c	2005-12-01 01:24:21.000000000 +0800
@@ -67,7 +67,7 @@ int main(int argc, char* argv[]) {
   act.sa_handler = handler;
   act.sa_flags = 0;
   sigemptyset(&act.sa_mask);
-  sigaction(SIGUSR1,  &act, 0);
+  sigaction(SIGRTMIN,  &act, 0);
 
   for (i=0;i<1000;i++)
    pid_list[i]=(pid_t)0;
@@ -217,7 +217,7 @@ int main(int argc, char* argv[]) {
       printf("... %lu bytes allocated and used.\n",bytecount);
     else
       printf("... %lu bytes allocated only.\n",bytecount);
-    kill(getppid(),SIGUSR1);
+    kill(getppid(),SIGRTMIN);
     while(1)
       sleep(1);
   }


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic