public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* stap --rlimit-stack=1 does not behave as expected in RHEL6.4
@ 2013-06-19 22:55 Hien Nguyen
  2013-06-24 16:15 ` David Smith
  0 siblings, 1 reply; 2+ messages in thread
From: Hien Nguyen @ 2013-06-19 22:55 UTC (permalink / raw)
  To: systemtap

Under RHEL6.4 and systemtap-1.8x, I run the rlimit.exp testcase, it 
failed this test

FAIL: rlimit STACK small


Upon looking under the hood, it looks like the test doing this and 
expecting stap to crash or fail.

exec stap --rlimit-stack=1 -p4 systemtap.base/rlimit.stp

However, stap did not crash and successfully built the stap-xxx.ko.

I saw a bug filed on this, but there is no follow up

http://sourceware.org/bugzilla/show_bug.cgi?id=13977

I wonder if anyone run into this same issue.

Thanks, Hien.





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

* Re: stap --rlimit-stack=1 does not behave as expected in RHEL6.4
  2013-06-19 22:55 stap --rlimit-stack=1 does not behave as expected in RHEL6.4 Hien Nguyen
@ 2013-06-24 16:15 ` David Smith
  0 siblings, 0 replies; 2+ messages in thread
From: David Smith @ 2013-06-24 16:15 UTC (permalink / raw)
  To: Hien Nguyen; +Cc: systemtap

On 06/19/2013 05:55 PM, Hien Nguyen wrote:
> Under RHEL6.4 and systemtap-1.8x, I run the rlimit.exp testcase, it
> failed this test
> 
> FAIL: rlimit STACK small
> 
> 
> Upon looking under the hood, it looks like the test doing this and
> expecting stap to crash or fail.
> 
> exec stap --rlimit-stack=1 -p4 systemtap.base/rlimit.stp
> 
> However, stap did not crash and successfully built the stap-xxx.ko.
> 
> I saw a bug filed on this, but there is no follow up
> 
> http://sourceware.org/bugzilla/show_bug.cgi?id=13977
> 
> I wonder if anyone run into this same issue.
> 
> Thanks, Hien.

After looking at this one for awhile, I decided to just remove the
"STACK small" test. I verified that the stap executable is calling
setrlimit() correctly, and the new stack limit is getting set correctly
on the process. However, the RHEL6 kernel ignores that limit (perhaps
because the stack is already larger than that?). Since there is no point
in fighting the kernel here, I just removed that test.

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)

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

end of thread, other threads:[~2013-06-24 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-19 22:55 stap --rlimit-stack=1 does not behave as expected in RHEL6.4 Hien Nguyen
2013-06-24 16:15 ` David Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).