Subject: Re: Is this kernel fault OK?
To: None <tech-kern@netbsd.org>
From: D'Arcy J.M. Cain <darcy@NetBSD.org>
List: tech-kern
Date: 07/09/2003 06:37:51
On Thursday 26 June 2003 12:39, D'Arcy J.M. Cain wrote:
> syslogd:unknown property name 'local0'
> kernel page fault trap code = 0
> stop at NetBSD:syn_cache_get+0x308:movl0(%edx),%ecx
> db>
I built a debugging kernel and now when it crashes I get this:
panic: kernel diagnostic assertion "ia != NULL" failed
"../../../../netinet/tcp_input.c", line 3150
Stopped at netbsd:breakpoint_0x4: movl %ebp,%esp
db>
I have built userland too so everything is in sync. The code in question is:
case AF_INET:
if (inp) {
struct in_ifaddr *ia;
inp->inp_laddr = ((struct sockaddr_in *)dst)->sin_addr;
inp->inp_lport = ((struct sockaddr_in *)dst)->sin_port;
inp->inp_options = ip_srcroute();
INADDR_TO_IA(inp->inp_laddr, ia);
KASSERT(ia != NULL);
KASSERT(inp->inp_ia == NULL);
inp->inp_ia = ia;
LIST_INSERT_HEAD(&ia->ia_inpcbs, inp, inp_ialink);
IFAREF(&ia->ia_ifa);
in_pcbstate(inp, INP_BOUND);
if (inp->inp_options == NULL) {
inp->inp_options = sc->sc_ipopts;
sc->sc_ipopts = NULL;
}
}
So, I want to add some more debugging lines to find out where the bad value is
coming from. Anyone have any ideas as to what I could print there? I'm kind
of over my head in this code.
--
D'Arcy J.M. Cain <darcy@netbsd.org>
http://www.NetBSD.org/