public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Bad core files with 2.6.19-rc2
@ 2006-10-15  2:53 Steve Youngs
  2006-10-15 18:42 ` Adrian Bunk
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Youngs @ 2006-10-15  2:53 UTC (permalink / raw)
  To: linux-kernel

gdb doesn't like any core dump file generated while running
2.6.19-rc2.  If I `kill -SIGSEGV $some_app_pid' and then...

  gdb some_app core

I get...

  warning: Couldn't find general-purpose registers in core file.
  #0  0x00000000 in ?? ()

But if I gdb attach to a running process and then kill -SIGSEGV
the process, it produces a normal trace without problem.


-- 
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
|                   Te audire no possum.                   |
|             Musa sapientum fixa est in aure.             |
|----------------------------------<steve@youngs.au.com>---|


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bad core files with 2.6.19-rc2
  2006-10-15  2:53 Bad core files with 2.6.19-rc2 Steve Youngs
@ 2006-10-15 18:42 ` Adrian Bunk
  2006-10-15 19:24   ` Petr Vandrovec
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2006-10-15 18:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: Petr Vandrovec

On Sun, Oct 15, 2006 at 12:53:41PM +1000, Steve Youngs wrote:

> gdb doesn't like any core dump file generated while running
> 2.6.19-rc2.  If I `kill -SIGSEGV $some_app_pid' and then...
> 
>   gdb some_app core
> 
> I get...
> 
>   warning: Couldn't find general-purpose registers in core file.
>   #0  0x00000000 in ?? ()
> 
> But if I gdb attach to a running process and then kill -SIGSEGV
> the process, it produces a normal trace without problem.

It seems this issue should be fixed in Linus' tree now.

Can you confirm it's fixed?

TIA
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bad core files with 2.6.19-rc2
  2006-10-15 18:42 ` Adrian Bunk
@ 2006-10-15 19:24   ` Petr Vandrovec
  2006-10-15 22:15     ` Steve Youngs
  0 siblings, 1 reply; 4+ messages in thread
From: Petr Vandrovec @ 2006-10-15 19:24 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel, Petr Vandrovec

Adrian Bunk wrote:
> On Sun, Oct 15, 2006 at 12:53:41PM +1000, Steve Youngs wrote:
> 
> 
>>gdb doesn't like any core dump file generated while running
>>2.6.19-rc2.  If I `kill -SIGSEGV $some_app_pid' and then...
>>
>>  gdb some_app core
>>
>>I get...
>>
>>  warning: Couldn't find general-purpose registers in core file.
>>  #0  0x00000000 in ?? ()
>>
>>But if I gdb attach to a running process and then kill -SIGSEGV
>>the process, it produces a normal trace without problem.
> 
> 
> It seems this issue should be fixed in Linus' tree now.
> 
> Can you confirm it's fixed?

It should be fixed now (i.e. 26 minutes ago).  Before my first fix core 
dump contained only some phdrs and notes, nothing else.  After first fix 
core dump contained everything, but pieces after notes were shifted down 
by couple of bytes.  After second fix I believe that cores are written 
out correctly - readelf still says that there is some zeroed note, but 
it seems to me like feature - older core files have this as well:

$ readelf -a core
...
Notes at offset 0x00035608 with length 0x00000018:
   Owner         Data size       Description
   Linux         0x00000004      Unknown note type: (0x00000000)

						Petr Vandrovec

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bad core files with 2.6.19-rc2
  2006-10-15 19:24   ` Petr Vandrovec
@ 2006-10-15 22:15     ` Steve Youngs
  0 siblings, 0 replies; 4+ messages in thread
From: Steve Youngs @ 2006-10-15 22:15 UTC (permalink / raw)
  To: linux-kernel

* Petr Vandrovec <petr@vandrovec.name> writes:

  > Adrian Bunk wrote:
  >> On Sun, Oct 15, 2006 at 12:53:41PM +1000, Steve Youngs wrote:
  >>> warning: Couldn't find general-purpose registers in core file.
  >>> #0  0x00000000 in ?? ()

  >> It seems this issue should be fixed in Linus' tree now.
  >> 
  >> Can you confirm it's fixed?

  > It should be fixed now

Yes, it is.  Thank you very much.

-- 
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
|                   Te audire no possum.                   |
|             Musa sapientum fixa est in aure.             |
|----------------------------------<steve@youngs.au.com>---|


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-15 22:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-15  2:53 Bad core files with 2.6.19-rc2 Steve Youngs
2006-10-15 18:42 ` Adrian Bunk
2006-10-15 19:24   ` Petr Vandrovec
2006-10-15 22:15     ` Steve Youngs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox