Re: softupdate with journal panic
Me too :-( On Thu, 2 Dec 2010, Christian Gusenbauer wrote: Hi all! I second that. I can reproduce it on my i386 current machine (svn rev. #216073) when running "make all" in ports/sysutils/coreutils. (kgdb) list *0xc06821c9 0xc06821c9 is in free_jremref ~ On Thursday 02 December 2010 13:09:02 Buganini wrote: I just bumped into this problem again during port upgrading. Fatal trap 12: page fault while in kernel mode <..> #7 0x808a5a5c in free_jremref (jremref=0x0) Sorry I skipped everything 'cept this point. I got precisely this for cd /usr/ports/archivers/gtar make configure (it checked for rename()). This panic case was submitted as PR kern/150796 back on 21 Sep 2010 (on "Wed Sep 22 12:24:16 UTC 2010" "Assign to maintainer(s)"). No response so far. I WISH I could fix it myself but... Regards, Vladimir ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: softupdate with journal panic
Hi all! I second that. I can reproduce it on my i386 current machine (svn rev. #216073) when running "make all" in ports/sysutils/coreutils. (kgdb) list *0xc06821c9 0xc06821c9 is in free_jremref (/jail/mytestjail/usr/src/sys/ufs/ffs/ffs_softdep.c:3578). 3573static void 3574free_jremref(jremref) 3575struct jremref *jremref; 3576{ 3577 3578if (jremref->jr_ref.if_jsegdep) 3579free_jsegdep(jremref->jr_ref.if_jsegdep); 3580if (jremref->jr_state & IOSTARTED) 3581panic("free_jremref: IO still pending"); 3582WORKITEM_FREE(jremref, D_JREMREF); (kgdb) p jremref $1 = (struct jremref *) 0x0 (kgdb) up #11 0xc068d1c6 in cancel_diradd (dap=0xc5fc0d40, dirrem=0xc5fd91c0, jremref=0x0, dotremref=0xc62045c0, dotdotremref=0x0) at /jail/mytestjail/usr/src/sys/ufs/ffs/ffs_softdep.c:6783 6783free_jremref(dotdotremref); (kgdb) p dotdotremref $2 = (struct jremref *) 0x0 Ciao, Christian. On Thursday 02 December 2010 13:09:02 Buganini wrote: > I just bumped into this problem again during port upgrading. > > Fatal trap 12: page fault while in kernel mode > cpuid = 1; apic id = 01 > fault virtual address = 0x30 > fault code = supervisor read data, page not present > instruction pointer = 0x20:0x808a5a5c > stack pointer = 0x28:0xff8121bfb4e0 > frame pointer = 0x28:0xff8121bfb500 > code segment= base 0x0, limit 0xf, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags= interrupt enabled, resume, IOPL = 0 > current process = 63342 (conftest) > trap number = 12 > panic: page fault > cpuid = 1 > Uptime: 9m13s > Physical memory: 4012 MB > > > #0 doadump () at pcpu.h:224 > #1 0x80643fd0 in kern_reboot (howto=260) > at /usr/src/sys/kern/kern_shutdown.c:418 > #2 0x806443f3 in panic (fmt=0x0) > at /usr/src/sys/kern/kern_shutdown.c:591 > #3 0x8097352d in trap_fatal (frame=0xfe0134e47000, > eva=Variable "eva" is not available. > ) > at /usr/src/sys/amd64/amd64/trap.c:833 > #4 0x809738f1 in trap_pfault (frame=0xff8121bfb430, > usermode=0) at /usr/src/sys/amd64/amd64/trap.c:749 > #5 0x80973cef in trap (frame=0xff8121bfb430) > at /usr/src/sys/amd64/amd64/trap.c:501 > #6 0x8095e854 in calltrap () > at /usr/src/sys/amd64/amd64/exception.S:228 > #7 0x808a5a5c in free_jremref (jremref=0x0) > at /usr/src/sys/ufs/ffs/ffs_softdep.c:3576 > #8 0x808afdb2 in cancel_diradd (dap=0xfe012fb91880, > dirrem=0xfe012fa65d00, jremref=0x0, dotremref=0xfe0130040a80, > dotdotremref=0x0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:6783 > #9 0x808b0050 in newdirrem (bp=0xff80f253bc20, > dp=0xfe001418b1f8, ip=0xfe012880a3f0, isrmdir=1, > prevdirremp=0xff8121bfb630) at > /usr/src/sys/ufs/ffs/ffs_softdep.c:7206 #10 0x808b050a in > softdep_setup_directory_change ( > bp=0xff80f253bc20, dp=0xfe001418b1f8, ip=0xfe012880a3f0, > newinum=9114624, isrmdir=1) at /usr/src/sys/ufs/ffs/ffs_softdep.c:7272 > #11 0x808c28e6 in ufs_dirrewrite (dp=0xfe001418b1f8, > oip=0xfe012880a3f0, newinum=9114624, newtype=4, isrmdir=1) > at /usr/src/sys/ufs/ufs/ufs_lookup.c:1304 > ___ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: softupdate with journal panic
I just bumped into this problem again during port upgrading. Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x30 fault code = supervisor read data, page not present instruction pointer = 0x20:0x808a5a5c stack pointer = 0x28:0xff8121bfb4e0 frame pointer = 0x28:0xff8121bfb500 code segment= base 0x0, limit 0xf, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags= interrupt enabled, resume, IOPL = 0 current process = 63342 (conftest) trap number = 12 panic: page fault cpuid = 1 Uptime: 9m13s Physical memory: 4012 MB #0 doadump () at pcpu.h:224 #1 0x80643fd0 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #2 0x806443f3 in panic (fmt=0x0) at /usr/src/sys/kern/kern_shutdown.c:591 #3 0x8097352d in trap_fatal (frame=0xfe0134e47000, eva=Variable "eva" is not available. ) at /usr/src/sys/amd64/amd64/trap.c:833 #4 0x809738f1 in trap_pfault (frame=0xff8121bfb430, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:749 #5 0x80973cef in trap (frame=0xff8121bfb430) at /usr/src/sys/amd64/amd64/trap.c:501 #6 0x8095e854 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:228 #7 0x808a5a5c in free_jremref (jremref=0x0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:3576 #8 0x808afdb2 in cancel_diradd (dap=0xfe012fb91880, dirrem=0xfe012fa65d00, jremref=0x0, dotremref=0xfe0130040a80, dotdotremref=0x0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:6783 #9 0x808b0050 in newdirrem (bp=0xff80f253bc20, dp=0xfe001418b1f8, ip=0xfe012880a3f0, isrmdir=1, prevdirremp=0xff8121bfb630) at /usr/src/sys/ufs/ffs/ffs_softdep.c:7206 #10 0x808b050a in softdep_setup_directory_change ( bp=0xff80f253bc20, dp=0xfe001418b1f8, ip=0xfe012880a3f0, newinum=9114624, isrmdir=1) at /usr/src/sys/ufs/ffs/ffs_softdep.c:7272 #11 0x808c28e6 in ufs_dirrewrite (dp=0xfe001418b1f8, oip=0xfe012880a3f0, newinum=9114624, newtype=4, isrmdir=1) at /usr/src/sys/ufs/ufs/ufs_lookup.c:1304 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: softupdate with journal panic
On Mon, Aug 23, 2010 at 6:12 PM, Kostik Belousov wrote: > > On Sun, Aug 22, 2010 at 03:21:04PM +0200, Peter Holm wrote: > > On Sat, Aug 21, 2010 at 01:49:45PM -0400, Michael Butler wrote: > > > While updating sysutils/coreutils port on -current as of this morning > > > (SVN r211550), I noted a panic during the directory rename config test. > > > > > > > Your problem seems identical to this report: > > > > http://docs.freebsd.org/cgi/mid.cgi?AANLkTinPjiOV21kDLZYV5WScrhLMN7DY8E8jVHWPU5mC > > > I believe that dotdotremref in this case is legitimately NULL. With this > assumption, the following patch would help. > > diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c > index b666c0f..65e5255 100644 > --- a/sys/ufs/ffs/ffs_softdep.c > +++ b/sys/ufs/ffs/ffs_softdep.c > @@ -6770,7 +6794,8 @@ cancel_diradd(dap, dirrem, jremref, dotremref, > dotdotremref) > mkdir->md_jaddref = NULL; > if (mkdir->md_state & MKDIR_PARENT) { > if (cancel_jaddref(jaddref, NULL, > - &dirrem->dm_jwork) == 0) { > + &dirrem->dm_jwork) == 0 && > + dotdotremref != NULL) { > free_jremref(dotdotremref); > dotdotremref = NULL; > } I was having a kernel panic trying to build coreutils, at configure time it make some tests with rename() and system crashed. It was just happening on the box i'm using SUJ. After apply this patch everything went fine. Thanks! -- Renato Botelho ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: softupdate with journal panic
On Tue, Aug 24, 2010 at 12:12:57AM +0300, Kostik Belousov wrote: > On Sun, Aug 22, 2010 at 03:21:04PM +0200, Peter Holm wrote: > > On Sat, Aug 21, 2010 at 01:49:45PM -0400, Michael Butler wrote: > > > While updating sysutils/coreutils port on -current as of this morning > > > (SVN r211550), I noted a panic during the directory rename config test. > > > > > > > Your problem seems identical to this report: > > > > http://docs.freebsd.org/cgi/mid.cgi?AANLkTinPjiOV21kDLZYV5WScrhLMN7DY8E8jVHWPU5mC > > > I believe that dotdotremref in this case is legitimately NULL. With this > assumption, the following patch would help. > > diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c > index b666c0f..65e5255 100644 > --- a/sys/ufs/ffs/ffs_softdep.c Yes, works for me. - Peter ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: softupdate with journal panic
On 08/23/10 17:12, Kostik Belousov wrote: > On Sun, Aug 22, 2010 at 03:21:04PM +0200, Peter Holm wrote: >> On Sat, Aug 21, 2010 at 01:49:45PM -0400, Michael Butler wrote: >>> While updating sysutils/coreutils port on -current as of this morning >>> (SVN r211550), I noted a panic during the directory rename config test. >>> >> >> Your problem seems identical to this report: >> >> http://docs.freebsd.org/cgi/mid.cgi?AANLkTinPjiOV21kDLZYV5WScrhLMN7DY8E8jVHWPU5mC >> > I believe that dotdotremref in this case is legitimately NULL. With this > assumption, the following patch would help. Confirmed - with the patch below, it works as expected; thanks! imb > > diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c > index b666c0f..65e5255 100644 > --- a/sys/ufs/ffs/ffs_softdep.c > +++ b/sys/ufs/ffs/ffs_softdep.c > @@ -6770,7 +6794,8 @@ cancel_diradd(dap, dirrem, jremref, dotremref, > dotdotremref) > mkdir->md_jaddref = NULL; > if (mkdir->md_state & MKDIR_PARENT) { > if (cancel_jaddref(jaddref, NULL, > - &dirrem->dm_jwork) == 0) { > + &dirrem->dm_jwork) == 0 && > + dotdotremref != NULL) { > free_jremref(dotdotremref); > dotdotremref = NULL; > } ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: softupdate with journal panic
On Sun, Aug 22, 2010 at 03:21:04PM +0200, Peter Holm wrote: > On Sat, Aug 21, 2010 at 01:49:45PM -0400, Michael Butler wrote: > > While updating sysutils/coreutils port on -current as of this morning > > (SVN r211550), I noted a panic during the directory rename config test. > > > > Your problem seems identical to this report: > > http://docs.freebsd.org/cgi/mid.cgi?AANLkTinPjiOV21kDLZYV5WScrhLMN7DY8E8jVHWPU5mC > I believe that dotdotremref in this case is legitimately NULL. With this assumption, the following patch would help. diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index b666c0f..65e5255 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -6770,7 +6794,8 @@ cancel_diradd(dap, dirrem, jremref, dotremref, dotdotremref) mkdir->md_jaddref = NULL; if (mkdir->md_state & MKDIR_PARENT) { if (cancel_jaddref(jaddref, NULL, - &dirrem->dm_jwork) == 0) { + &dirrem->dm_jwork) == 0 && + dotdotremref != NULL) { free_jremref(dotdotremref); dotdotremref = NULL; } pgpC3HRGXzRwT.pgp Description: PGP signature
Re: softupdate with journal panic
On Sat, Aug 21, 2010 at 01:49:45PM -0400, Michael Butler wrote: > While updating sysutils/coreutils port on -current as of this morning > (SVN r211550), I noted a panic during the directory rename config test. > Your problem seems identical to this report: http://docs.freebsd.org/cgi/mid.cgi?AANLkTinPjiOV21kDLZYV5WScrhLMN7DY8E8jVHWPU5mC - Peter ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"