From owner-freebsd-hackers Wed Mar 31 12:18:27 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id 0627815CDA for ; Wed, 31 Mar 1999 12:18:26 -0800 (PST) (envelope-from julian@whistle.com) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with SMTP id MAA48472; Wed, 31 Mar 1999 12:12:12 -0800 (PST) Date: Wed, 31 Mar 1999 12:12:11 -0800 (PST) From: Julian Elischer To: Eugeny Kuzakov Cc: hackers@FreeBSD.ORG Subject: Re: latest 228-stable trap In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG print *head as well? (and the next item in that list if there is one.) (and the LAST item in that list (as it's trying to insert at thte tail)) julian On Wed, 31 Mar 1999, Eugeny Kuzakov wrote: > > Hi, All! > > There is trap... > > GDB is free software and you are welcome to distribute copies of it > under certain conditions; type "show copying" to see the conditions. > There is absolutely no warranty for GDB; type "show warranty" for details. > GDB 4.16 (i386-unknown-freebsd), > Copyright 1996 Free Software Foundation, Inc... > IdlePTD 26e000 > current pcb at 23a360 > panic: page fault > #0 boot (howto=256) at ../../kern/kern_shutdown.c:266 > 266 dumppcb.pcb_cr3 = rcr3(); > #0 boot (howto=256) at ../../kern/kern_shutdown.c:266 > #1 0xf01138e2 in panic (fmt=0xf01ebfef "page fault") > at ../../kern/kern_shutdown.c:400 > #2 0xf01ecbda in trap_fatal (frame=0xefbffe04) at ../../i386/i386/trap.c:772 > #3 0xf01ec69c in trap_pfault (frame=0xefbffe04, usermode=0) > at ../../i386/i386/trap.c:681 > #4 0xf01ec327 in trap (frame={tf_es = 16, tf_ds = 16, tf_edi = 0, > tf_esi = -225239040, tf_ebp = -272630196, tf_isp = -272630228, > tf_ebx = -224572928, tf_edx = 262144, tf_ecx = 17280, tf_eax = 0, > tf_trapno = 12, tf_err = 2, tf_eip = -267216308, tf_cs = 8, > tf_eflags = 66118, tf_esp = -225253888, tf_ss = -225253888}) > at ../../i386/i386/trap.c:324 > #5 0xf0129a4c in sonewconn1 (head=0xf2932000, connstatus=0) > at ../../kern/uipc_socket2.c:230 > #6 0xf01673b2 in tcp_input (m=0xf1a7c900, iphlen=20) > at ../../netinet/tcp_input.c:421 > #7 0xf0163c50 in ip_input (m=0xf1a7c900) at ../../netinet/ip_input.c:630 > #8 0xf0163cc8 in ipintr () at ../../netinet/ip_input.c:651 > #9 0xf01e4c59 in swi_net_next () > #10 0xf012acf7 in connect (p=0xf2b17200, uap=0xefbfff94, retval=0xefbfff84) > at ../../kern/uipc_syscalls.c:315 > #11 0xf01ece17 in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = 482606, > tf_esi = 483776, tf_ebp = -272643092, tf_isp = -272629788, > tf_ebx = 537749752, tf_edx = -272643616, tf_ecx = 13, tf_eax = 98, > tf_trapno = 22, tf_err = 7, tf_eip = 537560001, tf_cs = 31, > tf_eflags = 642, tf_esp = -272643564, tf_ss = 39}) > at ../../i386/i386/trap.c:920 > #12 0x200a83c1 in ?? () > #13 0x1a277 in ?? () > #14 0x1095 in ?? () > (kgdb) p *(struct socket*) 0xf2932000 > $2 = {so_type = 1, so_options = 6, so_linger = 0, so_state = 130, > so_pcb = 0xf2bc2080 "", so_proto = 0xf022e358, so_head = 0x0, so_incomp = { > tqh_first = 0x0, tqh_last = 0x0}, so_comp = {tqh_first = 0x0, > tqh_last = 0x0}, so_list = {tqe_next = 0x0, tqe_prev = 0xf27da51c}, > so_qlen = 0, so_incqlen = 0, so_qlimit = 3, so_timeo = 0, so_error = 0, > so_pgid = 0, so_oobmark = 0, so_rcv = {sb_cc = 13, sb_hiwat = 17280, > sb_mbcnt = 128, sb_mbmax = 138240, sb_lowat = 1, sb_mb = 0xf1a54d80, > sb_sel = {si_pid = 0, si_flags = 0}, sb_flags = 0, sb_timeo = 0}, > so_snd = {sb_cc = 0, sb_hiwat = 17280, sb_mbcnt = 0, sb_mbmax = 138240, > sb_lowat = 2048, sb_mb = 0x0, sb_sel = {si_pid = 0, si_flags = 0}, > sb_flags = 0, sb_timeo = 0}, so_tpcb = 0x0, so_upcall = 0, > so_upcallarg = 0x0, so_uid = 0} > (kgdb)q > > I am use ipfilter 3.2.9 compiled in kernel. > But problem is in inserting current entry `so_list' in `so' at > uipc_socket2.c:230: > TAILQ_INSERT_TAIL(&head->so_incomp, so, so_list); > > this is in queue.h:343 > > #define TAILQ_INSERT_TAIL(head, elm, field) do { \ > (elm)->field.tqe_next = NULL; \ > (elm)->field.tqe_prev = (head)->tqh_last; \ > *(head)->tqh_last = (elm); \ > (head)->tqh_last = &(elm)->field.tqe_next; \ > } while (0) > > Can anyone help me? > > -- > Best wishes, Eugeny Kuzakov > Laboratory 321 ( Omsk, Russia ) > kev@lab321.ru > ICQ#: 5885106 > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message