kern/128452: [sa] [panic] Accessing SCSI tape drive randomly crashes my amd64 system

Kirk Strauser kirk at strauser.com
Sun Nov 9 09:20:09 PST 2008


The following reply was made to PR kern/128452; it has been noted by GNATS.

From: Kirk Strauser <kirk at strauser.com>
To: bug-followup at FreeBSD.org,
 kirk at strauser.com
Cc:  
Subject: Re: kern/128452: [sa] [panic] Accessing SCSI tape drive randomly crashes my amd64 system
Date: Sun, 9 Nov 2008 11:16:30 -0600

 I got another panic this morning when starting an Amanda "flush" from  
 disk to tape.  I had recompiled the kernel with SCHED_4BSD instead of  
 SCHED_ULE for testing.  Also, I've run memtest on this system for 8+  
 hours straight with no RAM errors.
 
 # kgdb /boot/kernel/kernel /var/crash/vmcore.10
 GNU gdb 6.1.1 [FreeBSD]
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and  
 you are
 welcome to change it and/or distribute copies of it under certain  
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for  
 details.
 This GDB was configured as "amd64-marcel-freebsd"...
 
 Unread portion of the kernel message buffer:
 
 
 Fatal trap 12: page fault while in kernel mode
 cpuid = 0; apic id = 00
 fault virtual address	= 0x258
 fault code		= supervisor read data, page not present
 instruction pointer	= 0x8:0xffffffff8047d41a
 stack pointer	        = 0x10:0xffffffffaef6cac0
 frame pointer	        = 0x10:0xffffff000443aa50
 code segment		= base 0x0, limit 0xfffff, type 0x1b
 			= DPL 0, pres 1, long 1, def32 0, gran 1
 processor eflags	= interrupt enabled, resume, IOPL = 0
 current process		= 50 (syncer)
 trap number		= 12
 panic: page fault
 cpuid = 0
 Uptime: 2d16h27m41s
 Physical memory: 6130 MB
 Dumping 675 MB: 660 644 628 612 596 580 564 548 532 516 500 484 468  
 452 436 420 404 388 372 356 340 324 308 292 276 260 244 228 212 196  
 180 164 148 132 116 100 84 68 52 36 20 4
 
 Reading symbols from /boot/kernel/if_re.ko...Reading symbols from / 
 boot/kernel/if_re.ko.symbols...done.
 done.
 Loaded symbols for /boot/kernel/if_re.ko
 Reading symbols from /boot/kernel/coretemp.ko...Reading symbols from / 
 boot/kernel/coretemp.ko.symbols...done.
 done.
 Loaded symbols for /boot/kernel/coretemp.ko
 Reading symbols from /boot/kernel/cpufreq.ko...Reading symbols from / 
 boot/kernel/cpufreq.ko.symbols...done.
 done.
 Loaded symbols for /boot/kernel/cpufreq.ko
 Reading symbols from /boot/kernel/pflog.ko...Reading symbols from / 
 boot/kernel/pflog.ko.symbols...done.
 done.
 Loaded symbols for /boot/kernel/pflog.ko
 Reading symbols from /boot/kernel/pf.ko...Reading symbols from /boot/ 
 kernel/pf.ko.symbols...done.
 done.
 Loaded symbols for /boot/kernel/pf.ko
 Reading symbols from /boot/kernel/linux.ko...Reading symbols from / 
 boot/kernel/linux.ko.symbols...done.
 done.
 Loaded symbols for /boot/kernel/linux.ko
 Reading symbols from /boot/kernel/nullfs.ko...Reading symbols from / 
 boot/kernel/nullfs.ko.symbols...done.
 done.
 Loaded symbols for /boot/kernel/nullfs.ko
 Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from / 
 boot/kernel/fdescfs.ko.symbols...done.
 done.
 Loaded symbols for /boot/kernel/fdescfs.ko
 Reading symbols from /boot/kernel/accf_http.ko...Reading symbols from / 
 boot/kernel/accf_http.ko.symbols...done.
 done.
 Loaded symbols for /boot/kernel/accf_http.ko
 Reading symbols from /boot/kernel/green_saver.ko...Reading symbols  
 from /boot/kernel/green_saver.ko.symbols...done.
 done.
 Loaded symbols for /boot/kernel/green_saver.ko
 #0  doadump () at pcpu.h:195
 195	pcpu.h: No such file or directory.
 	in pcpu.h
 (kgdb) list *0xffffffff8047d41a
 0xffffffff8047d41a is in _mtx_lock_sleep (/usr/src/sys/kern/ 
 kern_mutex.c:341).
 336			 */
 337			v = m->mtx_lock;
 338			if (v != MTX_UNOWNED) {
 339				owner = (struct thread *)(v & ~MTX_FLAGMASK);
 340	#ifdef ADAPTIVE_GIANT
 341				if (TD_IS_RUNNING(owner)) {
 342	#else
 343				if (m != &Giant && TD_IS_RUNNING(owner)) {
 344	#endif
 345					if (LOCK_LOG_TEST(&m->lock_object, 0))
 (kgdb) backtrace
 #0  doadump () at pcpu.h:195
 #1  0x0000000000000004 in ?? ()
 #2  0xffffffff80488821 in boot (howto=260) at /usr/src/sys/kern/ 
 kern_shutdown.c:418
 #3  0xffffffff80488c5c in panic (fmt=0x104 <Address 0x104 out of  
 bounds>) at /usr/src/sys/kern/kern_shutdown.c:574
 #4  0xffffffff8073f1aa in trap_fatal (frame=0xffffff000443aa50,  
 eva=Variable "eva" is not available.
 ) at /usr/src/sys/amd64/amd64/trap.c:764
 #5  0xffffffff8073f551 in trap_pfault (frame=0xffffffffaef6ca10,  
 usermode=0) at /usr/src/sys/amd64/amd64/trap.c:680
 #6  0xffffffff8073fe0f in trap (frame=0xffffffffaef6ca10) at /usr/src/ 
 sys/amd64/amd64/trap.c:449
 #7  0xffffffff8072685e in calltrap () at /usr/src/sys/amd64/amd64/ 
 exception.S:209
 #8  0xffffffff8047d41a in _mtx_lock_sleep (m=0xffffff003c1b74d8,  
 tid=18446742974269467216, opts=Variable "opts" is not available.
 ) at /usr/src/sys/kern/kern_mutex.c:339
 #9  0xffffffff804ff4e2 in vfs_msync (mp=0xffffff000445aa68, flags=2)  
 at /usr/src/sys/kern/vfs_subr.c:2976
 #10 0xffffffff804ff73b in sync_fsync (ap=Variable "ap" is not available.
 ) at /usr/src/sys/kern/vfs_subr.c:3225
 #11 0xffffffff804ffebc in sched_sync () at vnode_if.h:538
 #12 0xffffffff80468efd in fork_exit (callout=0xffffffff804ff8a7  
 <sched_sync>, arg=0x0, frame=0xffffffffaef6cc80)
      at /usr/src/sys/kern/kern_fork.c:804
 #13 0xffffffff80726c2e in fork_trampoline () at /usr/src/sys/amd64/ 
 amd64/exception.S:455
 #14 0x0000000000000000 in ?? ()
 #15 0x0000000000000000 in ?? ()
 #16 0x0000000000000001 in ?? ()
 #17 0x0000000000000000 in ?? ()
 #18 0x0000000000000000 in ?? ()
 #19 0x0000000000000000 in ?? ()
 #20 0x0000000000000000 in ?? ()
 #21 0x0000000000000000 in ?? ()
 #22 0x0000000000000000 in ?? ()
 #23 0x0000000000000000 in ?? ()
 #24 0x0000000000000000 in ?? ()
 #25 0x0000000000000000 in ?? ()
 #26 0x0000000000000000 in ?? ()
 #27 0x0000000000000000 in ?? ()
 #28 0x0000000000000000 in ?? ()
 #29 0x0000000000000000 in ?? ()
 #30 0x0000000000000000 in ?? ()
 #31 0x0000000000000000 in ?? ()
 #32 0x0000000000000000 in ?? ()
 #33 0x0000000000000000 in ?? ()
 #34 0x0000000000000000 in ?? ()
 #35 0x0000000000000000 in ?? ()
 #36 0x0000000000000000 in ?? ()
 #37 0x0000000000000000 in ?? ()
 #38 0x0000000000d04000 in ?? ()
 #39 0x0000000000000002 in ?? ()
 #40 0x0000000000000000 in ?? ()
 #41 0xffffff00044428f0 in ?? ()
 #42 0xffffff00044afa50 in ?? ()
 #43 0xffffff000443aa50 in ?? ()
 #44 0xffffffffaef6ca28 in ?? ()
 #45 0xffffff000443aa50 in ?? ()
 #46 0xffffffff804a7246 in sched_switch (td=0x0,  
 newtd=0xffffffff804ff8a7, flags=1) at /usr/src/sys/kern/sched_4bsd.c:910
 #47 0x0000000000000000 in ?? ()
 #48 0x0000000000000000 in ?? ()
 #49 0x0000000000000000 in ?? ()
 #50 0x0000000000000000 in ?? ()
 #51 0x0000000000000000 in ?? ()
 #52 0x0000000000000000 in ?? ()
 #53 0x0000000000000000 in ?? ()
 #54 0x0000000000000000 in ?? ()
 #55 0x0000000000000000 in ?? ()
 #56 0x0000000000000000 in ?? ()
 #57 0x0000000000000000 in ?? ()
 #58 0x0000000000000000 in ?? ()
 #59 0x0000000000000000 in ?? ()
 #60 0x0000000000000000 in ?? ()
 #61 0x0000000000000000 in ?? ()
 #62 0x0000000000000000 in ?? ()
 #63 0x0000000000000000 in ?? ()
 #64 0x0000000000000000 in ?? ()
 #65 0x0000000000000000 in ?? ()
 #66 0x0000000000000000 in ?? ()
 #67 0x0000000000000000 in ?? ()
 #68 0x0000000000000000 in ?? ()
 #69 0x0000000000000000 in ?? ()
 #70 0x0000000000000000 in ?? ()
 #71 0x0000000000000000 in ?? ()
 #72 0x0000000000000000 in ?? ()
 #73 0x0000000000000000 in ?? ()
 #74 0x0000000000000000 in ?? ()
 #75 0x0000000000000000 in ?? ()
 #76 0x0000000000000000 in ?? ()
 #77 0x0000000000000000 in ?? ()
 #78 0x0000000000000000 in ?? ()
 #79 0x0000000000000000 in ?? ()
 #80 0x0000000000000000 in ?? ()
 #81 0x0000000000000000 in ?? ()
 #82 0x0000000000000000 in ?? ()
 #83 0x0000000000000000 in ?? ()
 #84 0x0000000000000000 in ?? ()
 #85 0x0000000000000000 in ?? ()
 #86 0x0000000000000000 in ?? ()
 #87 0x0000000000000000 in ?? ()
 #88 0x0000000000000000 in ?? ()
 #89 0x0000000000000000 in ?? ()
 #90 0x0000000000000000 in ?? ()
 #91 0x0000000000000000 in ?? ()
 #92 0x0000000000000000 in ?? ()
 #93 0x0000000000000000 in ?? ()
 #94 0x0000000000000000 in ?? ()
 #95 0x0000000000000000 in ?? ()
 #96 0x0000000000000000 in ?? ()
 #97 0x0000000000000000 in ?? ()
 #98 0x0000000000000000 in ?? ()
 #99 0x0000000000000000 in ?? ()
 #100 0x0000000000000000 in ?? ()
 #101 0x0000000000000000 in ?? ()
 #102 0x0000000000000000 in ?? ()
 #103 0x0000000000000000 in ?? ()
 #104 0x0000000000000000 in ?? ()
 #105 0x0000000000000000 in ?? ()
 #106 0x0000000000000000 in ?? ()
 #107 0x0000000000000000 in ?? ()
 #108 0x0000000000000000 in ?? ()
 #109 0x0000000000000000 in ?? ()
 #110 0x0000000000000000 in ?? ()
 #111 0x0000000000000000 in ?? ()
 #112 0x0000000000000000 in ?? ()
 #113 0x0000000000000000 in ?? ()
 #114 0x0000000000000000 in ?? ()
 #115 0x0000000000000000 in ?? ()
 #116 0x0000000000000000 in ?? ()
 #117 0x0000000000000000 in ?? ()
 #118 0x0000000000000000 in ?? ()
 Cannot access memory at address 0xffffffffaef6d000
 (kgdb) quit
 


More information about the freebsd-scsi mailing list