Subject: Re: crash in tcp_input() on 4.0_BETA2
To: Jeff Rizzo <riz@tastylime.net>
From: Bill Stouder-Studenmund <wrstuden@netbsd.org>
List: tech-net
Date: 03/15/2007 11:12:05
--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 15, 2007 at 09:56:12AM -0700, Jeff Rizzo wrote:
> I'm not sure I have enough info to effectively send-pr, but here's the
> traceback I got in a 4.0_BETA2 i386 system with 4G RAM and 2 wm(4)
> interfaces, one of which has an mtu of 9000:

I saw this at Wasabi at a customer that was using multiple Gig NICs.

I _thought_ (but never verified) that the spl wrapping around pool_put=20
that Thor talked about would have fixed this.

In my testing, I found that the two mbufs, the one that has the data you=20
want to append and the one into which you want to append, have addresses=20
that differ by 4 bytes. Ick! It could also be a wm driver IPL issue.

Take care,

Bill

> kernel: supervisor trap page fault, code=3D0
> Stopped at      netbsd:memcpy+0x15:     repe movsl      (%esi),%es:(%edi)
> db{0}> bt
> memcpy(c53864d8,c5f0bc00,c5f1de00,14,fbc) at netbsd:memcpy+0x15
> sbappendstream(c53864d8,c5f0bc00,cf305822,14,20) at
> netbsd:sbappendstream+0x2f
> tcp_input(c5f0bc00,14,6,1,c09b9834) at netbsd:tcp_input+0x2f34
> ip_input(c5f0bc00,c0100e0d,cf542f50,c051adc2,0) at netbsd:ip_input+0x657
> ipintr(cf540010,c0910030,c0910010,10,cf540000) at netbsd:ipintr+0x24
> DDB lost frame for netbsd:Xsoftnet+0x49, trying 0xcf542f58
> Xsoftnet() at netbsd:Xsoftnet+0x49
> --- interrupt ---
> Bad frame pointer: 0xc09d98a0
> 0x246:
> db{0}>
>=20
> unfortunately, this is a production system, so I can't leave it down.  I
> also don't have enough swap to get a crash dump.  :(  But if there's
> anything else anyone would like to know...  (I _do_ have the netbsd.gdb
> available from this kernel, if it helps)
>=20
> +j

--vkogqOf2sHV7VnPd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFF+ZqFWz+3JHUci9cRAuC2AJ4tGVN7Y3eEPdCUSkYsZRVIoU9zcwCcDsfa
YUi3M5tUt1+OUc31glnRztI=
=I/0f
-----END PGP SIGNATURE-----

--vkogqOf2sHV7VnPd--