Dear all,

           I was running mtest01w test on a target board which has 80 MB or
RAM and 2GB of swap space. And this test keeps waiting forever, please find
the console logs below,

-8<---------------------------------------------------------
<<<test_start>>>
tag=mtest01w stime=2336
cmdline="mtest01 -p80 -w"
contacts=""
analysis=exit
<<<test_output>>>
[ 2351.111281] rmon:L
mtest01     0  TINFO  :  Total memory already used on system = 22796 kbytes
mtest01     0  TINFO  :  Total memory used needed to reach maximum =
1750246 kbytes
mtest01     0  TINFO  :  Filling up 80% of ram which is 1727450 kbytes
mtest01     1  TBROK  :  stopped at 716177408 bytes: errno=ENOMEM(12):
Cannot allocate memory


* When the malloc fails the child process seems to be calling tst_exit().
mtest01.c
.....
.....
        if (pid == 0) {
                bytecount = chunksize;
                while (1) {
                        if ((mem = malloc(chunksize)) == NULL) {
                                tst_resm(TBROK | TERRNO,
                                         "stopped at %lu bytes", bytecount);
                                free(pid_list);
                                tst_exit();
                        }

.....
.....

* but in this case i can see the child process in the process list(ps -ax)
in sleep state.

 333 ttyAM0   S      0:00 mtest01 -p80 -w
 334 ttyAM0   Z      0:14 [mtest01] <defunct>
 335 ttyAM0   S      0:13 mtest01 -p80 -w

Here is my query , why tst_exit() isn't ending the child process?
Somebody pls help!!

Regards ,
Shashank JB
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to