public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.36-rc5-mmotm0928 BUG while trying to ptrace a process
@ 2010-10-06  9:32 Valdis.Kletnieks
  2010-10-06 13:45 ` Peter Zijlstra
  0 siblings, 1 reply; 6+ messages in thread
From: Valdis.Kletnieks @ 2010-10-06  9:32 UTC (permalink / raw)
  To: Andrew Morton, Peter Zijlstra, Paul Mackerras, Ingo Molnar,
	Arnaldo Carvalho de Melo
  Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2169 bytes --]

Dell Latitude E6500,  Intel Core2 Duo P8700 CPU.

Have seen this three times now while trying to attach gdb to a hung Firefox
process.

[20669.480674] BUG: unable to handle kernel NULL pointer dereference at 0000000000000100
[20669.480682] IP: [<ffffffff810b8275>] __reserve_bp_slot+0x56/0x17d

Here's the stack traceback:

[20669.480761] Process gdb (pid: 60320, threadinfo ffff8800a0e4c000, task ffff8800c62acc80)
[20669.480763] Stack:
[20669.480765]  ffff8801188c2eac ffffffff81a40750 0000000100000000 ffffffff81a406b0
[20669.480771] <0> ffffffff8100b469 ffff8800a0d6c400 0000000000000000 ffffffff81a406b0
[20669.480777] <0> ffffffff8100b469 0000000000000000 ffff8800a0e4dcf8 ffffffff810b83e5
[20669.480784] Call Trace:
[20669.480789]  [<ffffffff8100b469>] ? ptrace_triggered+0x0/0x39
[20669.480793]  [<ffffffff8100b469>] ? ptrace_triggered+0x0/0x39
[20669.480797]  [<ffffffff810b83e5>] reserve_bp_slot+0x22/0x3b
[20669.480800]  [<ffffffff810b6805>] ? perf_init_event+0x0/0xc9
[20669.480804]  [<ffffffff810b8487>] register_perf_hw_breakpoint+0x11/0x36
[20669.480808]  [<ffffffff810b84cb>] hw_breakpoint_event_init+0x1f/0x34
[20669.480811]  [<ffffffff8100b469>] ? ptrace_triggered+0x0/0x39
[20669.480815]  [<ffffffff810b685a>] perf_init_event+0x55/0xc9
[20669.480818]  [<ffffffff810b6805>] ? perf_init_event+0x0/0xc9
[20669.480822]  [<ffffffff810b6a74>] perf_event_alloc+0x1a6/0x3ef
[20669.480826]  [<ffffffff810b6f92>] perf_event_create_kernel_counter+0x22/0x185
[20669.480830]  [<ffffffff810b7d9b>] register_user_hw_breakpoint+0xf/0x11
[20669.480834]  [<ffffffff8100c7d3>] ptrace_set_debugreg+0xaa/0x257
[20669.480838]  [<ffffffff8156bfab>] ? sub_preempt_count+0x35/0x48
[20669.480844]  [<ffffffff81568957>] ? _raw_spin_unlock_irqrestore+0x72/0x80
[20669.480848]  [<ffffffff8100cd48>] arch_ptrace+0x126/0x214
[20669.480852]  [<ffffffff81045609>] sys_ptrace+0x7e/0x99
[20669.480857]  [<ffffffff810027eb>] system_call_fastpath+0x16/0x1b

Any thoughts? I haven't gotten any further than "the big honking commits
against perf in linux-next".  Probably bisectable with some effort - I've got
a fairly replicable Firefox hang that seems to trigger the gdb indigestion.,


[-- Attachment #2: Type: application/pgp-signature, Size: 227 bytes --]

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

* Re: 2.6.36-rc5-mmotm0928 BUG while trying to ptrace a process
  2010-10-06  9:32 2.6.36-rc5-mmotm0928 BUG while trying to ptrace a process Valdis.Kletnieks
@ 2010-10-06 13:45 ` Peter Zijlstra
  2010-10-18  1:28   ` KOSAKI Motohiro
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Zijlstra @ 2010-10-06 13:45 UTC (permalink / raw)
  To: Valdis.Kletnieks
  Cc: Andrew Morton, Paul Mackerras, Ingo Molnar,
	Arnaldo Carvalho de Melo, linux-kernel, fweisbec

On Wed, 2010-10-06 at 05:32 -0400, Valdis.Kletnieks@vt.edu wrote:
> Dell Latitude E6500,  Intel Core2 Duo P8700 CPU.
> 
> Have seen this three times now while trying to attach gdb to a hung Firefox
> process.
> 
> [20669.480674] BUG: unable to handle kernel NULL pointer dereference at 0000000000000100
> [20669.480682] IP: [<ffffffff810b8275>] __reserve_bp_slot+0x56/0x17d

Known issue I think, Frederic was looking into curing this.

Frederic, what's the current status of that?

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

* Re: 2.6.36-rc5-mmotm0928 BUG while trying to ptrace a process
  2010-10-06 13:45 ` Peter Zijlstra
