Thanks.

Regards--
Subrata

On Tue, 2008-10-28 at 17:20 +0800, Jin Bing Guo wrote:
> <Bug 1>:
> In madvise03 case, it would apply a large size shared memory. But in
> some system, it was greater than the shmmax. So it would be failed.
> 
> =========
> In madvise03.c:
> 
>    if ((shmid1 = shmget(IPC_PRIVATE, 1024*1024*1024,
> IPC_CREAT|IPC_EXCL|0701))
> == -1) {
>              perror("shmget");
>              exit(1);
>        }
> 
> [EMAIL PROTECTED] madvise]# cat /proc/sys/kernel/shmmax 
> 33554432
> 
> 
> <Bug 2>:
> It would not remove the shared memory when it exited. 
> 
> [EMAIL PROTECTED] cvs_ltp]# ipcs -m
> 
> ------ Shared Memory Segments --------
> key        shmid      owner      perms      bytes      nattch     status      
> 
> [EMAIL PROTECTED] cvs_ltp]# ./runltp -q -s madvise03
> Running tests.......
> madvise03    1  PASS  :  madvise test for MADV_REMOVE PASSED
> madvise03    2  PASS  :  madvise test for MADV_DONTFORK PASSED
> madvise03    3  PASS  :  madvise test for MADV_DOFORK PASSED
> INFO: pan reported all tests PASS
> 
> [EMAIL PROTECTED] cvs_ltp]# ipcs -m
> 
> ------ Shared Memory Segments --------
> key        shmid      owner      perms      bytes      nattch     status      
> 0x00000000 272793600  root      701        1073741824 0                       
> 
> 
> 
> Signed-off-by: Jin Bing Guo <[EMAIL PROTECTED]>
> -----
> 
> Thanks,
> -- Jin Bing Guo
> 
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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