Re: [PATCH] kexec: set prstatus.pr_pid to cpu id when current->pid is 0

2010-08-03 Thread Simon Horman
On Tue, Aug 03, 2010 at 01:15:04AM -0700, Eric W. Biederman wrote: > Hui Zhu writes: > > > On Tue, Aug 3, 2010 at 15:37, Eric W. Biederman > > wrote: > >> Hui Zhu writes: > >> > > > > Equal 0 is not a bug, the trouble is a lot of core's pid is same. > > > > This is what gdb say: > > /* Found a

Re: [PATCH] kexec: set prstatus.pr_pid to cpu id when current->pid is 0

2010-08-03 Thread Eric W. Biederman
Hui Zhu writes: > On Tue, Aug 3, 2010 at 15:37, Eric W. Biederman wrote: >> Hui Zhu writes: >> > > Equal 0 is not a bug, the trouble is a lot of core's pid is same. > > This is what gdb say: > /* Found an old thread with the same id. It has to be dead, >otherwise we wouldn't be adding

Re: [PATCH] kexec: set prstatus.pr_pid to cpu id when current->pid is 0

2010-08-03 Thread Hui Zhu
On Tue, Aug 3, 2010 at 15:37, Eric W. Biederman wrote: > Hui Zhu writes: > >> Hi, >> >> I found that from gdb 7.1 to gdb-cvs-head cannot analyze the core file >> that get from kdump. >> What I got: >> [New ] >> [New Thread 2719] >> ../../src/gdb/thread.c:884: internal-error: switch_to_thread: >>

Re: [PATCH] kexec: set prstatus.pr_pid to cpu id when current->pid is 0

2010-08-03 Thread Eric W. Biederman
Hui Zhu writes: > Hi, > > I found that from gdb 7.1 to gdb-cvs-head cannot analyze the core file > that get from kdump. > What I got: > [New ] > [New Thread 2719] > ../../src/gdb/thread.c:884: internal-error: switch_to_thread: > Assertion `inf != NULL' failed. > A problem internal to GDB has been

[PATCH] kexec: set prstatus.pr_pid to cpu id when current->pid is 0

2010-08-03 Thread Hui Zhu
Hi, I found that from gdb 7.1 to gdb-cvs-head cannot analyze the core file that get from kdump. What I got: [New ] [New Thread 2719] ../../src/gdb/thread.c:884: internal-error: switch_to_thread: Assertion `inf != NULL' failed. A problem internal to GDB has been detected, further debugging may prov