Bug 128829 - smbd(8) causes periodic panic on 7-RELEASE
Summary: smbd(8) causes periodic panic on 7-RELEASE
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jaakko Heinonen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-12 21:00 UTC by Thad Schulz
Modified: 2010-11-23 17:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thad Schulz 2008-11-12 21:00:12 UTC
smbd seems to produce a kernel panic under high load mostly during logins.  The server seems to panic infrequently between twice a day to a once every two weeks.
This is the backtrace of the core dump

Unread portion of the kernel message buffer:                                                               
kernel trap 12 with interrupts disabled                                                                    
                                                                                                           
                                                                                                           
Fatal trap 12: page fault while in kernel mode                                                             
cpuid = 2; apic id = 06                                                                                    
fault virtual address   = 0x29                                                                             
fault code              = supervisor write, protection violation                                           
instruction pointer     = 0x20:0xc0744a51                                                                  
stack pointer           = 0x28:0xf1b10b30                                                                  
frame pointer           = 0x28:0xf1b10b88                                                                  
code segment            = base rx0, limit 0xfffff, type 0x1b                                               
                        = DPL 0, pres 1, def32 1, gran 1                                                   
processor eflags        = resume, IOPL = 0                                                                 
current process         = 56651 (smbd)                                                                     
trap number             = 12                                                                               
panic: page fault                                                                                          
cpuid = 2                                                                                                  
Uptime: 5d21h19m55s                                                                                        
Physical memory: 3571 MB                                                                                   
Dumping 333 MB: 318 302 286 270 254 238 222 206 190 174 158 142 126 110 94 78 62 46 30 14                  
                                                                                                           
#0  doadump () at pcpu.h:195                                                                               
195     pcpu.h: No such file or directory.                                                                 
        in pcpu.h                                                                                          
(kgdb) bt                                                                                                  
#0  doadump () at pcpu.h:195                                                                               
#1  0xc0754457 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409                                
#2  0xc0754719 in panic (fmt=Variable "fmt" is not available.                                              
) at /usr/src/sys/kern/kern_shutdown.c:563                                                                 
#3  0xc0a4905c in trap_fatal (frame=0xf1b10af0, eva=41) at /usr/src/sys/i386/i386/trap.c:899               
#4  0xc0a499df in trap (frame=0xf1b10af0) at /usr/src/sys/i386/i386/trap.c:280                             
#5  0xc0a2fc0b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#6  0xc0744a51 in lf_advlock (ap=0xf1b10c20, head=0xccde44d8, size=3956736) at atomic.h:149
#7  0xc095d7ad in ufs_advlock (ap=0xf1b10c20) at /usr/src/sys/ufs/ufs/ufs_vnops.c:2181
#8  0xc0a5e1e7 in VOP_ADVLOCK_APV (vop=0xc0b93c60, a=0xf1b10c20) at vnode_if.c:1977
#9  0xc0729547 in kern_fcntl (td=0xc7b20210, fd=13, cmd=9, arg=-240055200) at vnode_if.h:1036
#10 0xc0729e07 in fcntl (td=0xc7b20210, uap=0xf1b10cfc) at /usr/src/sys/kern/kern_descrip.c:336
#11 0xc0a49635 in syscall (frame=0xf1b10d38) at /usr/src/sys/i386/i386/trap.c:1035
#12 0xc0a2fc70 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:196
#13 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)

How-To-Repeat: smbd seems to produce a kernel panic under high load mostly during logins.  The server seems to panic infrequently between twice a day to a once every two weeks.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2008-11-13 01:09:39 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Konstantin Belousov freebsd_committer freebsd_triage 2008-11-13 13:09:51 UTC
State Changed
From-To: open->feedback

I think that the problem you experience might be fixed by r184227. 
What is exact version of the kernel sources and kern_lockf.c on the 
problematic machine ?
Comment 3 Thad Schulz 2008-11-13 14:20:01 UTC
The server is running the GENERIC kernel from 7.0-RELEASE and the 
version of kern_lockf.c looks like v 1.57 2007/08/07 09:04:50 if the 
GENERIC kernel was built from the sources that came with 7.0-RELEASE.  
So it looks like  the kern_lockf.c from r184227 would be newer.

-- 
Thad Schulz
Technology Coordinator
Sebeka Public School
Phone: 218-837-5101
Email: tschulz@sebeka.k12.mn.us
Comment 4 Kostik Belousov 2008-11-13 15:04:00 UTC
On Thu, Nov 13, 2008 at 08:20:01AM -0600, Thad Schulz wrote:
> The server is running the GENERIC kernel from 7.0-RELEASE and the 
> version of kern_lockf.c looks like v 1.57 2007/08/07 09:04:50 if the 
> GENERIC kernel was built from the sources that came with 7.0-RELEASE.  
> So it looks like  the kern_lockf.c from r184227 would be newer.

In fact, forthcoming 7.1 contains a new implementation of the advisory
locking. The mentioned r184227 was applicable to new code, not older one
in 7.0.
Comment 5 Jaakko Heinonen freebsd_committer freebsd_triage 2010-11-23 16:14:22 UTC
State Changed
From-To: feedback->open

Back to open.
Comment 6 Jaakko Heinonen freebsd_committer freebsd_triage 2010-11-23 16:14:40 UTC
State Changed
From-To: open->feedback

Is this still a problem for you? 


Comment 7 Jaakko Heinonen freebsd_committer freebsd_triage 2010-11-23 16:14:40 UTC
Responsible Changed
From-To: freebsd-fs->jh

Track.
Comment 8 Jaakko Heinonen freebsd_committer freebsd_triage 2010-11-23 17:01:34 UTC
State Changed
From-To: feedback->closed

Resolved in stable/7 according to submitter.