Messages in this thread | | | Date | Tue, 28 Jan 2003 10:45:41 -0500 | From | Daniel Jacobowitz <> | Subject | Re: PID of multi-threaded core's file name is wrong in 2.5.59 |
| |
On Tue, Jan 28, 2003 at 12:21:25PM +0000, Alan Cox wrote: > On Sat, 2003-01-25 at 04:56, MAEDA Naoaki wrote: > > Hi, > > > > I found sometimes pid of muitl-threaded core's file name shows > > wrong number in 2.5.59 with NPTL-0.17. Problem is, pid of core file > > name comes from currnet->pid, but I think it should be current->tgid. > > The value needs to be unique so that you can dump multiple threads > at the same time and not have one overwrite another. You might want > to add the tgid as another format type to the core name formatting so > users can select the behaviour you desire however ?
I think this isn't an issue; multi-threaded core dumps are done by the core_waiter synchronization, so all other threads will have exited before the first thread to crash actually writes out its core.
-- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |