Date: Tue, 19 Dec 1995 16:45:43 PST From: faried nawaz <nawaz921@cs.uidaho.edu> To: "Marc G. Fournier" <scrappy@hub.org> Cc: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= <ache@astral.msk.su>, current@freebsd.org Subject: Re: panic: m_copydata Message-ID: <199512200045.QAA28519@waldrog.cs.uidaho.edu> In-Reply-To: Your message of "Tue, 19 Dec 1995 16:27:23 PST." <Pine.BSF.3.91.951219160813.2068F-100000@hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
"Marc G. Fournier" wrote...
Okay...I got a response to this for more information, and what was asked
for was:
" Could you type `panic' in DDB next time you get this error to create a
dump, and then print the contents of the `*tp' structure in the tcp_output
()
routine, and the contents of `*ti' in one frame up, in tcp_input(). "
from the last core dump i had,
; gdb -k -q
(kgdb) symbol-file kernel.debug
Reading symbols from kernel.debug...done.
(kgdb) exec-file /var/crash/kernel.19
(kgdb) core-file /var/crash/vmcore.19
IdlePTD 1a2000
current pcb at 1937fc
panic: m_copydata
##0 boot (howto=256) at ../../i386/i386/machdep.c:913
913 dumppcb.pcb_ptd = rcr3();
(kgdb) where
##0 boot (howto=256) at ../../i386/i386/machdep.c:913
##1 0xf010fbc3 in panic (fmt=0xf0118724 "m_copydata")
at ../../kern/subr_prf.c:124
##2 0xf0118751 in m_copydata (m=0x0, off=-1, len=1, cp=0xf0790868 "")
at ../../kern/uipc_mbuf.c:371
##3 0xf013b9b5 in tcp_output (tp=0xf07c3f00) at ../../netinet/tcp_output.c:476
##4 0xf013ac4a in tcp_input (m=0xf079d600, iphlen=20)
at ../../netinet/tcp_input.c:1629
##5 0xf0135b69 in ipintr () at ../../netinet/ip_input.c:464
##6 0xf0159ffd in swi_net_next ()
##7 0xf015f0d8 in cpu_switch ()
(kgdb) up
##1 0xf010fbc3 in panic (fmt=0xf0118724 "m_copydata")
at ../../kern/subr_prf.c:124
u124 boot(bootopt);
(kgdb) up
##2 0xf0118751 in m_copydata (m=0x0, off=-1, len=1, cp=0xf0790868 "")
at ../../kern/uipc_mbuf.c:371
371 panic("m_copydata");
(kgdb) up
##3 0xf013b9b5 in tcp_output (tp=0xf07c3f00) at ../../netinet/tcp_output.c:476
476 m_copydata(so->so_snd.sb_mb, off, (int) len,
(kgdb) print tp
$1 = (struct tcpcb *) 0xf07c3f00
(kgdb) print *tp
$2 = {seg_next = 0xf079d62c, seg_prev = 0xf079d62c, t_state = 4, t_timer = {0,
0, 14400, 0}, t_rxtshift = 0, t_rxtcur = 128, t_dupacks = 0,
t_maxseg = 492, t_maxopd = 512, t_force = 0, t_flags = 25057,
t_template = 0xf07a1794, t_inpcb = 0xf079d500, snd_una = 376136494,
snd_nxt = 376136493, snd_up = 376136493, snd_wl1 = 2939487243,
snd_wl2 = 376136494, iss = 376136493, snd_wnd = 16728, rcv_wnd = 16728,
rcv_nxt = 2939487234, rcv_up = 2939487234, irs = 2939487233,
rcv_adv = 2939503962, snd_max = 376136494, snd_cwnd = 492,
snd_ssthresh = 984, t_idle = 0, t_rtt = 0, t_rtseq = 376136493,
t_srtt = 488, t_rttvar = 122, t_rttmin = 2, max_sndwnd = 16728,
t_oobflags = 0 '\000', t_iobc = 0 '\000', t_softerror = 0,
snd_scale = 0 '\000', rcv_scale = 0 '\000', request_r_scale = 0 '\000',
requested_s_scale = 0 '\000', ts_recent = 2228926, ts_recent_age = 3908,
last_ack_sent = 2939487234, cc_send = 56, cc_recv = 31598, t_duration = 58,
t_tuba_pcb = 0x0, t_rttupdated = 1}
(kgdb) print t_inpcb
No symbol "t_inpcb" in current context.
(kgdb) print tp->t_inpcb
$3 = (struct inpcb *) 0xf079d500
(kgdb) print *tp->t_inpcb
$4 = {inp_list = {le_next = 0xf0784d00, le_prev = 0xf01a04dc}, inp_hash = {
le_next = 0x0, le_prev = 0xf06a5e60}, inp_pcbinfo = 0xf01a0338,
inp_faddr = {s_addr = 1912703949}, inp_fport = 38150, inp_laddr = {
s_addr = 1836213633}, inp_lport = 28928, inp_socket = 0xf082c100,
inp_ppcb = 0xf07c3f00 ",Öyð,Öyð\004", inp_route = {ro_rt = 0xf082c900,
ro_dst = {sa_len = 16 '\020', sa_family = 2 '\002',
sa_data = "\000\000Í\213\001r\000\000\000\000\000\000\000"}},
inp_flags = 0, inp_ip = {ip_hl = 0 '\000', ip_v = 0 '\000',
ip_tos = 0 '\000', ip_len = 0, ip_id = 0, ip_off = 0, ip_ttl = 64 '@',
ip_p = 0 '\000', ip_sum = 0, ip_src = {s_addr = 0}, ip_dst = {
(kgdb) print *tp->t_template
$5 = {ti_i = {ih_next = 0x0, ih_prev = 0x0, ih_x1 = 0 '\000',
ih_pr = 6 '\006', ih_len = 5120, ih_src = {s_addr = 1836213633}, ih_dst = {
s_addr = 1912703949}}, ti_t = {th_sport = 28928, th_dport = 38150,
th_seq = 0, th_ack = 0, th_x2 = 0 '\000', th_off = 5 '\005',
th_flags = 0 '\000', th_win = 0, th_sum = 0, th_urp = 0}}
(kgdb) up
##4 0xf013ac4a in tcp_input (m=0xf079d600, iphlen=20)
at ../../netinet/tcp_input.c:1629
1629 (void) tcp_output(tp);
(kgdb) print ti
$6 = (struct tcpiphdr *) 0xf079d62c
(kgdb) print *ti
$7 = {ti_i = {ih_next = 0xf07c3f00 ",Öyð,Öyð\004",
ih_prev = 0xf07c3f00 ",Öyð,Öyð\004", ih_x1 = 0 '\000', ih_pr = 6 '\006',
ih_len = 0, ih_src = {s_addr = 1912703949}, ih_dst = {
s_addr = 1836213633}}, ti_t = {th_sport = 54784, th_dport = 61561,
th_seq = 2939487243, th_ack = 376136494, th_x2 = 0 '\000',
th_off = 10 '\n', th_flags = 17 '\021', th_win = 16728, th_sum = 0,
th_urp = 0}}
(kgdb)
faried
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512200045.QAA28519>
