public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [mtest01w] mtest01w test hangs
@ 2013-07-16 10:57 SHASHANK BILGI
  2013-07-16 12:29 ` chrubis
  0 siblings, 1 reply; 4+ messages in thread
From: SHASHANK BILGI @ 2013-07-16 10:57 UTC (permalink / raw)
  To: ltp-list


[-- Attachment #1.1: Type: text/plain, Size: 1559 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1917 bytes --]

[-- Attachment #2: Type: text/plain, Size: 394 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-30 15:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-16 10:57 [LTP] [mtest01w] mtest01w test hangs SHASHANK BILGI
2013-07-16 12:29 ` chrubis
     [not found]   ` <CADyrn+vPD7d4o4F4r7HayBJ-Q9iKL4HefbUxkcJVik8yb80o7w@mail.gmail.com>
2013-07-17 13:57     ` chrubis
     [not found]       ` <CADyrn+sgQJL+0NOFp3GW78LoqmKG1szFbu+C14Dk8SZgu=fe2Q@mail.gmail.com>
     [not found]         ` <CADyrn+s2BjHFhT5BnHSHOzQmyqyEf=bofjj+6E-oKhp9OyGohA@mail.gmail.com>
2013-07-30 15:56           ` chrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox