Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2005 15:48:56 -0500
From:      Anish Mistry <mistry.7@osu.edu>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: propagate_priority panic [backtrace]
Message-ID:  <200501131549.08903.mistry.7@osu.edu>
In-Reply-To: <200501131348.37699.jhb@FreeBSD.org>
References:  <200501130111.04893.mistry.7@osu.edu> <200501131127.10811.mistry.7@osu.edu> <200501131348.37699.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1896723.jU0RUahIWr
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Thursday 13 January 2005 01:48 pm, John Baldwin wrote:
> On Thursday 13 January 2005 11:27 am, Anish Mistry wrote:
> > On Thursday 13 January 2005 01:10 am, Anish Mistry wrote:
> > > 	Not sure if anyone else is seeing this, but I'm pretty sure the
> > > following commit broke my system.  When mysql tries to shutdown I get=
 a
> > > panic in propagate_priority. As well as X freezing when I go to start
> > > it. Actually one of the applictions or the WM causes it to freeze, but
> > > same problem I think but I can't see the console.  Before this
> > > everything worked fine.  I can post the hand transcribed panic
> > > backtrace message tomorrow if anyone is interested since I don't have=
 a
> > > serial port on the machine.
> > > I'm using the 4BSD scheduler with the latest -CURRENT.
> > >
> > > jhb         2004-12-30 20:52:44 UTC
> > >
> > >   FreeBSD src repository
> > >
> > >   Modified files:
> > >     sys/kern             sched_4bsd.c sched_ule.c subr_turnstile.c
> > >     sys/sys              proc.h sched.h turnstile.h
> > >
> > >   Revision  Changes    Path
> > >   1.71      +102 -14   src/sys/kern/sched_4bsd.c
> > >   1.144     +77 -20    src/sys/kern/sched_ule.c
> > >   1.151     +120 -71   src/sys/kern/subr_turnstile.c
> > >   1.415     +1 -0      src/sys/sys/proc.h
> > >   1.23      +2 -0      src/sys/sys/sched.h
> > >   1.6       +1 -0      src/sys/sys/turnstile.h
> >
> > Dmesg and kernel config attached.
> > Ok, here is the panic and backtrace:
> > kernel trap 12 with interrupts disabled
> >
> >
> > Fatal trap 12: page fault while in kernel mode
> > fault virtual address =3D 0x4
> > fault code =3D supervisor read, page not present
> > instruction pointer =3D 0x8:0xc04d5a4f
> > stack pointer =3D 0x10:0xcc53bbdc
> > frame pointer =3D 0x10:0xcc53bbec
> > code segment =3D base 0x0, limit 0xfffff, type 0x1b
> > =3D DPL 0, pres 1, def32 1, gran 1
> > processor eflags =3D resume, IOPL =3D 0
> >  current process =3D 628 (mysqld)
> > [thread pid 628 tid 100085 ]
> > Stopped at propagate_priority+0x153: pushl 0x4(%eax)
> > db> tr
> > Tracing pid 628 tid 100085 td 0xc14e4730
> > propagate_priority(c0645cb4,c0645cb0,c15ac650,c14e4730,c14e4730) at
> > propagate_priority+0x153
> > turnstile_wait(c15as650,c15ac650,2,c05f401e,21e) at turnstile_wait+0x1ae
> > _mtx_lock_sleep(c15ac650,c14e4730,0,c05f8604,206) at _mtx_lock_sleep+0x=
85
> > _mtx_lock_flags(c15ac650,0,c05f8604,206,c15ac650) at _mtx_lock_flags+0x=
50
> > sleepq_calc_signal_retval(0,0,100,ci4e4730,8476f4c) at
> > sleep_calc_signal_retval+0x2b
> > msleep(c10bb334,c15ac650,168,c05f399a,402) at msleep+0x3eb
> > kse_release(c14e4730,cc53bd14,1,12,296) at kse_release+0x186
> > syscall(2f,2f,2f,8472000,0) at syscall+0x128
> > Xint-x80_syscall() at Xint0x80_syscall+0x1f
> > --- syscall (383, FreeBSD ELF32, kse_release), eip =3D 0x285851eb, esp =
=3D
> > 0x8476f28, ebp =3D 0x8476f64
>
> Does this still happen if you turn FULL_PREEMPTION off?  Note from NOTES:
>
> # FULL_PREEMPTION instructs the kernel to preempt non-realtime kernel
> #         threads.  Its sole use is to expose race conditions and other
> #         bugs during development.  Enabling this option will reduce
> #         performance and increase the frequency of kernel panics by
> #         design.  If you aren't sure that you need it then you don't.
> #         Relies on the PREEMPTION option.  DON'T TURN THIS ON.
Yeah, that was it.
=2D-=20
Anish Mistry

--nextPart1896723.jU0RUahIWr
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBB5t7ExqA5ziudZT0RAgHUAJ9toIUhMI4q3GzePmvwQlv4opDXdACgp1ds
eKQg87YgEBYDnQwmf6hYDkQ=
=eubF
-----END PGP SIGNATURE-----

--nextPart1896723.jU0RUahIWr--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501131549.08903.mistry.7>