public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* BUG: sleeping function called from invalid context at kernel/fork.c:385
@ 2007-05-23  6:31 David Chinner
  2007-05-23  6:43 ` Andrew Morton
  0 siblings, 1 reply; 41+ messages in thread
From: David Chinner @ 2007-05-23  6:31 UTC (permalink / raw)
  To: lkml

Saw this when running strace -f on a script on 2.6.21 on ia64:

BUG: sleeping function called from invalid context at kernel/fork.c:385
in_atomic():1, irqs_disabled():0

Call Trace:
 [<a000000100014700>] show_stack+0x80/0xa0
                                sp=e00000306e6f7a00 bsp=e00000306e6f0ef8
 [<a000000100014750>] dump_stack+0x30/0x60
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0ee0
 [<a0000001000acaf0>] __might_sleep+0x1f0/0x260
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0eb8
 [<a0000001000bd2e0>] mmput+0x20/0x220
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0e90
 [<a0000001000321e0>] sys_ptrace+0x460/0x1600
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0d80
 [<a00000010000bc40>] ia64_ret_from_syscall+0x0/0x20
                                sp=e00000306e6f7e30 bsp=e00000306e6f0d80
 [<a000000000010620>] __kernel_syscall_via_break+0x0/0x20
                                sp=e00000306e6f8000 bsp=e00000306e6f0d80
BUG: sleeping function called from invalid context at kernel/fork.c:385
in_atomic():1, irqs_disabled():0

Call Trace:
 [<a000000100014700>] show_stack+0x80/0xa0
                                sp=e00000306e6f7a00 bsp=e00000306e6f0ef8
 [<a000000100014750>] dump_stack+0x30/0x60
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0ee0
 [<a0000001000acaf0>] __might_sleep+0x1f0/0x260
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0eb8
 [<a0000001000bd2e0>] mmput+0x20/0x220
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0e90
 [<a0000001000321e0>] sys_ptrace+0x460/0x1600
                                sp=e00000306e6f7bd0 bsp=e00000306e6f0d80
 [<a00000010000bc40>] ia64_ret_from_syscall+0x0/0x20
                                sp=e00000306e6f7e30 bsp=e00000306e6f0d80
 [<a000000000010620>] __kernel_syscall_via_break+0x0/0x20
                                sp=e00000306e6f8000 bsp=e00000306e6f0d80

I could reproduce it via 'strace -f sleep 1'

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group

^ permalink raw reply	[flat|nested] 41+ messages in thread
[parent not found: <f1318b470705301650y5ed9fdbn12ad0ebe30233336@mail.gmail.com>]

end of thread, other threads:[~2007-06-07  5:20 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23  6:31 BUG: sleeping function called from invalid context at kernel/fork.c:385 David Chinner
2007-05-23  6:43 ` Andrew Morton
2007-05-23 17:44   ` Luck, Tony
2007-05-30  3:30     ` David Chinner
2007-05-30  4:44       ` David Chinner
2007-05-30 20:11         ` Luck, Tony
2007-05-30 22:39           ` Christoph Lameter
2007-05-30 23:19             ` Luck, Tony
2007-05-30 23:31               ` Christoph Lameter
2007-05-30 23:34                 ` Randy Dunlap
2007-05-30 23:53                   ` Christoph Lameter
2007-05-30 23:55                     ` Randy Dunlap
2007-05-31  0:09                       ` Christoph Lameter
2007-05-31  2:37                         ` Luck, Tony
2007-05-31  3:19                           ` Christoph Lameter
2007-05-31 15:20                             ` Prarit Bhargava
2007-05-31 19:54                               ` Sam Ravnborg
2007-05-31 20:04                               ` Sam Ravnborg
2007-05-31 20:08                                 ` [PATCH] net/hp100: fix section mismatch warning Sam Ravnborg
2007-05-31 20:17                                 ` [PATCH] kvm: fix section mismatch warning in kvm-intel.o Sam Ravnborg
2007-05-31 20:24                                 ` [PATCH] acpi: fix section mismatch warning in asus_acpi.o Sam Ravnborg
2007-05-31 20:29                                   ` [PATCH] acpi: fix section mismatch warning in asus + toshiba Sam Ravnborg
2007-05-31 20:46                                 ` [PATCH] isdn: fix section mismatch warnings Sam Ravnborg
2007-05-31 20:51                                 ` [PATCH] microcode: fix section mismatch warning Sam Ravnborg
2007-05-31 20:42                               ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Christoph Lameter
2007-06-01  3:18                               ` Luck, Tony
2007-06-01  3:31                                 ` Prarit Bhargava
2007-06-01  4:05                                   ` Christoph Lameter
2007-06-01  4:17                                     ` Sam Ravnborg
2007-06-01  4:45                                       ` Christoph Lameter
2007-06-01  6:42                                         ` Sam Ravnborg
2007-06-01  8:00                                   ` Luck, Tony
2007-06-01 10:30                                     ` Prarit Bhargava
2007-06-01 10:37                                       ` Luck, Tony
2007-06-05 14:55                                     ` linux-ia64 build warning messages Russ Anderson
2007-06-07  5:00                                       ` Peter Chubb
2007-05-31  6:12                         ` BUG: sleeping function called from invalid context at kernel/fork.c:385 Randy Dunlap
2007-05-31  4:43                 ` Sam Ravnborg
2007-05-31  0:53           ` David Chinner
2007-06-04  5:14             ` Peter Chubb
     [not found] <f1318b470705301650y5ed9fdbn12ad0ebe30233336@mail.gmail.com>
2007-05-30 23:56 ` Yu, Fenghua

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