NetBSD-Bugs archive

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

kern/46275: Kernel panics on heavy use, kevent / pipes related?

>Number:         46275
>Category:       kern
>Synopsis:       Kernel panics on heavy use, kevent / pipes related?
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 28 15:25:01 +0000 2012
>Originator:     Reinoud Zandijk
>Release:        NetBSD 6.0_BETA
NetBSD 6.0_BETA NetBSD 6.0_BETA (GENERIC) #0: Sat 
Mar 24 22:55:30 CET 2012

When compiling Haskell packages, the machine can suddenly reset. First i 
thought it might be memory related but further investigation showed that it 
kept crashing at exactly the same place. Therefore i inserted assertions to 
test what NULL pointer got dereferenced and today it struck at the same place 
as usual, only now in one of my asserts:

panic: kernel assertion "((file_t *) kn->kn_obj)->f_data" failed: file 
"../../../../kern/sys_pipe.c", line 1387
cpu0: Begin traceback...
 at netbsd:kern_assert+0x23
 at netbsd:filt_piperead+0x1af
kevent1(dde1bd1c,4,0,0,bb7fc010,40,0,c0b11490,dde1bd48,c0c997cc) at 
 at netbsd:sys___kevent50+0x45
 at netbsd:syscall+0xad
cpu0: End traceback...

The code is around src/sys/kern/sys_pipe.c:1355

static void
filt_pipedetach(struct knote *kn)
        struct pipe *pipe;
        kmutex_t *lock;

        pipe = ((file_t *)kn->kn_obj)->f_data;
        lock = pipe->pipe_lock;
*panic* due to deference of NULL struct pipe*


Do heavy compilation work, like ghc Haskell and some Haskell packages and it 
can show up. No idea why it showed up in Haskell, but maybe its using some form 
of pipe-snooping.

Home | Main Index | Thread Index | Old Index