On Tue, 2008-11-04 at 16:06 +0530, naresh kamboju wrote:
> Hi All,
> 
>  
> 
> Here is the Patch for
> ltp-full-20081031/testcases/kernel/mem/mtest06shmat1.c
> 
> This test was running infinite loop irrespective of exec_time.
> 
> Please apply the following patch.
> 
>   
> 
> Signed-Off-By : Naresh Kamboju< [EMAIL PROTECTED] >

It is not solving the problem in my system at least. Sometimes it is
going in infinite loop, and sometimes ending with the following error:

  [0xb7f0bb90]: Map address = 0xb5b00000
  [0xb7f0bb90]: Num iter: [341] Total Num Iter: [1000]
      [0xb68bbb90]: read_from_mem():  memory address: [0xb5b00000]
signal caught - [11] Exception - page fault, exception #[14]
      [0xb68bbb90]: read_mem(): content of memory: page fault at
[0xb5b00000] - ignore
page fault ocurred due a read after an shmdt from 0xb5b00000

But, one thing it should do is end in finite time.

Regards--
Subrata

> 
>  
> 
>  
> 
> --- ltp-full-20081031/testcases/kernel/mem/mtest06/shmat1.c 2007-07-16
> 10:08:20.000000000 +0530
> 
> +++ ltp-full-20081031_mod/testcases/kernel/mem/mtest06/shmat1.c
> 2008-11-04 15:50:15.000000000 +0530
> 
> @@ -510,6 +510,7 @@
> 
>                    num_iter);
> 
>  
> 
>      /* set up signals */
> 
> +    set_timer(exec_time);
> 
>      sigptr.sa_handler = (void (*)(int signal))sig_handler;
> 
>      sigfillset(&sigptr.sa_mask);
> 
>      sigptr.sa_flags = SA_SIGINFO;
> 
> @@ -527,7 +528,6 @@
> 
>      }
> 
>  
> 
>      chld_args[0] = num_iter;
> 
> -    set_timer(exec_time);
> 
>  
> 
>      for (;;)
> 
>      {
> 
>  
> 
>  
> 
>  
> 
> Thank & regards
> 
> Naresh Kamboju


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to