On Thu, 8 Feb 2001, Alexander Leidinger wrote: > if I run a program compiled with gcc's function profiling option I get > "kernel trap 12 with interrupts disabled". This happens with the standard profiling option -pg. Pagefaults occur in copyin() (called from addupc_task() which is called from ast()) while sched_lock is held. This is not good. Incrementing the profiling counters is supposed to be pushed to ordinary process context so that things like copyin() can work (they have to be able to fault in pages, so they have to be able to sleep...), so using sched_lock to lock things here is wrong. > If I run it withhin X11, the machine deadlocks hard (no response from > the numlock led on the keyboard), withhin a virtual console I get a lot > of "kernel trap ..." and the program runs fine. It's surprising that it doesn't always deadlock. Bruce To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
- kernel trap 12 with interrupts disabled Manfred Antar
- Re: kernel trap 12 with interrupts disabled Valentin Chopov
- sys/i386/i386/machdep.c:cpu_idle() changes ca... Valentin Chopov
- RE: sys/i386/i386/machdep.c:cpu_idle() ch... John Baldwin
- RE: sys/i386/i386/machdep.c:cpu_idle(... Manfred Antar
- RE: sys/i386/i386/machdep.c:cpu_idle(... Tor . Egge
- RE: sys/i386/i386/machdep.c:cpu_... John Baldwin
- kernel trap 12 with interrupts disabled Alexander Leidinger
- Re: kernel trap 12 with interrupts disabled Maxim Sobolev
- Re: kernel trap 12 with interrupts disabled Bruce Evans
- Re: kernel trap 12 with interrupts disabl... Alexander Leidinger
- Re: kernel trap 12 with interrupts di... Bruce Evans
- kernel trap 12 with interrupts disabled Michael Harnois
- Re: kernel trap 12 with interrupts disabled Alfred Perlstein
- Re: kernel trap 12 with interrupts disabl... Michael Harnois
- Re: kernel trap 12 with interrupts di... Edwin Culp
- Re: kernel trap 12 with interrupts disabled Edwin Culp
- kernel trap 12 with interrupts disabled Don Lewis