@ 2010-10-18  1:28   ` KOSAKI Motohiro
  2010-10-18  1:36     ` Frederic Weisbecker
  0 siblings, 1 reply; 6+ messages in thread
From: KOSAKI Motohiro @ 2010-10-18  1:28 UTC (permalink / raw)
  To: fweisbec
  Cc: kosaki.motohiro, Valdis.Kletnieks, Andrew Morton, Paul Mackerras,
	Ingo Molnar, Arnaldo Carvalho de Melo, linux-kernel,
	Peter Zijlstra

> On Wed, 2010-10-06 at 05:32 -0400, Valdis.Kletnieks@vt.edu wrote:
> > Dell Latitude E6500,  Intel Core2 Duo P8700 CPU.
> > 
> > Have seen this three times now while trying to attach gdb to a hung Firefox
> > process.
> > 
> > [20669.480674] BUG: unable to handle kernel NULL pointer dereference at 0000000000000100
> > [20669.480682] IP: [<ffffffff810b8275>] __reserve_bp_slot+0x56/0x17d
> 
> Known issue I think, Frederic was looking into curing this.
> 
> Frederic, what's the current status of that?

mmotm1014 seems still have this issue. Frederic, can you please tell us
current status if you are tracking this issue?





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

* Re: 2.6.36-rc5-mmotm0928 BUG while trying to ptrace a process
  2010-10-18  1:28   ` KOSAKI Motohiro
@ 2010-10-18  1:36     ` Frederic Weisbecker
  2010-10-18  2:01       ` KOSAKI Motohiro
  0 siblings, 1 reply; 6+ messages in thread
From: Frederic Weisbecker @ 2010-10-18  1:36 UTC (permalink / raw)
  To: KOSAKI Motohiro
  Cc: Valdis.Kletnieks, Andrew Morton, Paul Mackerras, Ingo Molnar,
	Arnaldo Carvalho de Melo, linux-kernel, Peter Zijlstra

On Mon, Oct 18, 2010 at 10:28:43AM +0900, KOSAKI Motohiro wrote:
> > On Wed, 2010-10-06 at 05:32 -0400, Valdis.Kletnieks@vt.edu wrote:
> > > Dell Latitude E6500,  Intel Core2 Duo P8700 CPU.
> > > 
> > > Have seen this three times now while trying to attach gdb to a hung Firefox
> > > process.
> > > 
> > > [20669.480674] BUG: unable to handle kernel NULL pointer dereference at 0000000000000100
> > > [20669.480682] IP: [<ffffffff810b8275>] __reserve_bp_slot+0x56/0x17d
> > 
> > Known issue I think, Frederic was looking into curing this.
> > 
> > Frederic, what's the current status of that?
> 
> mmotm1014 seems still have this issue. Frederic, can you please tell us
> current status if you are tracking this issue?


Peter has a pending queue for .37 which includes:

	[RFC][PATCH 3/7] perf, hw_breakpoint: Fix crash in hw_breakpoint creation

This patch should fix the issue (it depends on others in the queue).

What is mmotm1014 BTW? Because you should see this bug only in a tree
that has tip:/perf/core merged inside, like linux-next.

Thanks.


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

* Re: 2.6.36-rc5-mmotm0928 BUG while trying to ptrace a process
  2010-10-18  1:36     ` Frederic Weisbecker
@ 2010-10-18  2:01       ` KOSAKI Motohiro
  2010-10-18  2:04         ` Frederic Weisbecker
  0 siblings, 1 reply; 6+ messages in thread
From: KOSAKI Motohiro @ 2010-10-18  2:01 UTC (permalink / raw)
  To: Frederic Weisbecker
  Cc: kosaki.motohiro, Valdis.Kletnieks, Andrew Morton, Paul Mackerras,
	Ingo Molnar, Arnaldo Carvalho de Melo, linux-kernel,
	Peter Zijlstra

