On Wed, Jan 24, 2007 at 11:44:02AM +1100, David Gibson wrote:
<snip>
> > + if (WIFSIGNALED(s)) {
> > + if (WTERMSIG(s) == SIGTRAP) {
> > + FAIL("SIGTRAP received");
> > + } else {
> > + PASS();
> > + }
>
> This could do with some explaining comments. And probably an inverted
> sense of the test: what signal *should* we get if we get a stack
> collision (I'm guessing SEGV, but we'd have to check the kernel code).
Yes Signal 11. Incidentally, if you set up a separate signal stack
(sigaltstack(2)) and have the child even handle the signal and verify
that it was caused by the stack.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel