Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2005 10:46:47 +0000
From:      Olafur Osvaldsson <oli@isnic.is>
To:        freebsd-hackers@freebsd.org
Subject:   Crash in bge_newbuf_std on 5.4 - need help with debugging
Message-ID:  <20050819104647.GD76542@isnic.is>

next in thread | raw e-mail | index | archive | help

--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,
Maybe someone more experienced than me could help me out with this...


(kgdb) bt
#0  doadump () at pcpu.h:159
#1  0xc060c5ef in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:4=
10
#2  0xc060c915 in panic (fmt=3D0xc07fd250 "%s") at /usr/src/sys/kern/kern_s=
hutdown.c:566
#3  0xc07b26d4 in trap_fatal (frame=3D0xe67d8bbc, eva=3D3217031168)
    at /usr/src/sys/i386/i386/trap.c:817
#4  0xc07b2417 in trap_pfault (frame=3D0xe67d8bbc, usermode=3D0, eva=3D3217=
031168)
    at /usr/src/sys/i386/i386/trap.c:735
#5  0xc07b2051 in trap (frame=3D
      {tf_fs =3D -1067384808, tf_es =3D -1018167280, tf_ds =3D -1064501232,=
 tf_edi =3D -1016803328, tf_esi =3D -426416128, tf_ebp =3D -427979700, tf_i=
sp =3D -427979800, tf_ebx =3D -1012528640, tf_edx =3D 0, tf_ecx =3D 2, tf_e=
ax =3D 0, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1065755687, tf_cs =3D=
 8, tf_eflags =3D 66118, tf_esp
=3D -1018649728, tf_ss =3D -1017978880}) at /usr/src/sys/i386/i386/trap.c:4=
25
#6  0xc079fdba in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#7  0xc0610018 in tdsigwakeup (td=3D0xc3a60a00, sig=3D0, action=3D0xc364d00=
0)
    at /usr/src/sys/kern/kern_sig.c:1972
#8  0xc04d5928 in bge_newbuf_std (sc=3D0xc364d000, i=3D192, m=3D0x0) at /us=
r/src/sys/dev/bge/if_bge.c:915
#9  0xc04d883c in bge_rxeof (sc=3D0xc364d000) at /usr/src/sys/dev/bge/if_bg=
e.c:2768
#10 0xc04d8c60 in bge_intr (xsc=3D0xc364d000) at /usr/src/sys/dev/bge/if_bg=
e.c:2975
#11 0xc05f8599 in ithread_loop (arg=3D0xc3480e00) at /usr/src/sys/kern/kern=
_intr.c:547
#12 0xc05f7635 in fork_exit (callout=3D0xc05f8440 <ithread_loop>, arg=3D0xc=
3480e00, frame=3D0xe67d8d48)
    at /usr/src/sys/kern/kern_fork.c:791
#13 0xc079fe1c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:=
209
(kgdb) up 8
#8  0xc04d5928 in bge_newbuf_std (sc=3D0xc364d000, i=3D192, m=3D0x0) at /us=
r/src/sys/dev/bge/if_bge.c:915
915             error =3D bus_dmamap_load(sc->bge_cdata.bge_mtag,
(kgdb) list
910                     m_adj(m_new, ETHER_ALIGN);
911             sc->bge_cdata.bge_rx_std_chain[i] =3D m_new;
912             r =3D &sc->bge_ldata.bge_rx_std_ring[i];
913             ctx.bge_maxsegs =3D 1;
914             ctx.sc =3D sc;
915             error =3D bus_dmamap_load(sc->bge_cdata.bge_mtag,
916                 sc->bge_cdata.bge_rx_std_dmamap[i], mtod(m_new, void *),
917                 m_new->m_len, bge_dma_map_addr, &ctx, BUS_DMA_NOWAIT);
918             if (error || ctx.bge_maxsegs =3D=3D 0) {
919                     if (m =3D=3D NULL)
(kgdb) print sc->bge_cdata.bge_mtag
$6 =3D 0xc3628700
(kgdb) print sc->bge_cdata.bge_rx_std_dmamap[i]
$7 =3D 0x0
(kgdb) print i
$8 =3D 192
(kgdb) print m_new
$9 =3D (struct mbuf *) 0xc3a60a00
(kgdb) print m_new->m_len
There is no member named m_len.
(kgdb) print bge_dma_map_addr
$10 =3D {void (void *, bus_dma_segment_t *, int, int)} 0xc04d5118 <bge_dma_=
map_addr>
(kgdb) print ctx
$11 =3D {sc =3D 0xc364d000, bge_busaddr =3D 3866987660, bge_flags =3D 53549=
, bge_idx =3D 131,
  bge_maxsegs =3D 1, bge_ring =3D 0xc3508180}


The things that strike me there is the lack of "m_new->m_len" and the NULL =
in the second
parameter...I don't know enaugh to say if either is OK.

Any ideas or suggestions on the next step?

/Oli

--=20
Olafur Osvaldsson
Systems Administrator
Internet a Islandi hf.
Tel:   +354 525-5291
Email: oli@isnic.is

--RnlQjJ0d97Da+TV1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFDBbiX8xNRBRknOFwRAiMzAJ9MVhqqzf19uwGKyNFu0ekui2dRwwCgiUHC
tqm+1qOqmRZKnNRcKaCW/Ks=
=XRmp
-----END PGP SIGNATURE-----

--RnlQjJ0d97Da+TV1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050819104647.GD76542>