Re: bug in RLIMIT_SIGPENDING

From: Roland McGrath
Date: Sat Apr 28 2007 - 18:48:02 EST


I don't think there is any reason to think the accounting is wrong. The
accounted number of queue entries is 1. The -1 (~0ul) displayed is the
maximum for your process, which is RLIM_INFINITY.

Nothing in what you've reported so far points positively towards a signals
issue per se. First, you should see if you simply have a livelock
situation. That is, your signal handler is running many times and never
letting fork complete. Try setting the itimer to a much larger value like
one second, and see if the problem still occurs. If not, you may just be
having timer signals going off too fast to finish a fork in between. If
this is the case and it seems like fork should not take as long as it does,
then you can look into how long fork is really taking and why.

If in fact your signal handler does not run many times, then the issue is
stranger.


Thanks,
Roland
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/