> On Mon, Oct 18, 2010 at 10:28:43AM +0900, KOSAKI Motohiro wrote:
> > > On Wed, 2010-10-06 at 05:32 -0400, Valdis.Kletnieks@vt.edu wrote:
> > > > Dell Latitude E6500,  Intel Core2 Duo P8700 CPU.
> > > > 
> > > > Have seen this three times now while trying to attach gdb to a hung Firefox
> > > > process.
> > > > 
> > > > [20669.480674] BUG: unable to handle kernel NULL pointer dereference at 0000000000000100
> > > > [20669.480682] IP: [<ffffffff810b8275>] __reserve_bp_slot+0x56/0x17d
> > > 
> > > Known issue I think, Frederic was looking into curing this.
> > > 
> > > Frederic, what's the current status of that?
> > 
> > mmotm1014 seems still have this issue. Frederic, can you please tell us
> > current status if you are tracking this issue?
> 
> 
> Peter has a pending queue for .37 which includes:
> 
> 	[RFC][PATCH 3/7] perf, hw_breakpoint: Fix crash in hw_breakpoint creation
> 
> This patch should fix the issue (it depends on others in the queue).
> 
> What is mmotm1014 BTW? Because you should see this bug only in a tree
> that has tip:/perf/core merged inside, like linux-next.

mmotm is (usually) linux-next + akpm fixes. if a change of tip is exported
to linux-next, it is visible from mmotm tester :)




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

* Re: 2.6.36-rc5-mmotm0928 BUG while trying to ptrace a process
  2010-10-18  2:01       ` KOSAKI Motohiro
@ 2010-10-18  2:04         ` Frederic Weisbecker
  0 siblings, 0 replies; 6+ messages in thread
From: Frederic Weisbecker @ 2010-10-18  2:04 UTC (permalink / raw)
  To: KOSAKI Motohiro
  Cc: Valdis.Kletnieks, Andrew Morton, Paul Mackerras, Ingo Molnar,
	Arnaldo Carvalho de Melo, linux-kernel, Peter Zijlstra

On Mon, Oct 18, 2010 at 11:01:18AM +0900, KOSAKI Motohiro wrote:
> > On Mon, Oct 18, 2010 at 10:28:43AM +0900, KOSAKI Motohiro wrote:
> > > > On Wed, 2010-10-06 at 05:32 -0400, Valdis.Kletnieks@vt.edu wrote:
> > > > > Dell Latitude E6500,  Intel Core2 Duo P8700 CPU.
> > > > > 
> > > > > Have seen this three times now while trying to attach gdb to a hung Firefox
> > > > > process.
> > > > > 
> > > > > [20669.480674] BUG: unable to handle kernel NULL pointer dereference at 0000000000000100
> > > > > [20669.480682] IP: [<ffffffff810b8275>] __reserve_bp_slot+0x56/0x17d
> > > > 
> > > > Known issue I think, Frederic was looking into curing this.
> > > > 
> > > > Frederic, what's the current status of that?
> > > 
> > > mmotm1014 seems still have this issue. Frederic, can you please tell us
> > > current status if you are tracking this issue?
> > 
> > 
> > Peter has a pending queue for .37 which includes:
> > 
> > 	[RFC][PATCH 3/7] perf, hw_breakpoint: Fix crash in hw_breakpoint creation
> > 
> > This patch should fix the issue (it depends on others in the queue).
> > 
> > What is mmotm1014 BTW? Because you should see this bug only in a tree
> > that has tip:/perf/core merged inside, like linux-next.
> 
> mmotm is (usually) linux-next + akpm fixes. if a change of tip is exported
> to linux-next, it is visible from mmotm tester :)


Ok, thanks for the info :)


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

end of thread, other threads:[~2010-10-18  2:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-06  9:32 2.6.36-rc5-mmotm0928 BUG while trying to ptrace a process Valdis.Kletnieks
2010-10-06 13:45 ` Peter Zijlstra
2010-10-18  1:28   ` KOSAKI Motohiro
2010-10-18  1:36     ` Frederic Weisbecker
2010-10-18  2:01       ` KOSAKI Motohiro
2010-10-18  2:04         ` Frederic Weisbecker

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