Re: Weirdness with suspending jobs in 2.6.9-rc3
From: Roland McGrath
Date: Mon Oct 11 2004 - 18:16:31 EST
> All I know is that this doesn't happen in kernels where the waitid patch
> was not applied. It has *NEVER* happened until now.
That's obviously suggestive, but it's real hard to know whether it's just a
coincidental perturbation of the timing or who-knows-what triggering a bug
elsewhere, or a new kernel bug, without more concrete information about
what goes wrong.
If you can work more on providing a way for people like me and Andrew to
get this to reproduce for us, then we will be able to make quick progress
from there. Right now, all we can really do is make suggestions to you for
how to proceed with debugging and you'll have to be the one to dig up more.
> Possibly it was strace catching the wrong end of whatever make was doing
> when it started ptracing it.
I don't know any sane scenario that would result in the value you showed in
that wait4 call from strace. We really need to learn more about how that
happens.
> Could it be glibc's problem.
This seems unlikely unless you changed your glibc very recently, but
anything is possible. I think you should continue to work with tools like
strace and/or gdb to figure out where this bogus value comes from.
If you have trouble catching make losing in gdb, you could also do
something funky like hack your kernel to do something like:
if (pid != -1 && (pid & 0xff000000))
force_sig_specific(SIGSEGV, current);
in do_waitid. This should cause make to dump core at the bogus system
call, and then you could examine the core file with gdb to learn more about
how it wound up passing that bogus value.
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/