Subject: Re: kern/29903 (panic is back; data follows)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Arto Selonen <arto@selonen.org>
List: netbsd-bugs
Date: 04/21/2005 09:55:01
The following reply was made to PR kern/29903; it has been noted by GNATS.

From: Arto Selonen <arto@selonen.org>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/29903 (panic is back; data follows)
Date: Thu, 21 Apr 2005 12:54:03 +0300 (EEST)

 Hi!
 
 On Thu, 21 Apr 2005, Martin Husemann wrote:
 
 > From: Martin Husemann <martin@duskware.de>
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: kern/29903 (additional data point)
 > Date: Thu, 21 Apr 2005 10:32:03 +0200
 >
 > Could you please build an unpatched kernel with
 >
 >   makeoptions     DEBUG="-g"
 
 % strings /netbsd | sed -n 's/^_CFG_//p' | unvis | grep -i debug
 # Diagnostic/debugging support options
 options         DEBUG           # expensive debugging checks/support
 options         DDB             # in-kernel debugger
 #options        KGDB            # remote debugger
 makeoptions     DEBUG="-g"      # compile full symbol table
 #options        IPSEC_DEBUG     # debug for IP security
 #options        TCP_DEBUG       # Record last TCP_NDEBUG packets with SO_DEBUG
 #options        PNPBIOSDEBUG    # more fulsome PnP BIOS debugging messages
 #options        PCIINTR_DEBUG           # super-verbose PCI interrupt fixup
 
 > (so that you get a netbsd.gdb file), then crash the machine again and note
 > the
 >
 >    Stopped at      netbsd:wm_rxintr+0x232: movl %esi,0x10(%ebx)
 >
 > line (where +0x232 might differ). Then use gdb to lookup that code position:
 >
 > gdb netbsd.gdb
 > ...
 > > list *(wm_rxintr+0x232)
 
 0xc02e8fd6 is in wm_rxintr (/cvs/src/sys/dev/pci/if_wm.c:2231).
 2226                            continue;
 2227                    }
 2228
 2229                    WM_RXCHAIN_LINK(sc, m);
 2230
 2231                    m->m_len = len;
 2232
 2233                    DPRINTF(WM_DEBUG_RX,
 2234                        ("%s: RX: buffer at %p len %d\n",
 2235                        sc->sc_dev.dv_xname, m->m_data, len));
 
 Hope this helps...
 
 
 Artsi
 -- 
 #######======------  http://www.selonen.org/arto/  --------========########
 Everstinkuja 5 B 35                               Don't mind doing it.
 FIN-02600 Espoo        arto@selonen.org         Don't mind not doing it.
 Finland              tel +358 50 560 4826     Don't know anything about it.