NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/45530: panic on shutdown



>Number:         45530
>Category:       kern
>Synopsis:       panic on shutdown
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 28 03:05:04 +0000 2011
>Originator:     Thomas Klausner
>Release:        netbsd-5
>Organization:

>Environment:
        
        
Architecture: x86_64
Machine: amd64
>Description:
Every time I shutdown one particular machine I own running netbsd-5 from a few 
weeks ago,
it panics with:
Stopped in pid 312.1 (halt) at netbsd:breakpoint+0x05: leave                    
                                                                                
                                                    
breakpoint()                                                                    
                                                                                
                                                    
panic()                                                                         
                                                                                
                                                    
lockdebug_abort()                                                               
                                                                                
                                                    
mutex_vector_enter()                                                            
                                                                                
                                                    
dkwedge_del()                                                                   
                                                                                
                                                    
dkwedge_delall()                                                                
                                                                                
                                                    
raidclose()                                                                     
                                                                                
                                                    
bdev_close()                                                                    
                                                                                
                                                    
spec_close()                                                                    
                                                                                
                                                    
VOP_CLOSE()                                                                     
                                                                                
                                                    
vn_close()                                                                      
                                                                                
                                                    
dkclose()                                                                       
                                                                                
                                                    
bdev_close()                                                                    
                                                                                
                                                    
spec_close()                                                                    
                                                                                
                                                    
VOP_CLOSE()                                                                     
                                                                                
                                                    
ffs_unmount()                                                                   
                                                                                
                                                    
VFS_UNMOUNT()                                                                   
                                                                                
                                                    
dounmount()                                                                     
                                                                                
                                                    
vfs_unmountall()                                                                
                                                                                
                                                    
cpu_reboot()                                                                    
                                                                                
                                                    
sys_reboot()                                                                    
                                                                                
                                                    
syscall()                                                                       
                                                                                
                                                    

The last lines sometimes differ, it might also end with
...
cpu_reboot()
sysmon_pswitch_event()
sysmon_task_queue_thread()

This causes unclean file systems.

The disk setup is not very complicated, from dmesg:
raid0: RAID Level 1
raid0: Components: /dev/wd0a /dev/wd1a
raid0: Total Sectors: 10486144 (5120 MB)
raid1: RAID Level 5
raid1: Components: /dev/wd0e /dev/wd1e /dev/wd2e component3[**FAILED**] 
(currently missing due to hard disk failure)
raid1: Total Sectors: 5829113568 (2846246 MB)
raid1: GPT GUID: SOMETHING
dk0 at raid1: SOMETHING
dk0: 2097152 blocks at 34, type: cgd
dk1 at raid1: SOMETHING
dk1: 5827016349 blocks at 2097186, type: ffs
boot device: raid0
root on raid0a dumps on raid0b

cat /etc/fstab:
/dev/raid0a on / type ffs (log, local)
/dev/dk1 on /storage type ffs (log, NFS exported, local)
kernfs on /kern type kernfs (local)
ptyfs on /dev/pts type ptyfs (local)
procfs on /proc type procfs (local)

>How-To-Repeat:
shutdown -p now

Panics every time.
>Fix:
No idea.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index