Send freebsd-current mailing list submissions to
freebsd-current@freebsd.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
freebsd-current-request@freebsd.org
You can reach the person managing the list at
freebsd-current-owner@freebsd.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."
Today's Topics:
1. panic: Duplicate free of item 0xffffff005c4a8600 from zone
0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
2. Re: kernel build error in cam_periph_mapmem (Harald Schmalzbauer)
3. Re: kernel build error in cam_periph_mapmem (Harald Schmalzbauer)
4. Re: kernel build error in cam_periph_mapmem (Harald Schmalzbauer)
5. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Robert Watson)
6. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Bruce M Simpson)
7. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Robert Watson)
8. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
9. kldunload if_sk -> LOR & panic (Bjoern A. Zeeb)
10. Re: About ISC-cron (M. Warner Losh)
11. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
12. Re: Call for PRs: nullfs (Jeremie Le Hen)
13. Re: Call for PRs: nullfs (Jeremie Le Hen)
14. fetch hangs, part 2 (Matt White)
15. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
16. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
17. Re: fetch hangs, part 2 (Andre Guibert de Bruet)
18. GEOM (DrVince)
19. Re: GEOM (Craig Rodrigues)
20. Excellent job on the firewire support! (Andrew Gallatin)
21. Re: tuning hints for PAE (Andre Guibert de Bruet)
22. Re: fetch hangs, part 2 (Matt White)
23. Re: fetch hangs, part 2 (Conrad J. Sabatier)
24. Overriding -Werror in buildworld/buildkernel (Conrad J. Sabatier)
25. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
26. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
27. Re: fetch hangs, part 2 (Matt White)
28. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Robert Watson)
29. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone0xffffff007fed4780(Mbuf) (Robert Watson)
30. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
31. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Robert Watson)
32. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
33. Re: kldunload if_sk -> LOR & panic (Brian Fundakowski Feldman)
34. Re: Excellent job on the firewire support! (Doug Rabson)
35. Re: Excellent job on the firewire support! (Doug Rabson)
36. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Willem Jan Withagen)
37. Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf) (Robert Watson)
----------------------------------------------------------------------
Message: 1
Date: Sun, 18 Jul 2004 15:59:02 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: panic: Duplicate free of item 0xffffff005c4a8600 from zone
0xffffff007fed4780(Mbuf)
To: "Robert Watson" <rwatson@freebsd.org>, <current@freebsd.org>
Message-ID: <0f4201c46ccf$61de5f90$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
Started running with debug.mpsafe=1.
Not shure if it has anything to do with it....
While running configure over NFS:
Slab at 0xffffff005c4a8fb8, freei 6 = 0.
panic: Duplicate free of item 0xffffff005c4a8600 from zone 0xffffff007fed4780(
Mb
uf)
cpuid = 1;
KDB: stack backtrace:
kdb_backtrace() at kdb_backtrace+0x34
panic() at panic+0x1d2
uma_dbg_free() at uma_dbg_free+0x112
uma_zfree_arg() at uma_zfree_arg+0x10a
mb_free_ext() at mb_free_ext+0x96
m_freem() at m_freem+0x28
tcp_reass() at tcp_reass+0x1bb
tcp_input() at tcp_input+0x2af9
ip_input() at ip_input+0x94c
netisr_processqueue() at netisr_processqueue+0x8c
swi_net() at swi_net+0xe8
ithread_loop() at ithread_loop+0x18d
fork_exit() at fork_exit+0xc9
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffffffb0bb5d00, rbp = 0 ---
KDB: enter: panic
[thread 100017]
Stopped at kdb_enter+0x2e: nop
Coredump available.... 61Mb compressed.
system contains a de card, which is correctly identified as GIANT-LOCKED. The
card is not connected. Next time I open up the box, I'll remove it.
system info available at:
http://withagen.dyndns.org/FreeBSD/cores/*.opteron
--WjW
------------------------------
Message: 2
Date: Sun, 18 Jul 2004 00:54:13 +0200
From: Harald Schmalzbauer <h@schmalzbauer.de>
Subject: Re: kernel build error in cam_periph_mapmem
To: Robert Watson <rwatson@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <200407180054.14920@harryhomeworkstation>
Content-Type: text/plain; charset="iso-8859-1"
Am Samstag, 17. Juli 2004 19:48 schrieb Robert Watson:
> On Fri, 16 Jul 2004, Harald Schmalzbauer wrote:
> > for several cvsups my kernel build fails with the following:
> >
> > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs
> > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> > -Wcast-qual
> > -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys
> > -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq
> > -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf
> > -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd
> > -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common
> > -finline-limit=8000 -mno-align-long-strings -mpreferred-stack-boundary=2
> > -ffreestanding -Werror /usr/src/sys/cam/cam_periph.c
> > /usr/src/sys/cam/cam_periph.c: In function `cam_periph_mapmem':
> > /usr/src/sys/cam/cam_periph.c:624: warning: implicit declaration of
> > function `_mtx_assert'
> > /usr/src/sys/cam/cam_periph.c:624: error: `MA_OWNED' undeclared (first
> > use in this function)
>
> It looks like your copy of cam_periph.c doesn't #include mutex.h, which is
> where MA_OWNED is defined. Revision 1.56, which is what I have checked
> out here, appears to include if. Could you confirm you have revision 1.56
> without any local modifications?
Yes, it's "cam_periph.c,v 1.56 2003/11/08 10:56:57 scottl"
I didn't any local modification!
I just removed my obj directory but that didn't help.
CVsup done half an hour ago.
Btw, can anybody exlain me what timezone the timestamp is from? Shouldn't it
be UTC (or at least include the TZ code)?
Thanks,
-Harry
>
> Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
> robert@fledge.watson.org Principal Research Scientist, McAfee Research
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040718/
71c6cd79/attachment-0001.bin
------------------------------
Message: 3
Date: Sun, 18 Jul 2004 01:11:54 +0200
From: Harald Schmalzbauer <h@schmalzbauer.de>
Subject: Re: kernel build error in cam_periph_mapmem
To: Robert Watson <rwatson@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <200407180111.55446@harryhomeworkstation>
Content-Type: text/plain; charset="iso-8859-1"
Am Sonntag, 18. Juli 2004 01:06 schrieb Robert Watson:
> On Sun, 18 Jul 2004, Harald Schmalzbauer wrote:
> > Yes, it's "cam_periph.c,v 1.56 2003/11/08 10:56:57 scottl" I didn't any
> > local modification! I just removed my obj directory but that didn't
> > help. CVsup done half an hour ago. Btw, can anybody exlain me what
> > timezone the timestamp is from? Shouldn't it be UTC (or at least include
> > the TZ code)?
>
> Can you check to see if your local copy contains an include of mutex.h?
> The above time stamp looks right, FYI.
Sorry, I forgot to mention, of course I checked for #include mutex.h and it's
in there.
-Harry
>
> Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
> robert@fledge.watson.org Principal Research Scientist, McAfee Research
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040718/
ac029712/attachment-0001.bin
------------------------------
Message: 4
Date: Sun, 18 Jul 2004 02:09:29 +0200
From: Harald Schmalzbauer <h@schmalzbauer.de>
Subject: Re: kernel build error in cam_periph_mapmem
To: Robert Watson <rwatson@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <200407180209.36199@harryhomeworkstation>
Content-Type: text/plain; charset="iso-8859-1"
Am Sonntag, 18. Juli 2004 01:06 schrieb Robert Watson:
> On Sun, 18 Jul 2004, Harald Schmalzbauer wrote:
> > Yes, it's "cam_periph.c,v 1.56 2003/11/08 10:56:57 scottl" I didn't any
> > local modification! I just removed my obj directory but that didn't
> > help. CVsup done half an hour ago. Btw, can anybody exlain me what
> > timezone the timestamp is from? Shouldn't it be UTC (or at least include
> > the TZ code)?
>
> Can you check to see if your local copy contains an include of mutex.h?
> The above time stamp looks right, FYI.
Ok, since nobody else seems to have this problem I started poking int the dark
and found the "error":
When I remove #options INVARIANTS from my kernel.config it doesn't stop at the
cam any more.
Now I have a pf show stopper but I'm sure this will be fixed soon.
Thanks,
-Harry
>
> Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
> robert@fledge.watson.org Principal Research Scientist, McAfee Research
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040718/
653b899b/attachment-0001.bin
------------------------------
Message: 5
Date: Sun, 18 Jul 2004 11:02:52 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: Willem Jan Withagen <wjw@withagen.nl>
Cc: current@freebsd.org
Message-ID:
<Pine.NEB.3.96L.1040718105655.37108Q-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sun, 18 Jul 2004, Willem Jan Withagen wrote:
> Started running with debug.mpsafe=1. Not shure if it has anything to do
> with it....
It might well do, but here are some things to try:
- See if you can reproduce this with your exact some configuration in a
few runs. If you can, then we should try some other configurations.
- Try it with debug.mpsafenet=0 and see if the problem "goes away" for a
few runs.
- Try compiling IPv6 out of your kernel -- this will turn on the inpcb
locking assertions, which are compiled out by default because IPv4 and
IPv6 share the same underlying pcb code and IPv6 does not yet lock that
correctly in CVS. I have patches that do quite a bit of that in
Perforce, and sent out an e-mail yesterday to the KAME folk to talk
about merging strategies.
- If this is a reproduceable problem, could you try disabling SACK and see
if it changes at all?
I'll do some review of the TCP reassembly and queue bits, it could well be
that we're missing some locking here. Nicely configured system, btw. :-)
BTW, I noticed that there are some bge0 warnings at the end of the dmesg
-- is that indicative of some other problem with the driver on the system,
and/or is bge0 used in your active configuration? Thanks for the nice
bundling of config information, btw -- it answered a number of my
questions up front quite nicely.
Thanks,
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
>
> While running configure over NFS:
>
> Slab at 0xffffff005c4a8fb8, freei 6 = 0.
> panic: Duplicate free of item 0xffffff005c4a8600 from zone 0xffffff007fed478
0(Mb
> uf)
>
> cpuid = 1;
> KDB: stack backtrace:
> kdb_backtrace() at kdb_backtrace+0x34
> panic() at panic+0x1d2
> uma_dbg_free() at uma_dbg_free+0x112
> uma_zfree_arg() at uma_zfree_arg+0x10a
> mb_free_ext() at mb_free_ext+0x96
> m_freem() at m_freem+0x28
> tcp_reass() at tcp_reass+0x1bb
> tcp_input() at tcp_input+0x2af9
> ip_input() at ip_input+0x94c
> netisr_processqueue() at netisr_processqueue+0x8c
> swi_net() at swi_net+0xe8
> ithread_loop() at ithread_loop+0x18d
> fork_exit() at fork_exit+0xc9
> fork_trampoline() at fork_trampoline+0xe
> --- trap 0, rip = 0, rsp = 0xffffffffb0bb5d00, rbp = 0 ---
> KDB: enter: panic
> [thread 100017]
> Stopped at kdb_enter+0x2e: nop
>
> Coredump available.... 61Mb compressed.
>
> system contains a de card, which is correctly identified as
> GIANT-LOCKED. The card is not connected. Next time I open up the box,
> I'll remove it.
>
> system info available at:
> http://withagen.dyndns.org/FreeBSD/cores/*.opteron
>
> --WjW
>
>
------------------------------
Message: 6
Date: Sun, 18 Jul 2004 16:08:44 +0100
From: Bruce M Simpson <bms@spc.org>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: Willem Jan Withagen <wjw@withagen.nl>
Cc: Robert Watson <rwatson@freebsd.org>
Message-ID: <20040718150844.GD87575@empiric.dek.spc.org>
Content-Type: text/plain; charset=us-ascii
On Sun, Jul 18, 2004 at 03:59:02PM +0200, Willem Jan Withagen wrote:
> Coredump available.... 61Mb compressed.
>
> system contains a de card, which is correctly identified as GIANT-LOCKED. Th
e
> card is not connected. Next time I open up the box, I'll remove it.
Well this is no big surprise.... de(4) isn't locked properly and probably
never will be.
BMS
------------------------------
Message: 7
Date: Sun, 18 Jul 2004 11:11:41 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: Bruce M Simpson <bms@spc.org>
Cc: current@freebsd.org
Message-ID:
<Pine.NEB.3.96L.1040718111004.37108S-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sun, 18 Jul 2004, Bruce M Simpson wrote:
> On Sun, Jul 18, 2004 at 03:59:02PM +0200, Willem Jan Withagen wrote:
> > Coredump available.... 61Mb compressed.
> >
> > system contains a de card, which is correctly identified as GIANT-LOCKED.
The
> > card is not connected. Next time I open up the box, I'll remove it.
>
> Well this is no big surprise.... de(4) isn't locked properly and
> probably never will be.
However, locking problems with if_de can't (or shouldn't) explain the
panic in question :-). We're probably looking either at a SACK problem,
or a TCP locking problem. I need to review the TCP callouts, delivery,
and reassembly code and make sure all is well. I also need to make sure
that I really did merge all the relevant bits of the netperf patch
relating to TCP -- there are some changes left, but I think they are
purely layout changes. If you want to give it a spin, given some
background in TCP, feel free :-).
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
Message: 8
Date: Sun, 18 Jul 2004 17:07:02 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: "Bruce M Simpson" <bms@spc.org>
Cc: Robert Watson <rwatson@freebsd.org>
Message-ID: <0f6a01c46cd8$e1fd5bf0$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
From: "Bruce M Simpson" <bms@spc.org>
> On Sun, Jul 18, 2004 at 03:59:02PM +0200, Willem Jan Withagen wrote:
> > Coredump available.... 61Mb compressed.
> >
> > system contains a de card, which is correctly identified as GIANT-LOCKED.
The
> > card is not connected. Next time I open up the box, I'll remove it.
>
> Well this is no big surprise.... de(4) isn't locked properly and probably
> never will be.
Are you meaning to say that that is the cause of the panic??
Even though it just sits there sucking power and taking a slot, but nothing
else??
--WjW
------------------------------
Message: 9
Date: Sun, 18 Jul 2004 15:11:22 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: kldunload if_sk -> LOR & panic
To: FreeBSD current mailing list <freebsd-current@freebsd.org>
Cc: FreeBSD amd64 mailing list <freebsd-amd64@freebsd.org>
Message-ID:
<Pine.BSF.4.53.0407181443330.43309@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi,
tried to unload if_sk for testing the newly built module with dwhite's
locking patch (will be loaded after reset now :( ).
resulted in this on my amd64:
--- cut ---
noc# kldunload if_sk
e1000phy0: detached
miibus0: detached
lock order reversal
1st 0xffffff0030ac7870 skc0 (network driver) @ sys/pci/if_sk.c:2604
2nd 0xffffff0000b91af0 radix node head (radix node head) @ sys/netinet/in_rmx
.c:391
Stack backtrace:
witness_checkorder() at witness_checkorder+0x4a6
_mtx_lock_flags() at _mtx_lock_flags+0x39
in_ifadown() at in_ifadown+0x5b
in_control() at in_control+0x81c
if_detach() at if_detach+0x50b
ether_ifdetach() at ether_ifdetach+0x25
sk_detach() at sk_detach+0x6d
(null)() at 0
null_method() at null_method
Fatal trap 9: general protection fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer = 0x8:0xffffffff802450c6
stack pointer = 0x10:0xffffffffa7c1c9b0
frame pointer = 0x10:0xffffffffa7c1c9d0
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 1897 (kldunload)
kernel: type 9 trap, code=0
Stopped at device_delete_child+0xa: decl %eax
db> where
device_delete_child() at device_delete_child+0xa
device_delete_child() at device_delete_child+0x20
sk_detach() at sk_detach+0x89
(null)() at 0
null_method() at null_method
--- cut ---
kernel is from Sat Jul 10 20:16:23 UTC 2004 thus before MOD_QUIESCE
etc.
--- cut ---
bz@noc:/usr/obj/u1/src/HEAD/src/sys/AMD64-20040710-01> nm kernel.debug | grep
ffffffff802450
ffffffff80245010 T device_add_child
ffffffff80245024 T device_add_child_ordered
ffffffff802450bc T device_delete_child
bz@noc:/usr/obj/u1/src/HEAD/src/sys/AMD64-20040710-01> addr2line -e kernel.deb
ug 0xffffffff802450c6
/u1/src/HEAD/src/sys/kern/subr_bus.c:1222
bz@noc:/usr/obj/u1/src/HEAD/src/sys/AMD64-20040710-01> head -n 1230 /u1/src/HE
AD/src/sys/kern/subr_bus.c | tail -18
int
device_delete_child(device_t dev, device_t child)
{
int error;
device_t grandchild;
PDEBUG(("%s from %s", DEVICENAME(child), DEVICENAME(dev)));
/* remove children first */
while ( (grandchild = TAILQ_FIRST(&child->children)) ) {
error = device_delete_child(child, grandchild);
if (error)
return (error);
}
if ((error = device_detach(child)) != 0)
return (error);
if (child->devclass)
--- cut ---
--
Greetings
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
------------------------------
Message: 10
Date: Sun, 18 Jul 2004 09:25:02 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: About ISC-cron
To: dan@langille.org
Cc: current@FreeBSD.ORG
Message-ID: <20040718.092502.11989808.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii
In message: <40F9110F.13794.15FF9E60@localhost>
"Dan Langille" <dan@langille.org> writes:
: On 17 Jul 2004 at 23:30, Xin LI wrote:
:
: > /* POLA will be respected :-) */
:
: One thing about /etc/crontab which has caught out many people: the
: last entry must have an ENTER at the end of the line or it will be
: ignored.
Actually, it must have a newline at the end of the line.
: FWIW, /etc/sysctl.conf has the same issue.
This one is a lot harder to fix, because shell will ignore the last
line.
Warner
------------------------------
Message: 11
Date: Sun, 18 Jul 2004 17:22:30 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: "Robert Watson" <rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <0f7001c46cdb$0b23cdf0$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
From: "Robert Watson" <rwatson@freebsd.org>
> On Sun, 18 Jul 2004, Willem Jan Withagen wrote:
>
> > Started running with debug.mpsafe=1. Not shure if it has anything to do
> > with it....
>
> It might well do, but here are some things to try:
>
> - See if you can reproduce this with your exact some configuration in a
> few runs. If you can, then we should try some other configurations.
Yup, just got almost the same one....
It took a little longer, but perhaps cause I did not untar the port I'm trying
to test on amd64.
Slab at 0xffffff006624ffa0, freei 29 = 0.
panic: Duplicate free of item 0xffffff006624fcb0 from zone 0xffffff007fed4180(
Fi
les)
cpuid = 1;
KDB: stack backtrace:
kdb_backtrace() at kdb_backtrace+0x34
panic() at panic+0x1d2
uma_dbg_free() at uma_dbg_free+0x112
uma_zfree_arg() at uma_zfree_arg+0x10a
ffree() at ffree+0x8e
fdrop_locked() at fdrop_locked+0xce
fdrop() at fdrop+0x32
getdirentries() at getdirentries+0x2fc
syscall() at syscall+0x2fa
Xfast_syscall() at Xfast_syscall+0xa8
--- syscall (196, FreeBSD ELF64, getdirentries), rip = 0x2006a2204, rsp = 0x7f
ff
ffffe758, rbp = 0x7fffffffe780 ---
KDB: enter: panic
[thread 100132]
Stopped at kdb_enter+0x2e: nop
I'll try one more time.
> - Try it with debug.mpsafenet=0 and see if the problem "goes away" for a
> few runs.
I'll disable mpsafenet for the then next 2 runs...
> - Try compiling IPv6 out of your kernel -- this will turn on the inpcb
> locking assertions, which are compiled out by default because IPv4 and
> IPv6 share the same underlying pcb code and IPv6 does not yet lock that
> correctly in CVS. I have patches that do quite a bit of that in
> Perforce, and sent out an e-mail yesterday to the KAME folk to talk
> about merging strategies.
>
> - If this is a reproduceable problem, could you try disabling SACK and see
> if it changes at all?
For future steps.
> I'll do some review of the TCP reassembly and queue bits, it could well be
> that we're missing some locking here. Nicely configured system, btw. :-)
I needed a "big" tax/profit reduction in my company....
Why not spend it on a nice toy.
> BTW, I noticed that there are some bge0 warnings at the end of the dmesg
> -- is that indicative of some other problem with the driver on the system,
> and/or is bge0 used in your active configuration? Thanks for the nice
> bundling of config information, btw -- it answered a number of my
> questions up front quite nicely.
Thanx, I think that is the simpelest way for me to keep this easy available.
I'm considering updating this info with a /usr/local/etc/rc.d script...
Just timestamp it, and autoremove things older than a few versions.
The bge0 device is the active one.... It plugs into a noname switch, and it
could be that line-negotiation is not fast enough to be ready for the bge0 to
timeout on handshaking to get the line-mode.
The watchdog reset gets things straightend out. Not it is a onboard Broadcom
BCM5705, which has perhaps some flaws (as was claimed some time ago???)
We're up again, but I'll remove the de0 card first.
To be continued,
--WjW
------------------------------
Message: 12
Date: Sun, 18 Jul 2004 16:08:56 +0200
From: Jeremie Le Hen <jeremie.le-hen@epita.fr>
Subject: Re: Call for PRs: nullfs
To: freebsd-current@freebsd.org
Message-ID: <20040718140856.GI9548@sitadelle.com>
Content-Type: text/plain; charset=us-ascii
This mail never reached my mailbox back the first time I sent it.
Second try.
----- Forwarded message from Jeremie Le Hen <jeremie.le-hen@epita.fr> -----
Subject: Re: Call for PRs: nullfs
From: Jeremie Le Hen <jeremie.le-hen@epita.fr>
To: Mark Linimon <linimon@lonesome.com>
Cc: freebsd-current@freebsd.org
> kern/51583 (confirmed still a problem in -STABLE, -CURRENT)
I tried the attached patch, and it's appear to be only a half-fix.
To test it, I made a small server which listens on a named Unix socket
and a client sending an hello message through it. Here are the results
on a 5-CURRENT (about 50 days ago) (`lower' means the program opens the
socket on the lower filesystem while `upper' means it is on the null
layer) :
Without patch With Dmitry
Sivachenko's patch
client(lower) / OK OK
server(lower)
client(upper) / Failed OK
server(lower)
client(lower) / Failed Failed
server(upper)
client(upper) / OK OK
server(upper)
I hope this can help. I tried to understand why it fails, but my
programming skills are not good enough.
Regards,
--
Jeremie LE HEN aka TtZ/TataZ jeremie.le-hen@epita.fr
ttz@epita.fr
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
------------------------------
Message: 13
Date: Fri, 16 Jul 2004 16:00:48 +0200
From: Jeremie Le Hen <jeremie.le-hen@epita.fr>
Subject: Re: Call for PRs: nullfs
To: Mark Linimon <linimon@lonesome.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040716140048.GF9548@sitadelle.com>
Content-Type: text/plain; charset=us-ascii
> kern/51583 (confirmed still a problem in -STABLE, -CURRENT)
I tried the attached patch, and it's appear to be only a half-fix.
To test it, I made a small server which listens on a named Unix socket
and a client sending an hello message through it. Here are the results
on a 5-CURRENT (about 50 days ago) (`lower' means the program opens the
socket on the lower filesystem while `upper' means it is on the null
layer) :
Without patch With Dmitry
Sivachenko's patch
client(lower) / OK OK
server(lower)
client(upper) / Failed OK
server(lower)
client(lower) / Failed Failed
server(upper)
client(upper) / OK OK
server(upper)
I hope this can help. I tried to understand why it fails, but my
programming skills are not good enough.
Regards,
--
Jeremie LE HEN aka TtZ/TataZ jeremie.le-hen@epita.fr
ttz@epita.fr
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
------------------------------
Message: 14
Date: Sun, 18 Jul 2004 10:16:54 -0700
From: Matt White <matt+list.sw.freebsd.current@publicly.neglect.us>
Subject: fetch hangs, part 2
To: freebsd-current@freebsd.org
Message-ID: <54364243CABEBD11E5088CB5@[192.168.1.3]>
Content-Type: text/plain; charset=us-ascii; format=flowed
I looked in the archives and saw that a couple of others also had this
problem. Fetch is getting distributions for ports and it'll just hang.
Killing the build and restarting it will usually cause it to advance. Did
any of you guys who saw this problem before come up with a solution?
-Matt
------------------------------
Message: 15
Date: Sun, 18 Jul 2004 19:09:27 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone0xffffff007fed4780(Mbuf)
To: "Willem Jan Withagen" <wjw@withagen.nl>, "Robert Watson"
<rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <0fe101c46ce9$fba26440$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
From: "Willem Jan Withagen" <wjw@withagen.nl>
To: "Robert Watson" <rwatson@freebsd.org>
> > On Sun, 18 Jul 2004, Willem Jan Withagen wrote:
> >
> > > Started running with debug.mpsafe=1. Not shure if it has anything to do
> > > with it....
> >
> > It might well do, but here are some things to try:
> >
> > - See if you can reproduce this with your exact some configuration in a
> > few runs. If you can, then we should try some other configurations.
>
> Yup, just got almost the same one....
> It took a little longer, but perhaps cause I did not untar the port I'm tryi
ng
> to test on amd64.
>
> Slab at 0xffffff006624ffa0, freei 29 = 0.
> panic: Duplicate free of item 0xffffff006624fcb0 from zone
0xffffff007fed4180(Fi
> les)
>
> cpuid = 1;
> KDB: stack backtrace:
> kdb_backtrace() at kdb_backtrace+0x34
> panic() at panic+0x1d2
> uma_dbg_free() at uma_dbg_free+0x112
> uma_zfree_arg() at uma_zfree_arg+0x10a
> ffree() at ffree+0x8e
> fdrop_locked() at fdrop_locked+0xce
> fdrop() at fdrop+0x32
> getdirentries() at getdirentries+0x2fc
> syscall() at syscall+0x2fa
> Xfast_syscall() at Xfast_syscall+0xa8
> --- syscall (196, FreeBSD ELF64, getdirentries), rip = 0x2006a2204, rsp =
0x7fff
> ffffe758, rbp = 0x7fffffffe780 ---
> KDB: enter: panic
> [thread 100132]
> Stopped at kdb_enter+0x2e: nop
>
> I'll try one more time.
Well not quite:
----
panic: process 47044(find):2 holds Giant but isn't blocked on a lock
cpuid = 1;
KDB: enter: panic
----
After which the console froze...
I'll try again.
--WjW
------------------------------
Message: 16
Date: Sun, 18 Jul 2004 19:25:01 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone0xffffff007fed4780(Mbuf)
To: "Willem Jan Withagen" <wjw@withagen.nl>, "Robert Watson"
<rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <0ff801c46cec$28681d10$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
----- Original Message -----
From: "Willem Jan Withagen" <wjw@withagen.nl>
To: "Willem Jan Withagen" <wjw@withagen.nl>; "Robert Watson"
<rwatson@freebsd.org>
Slab at 0xffffff005c79dfb8, freei 0 = 0.
panic: Duplicate free of item 0xffffff005c79d000 from zone
0xffffff007fed4780(Mbuf)
cpuid = 1;
KDB: stack backtrace:
kdb_backtrace() at kdb_backtrace+0x34
panic() at panic+0x1d2
uma_dbg_free() at uma_dbg_free+0x112
uma_zfree_arg() at uma_zfree_arg+0x10a
mb_free_ext() at mb_free_ext+0x96
sbcompress() at sbcompress+0x1b7
sbappendstream_locked() at sbappendstream_locked+0x63
tcp_reass() at tcp_reass+0x300
tcp_input() at tcp_input+0x2af9
ip_input() at ip_input+0x94c
netisr_processqueue() at netisr_processqueue+0x8c
swi_net() at swi_net+0xe8
ithread_loop() at ithread_loop+0x18d
fork_exit() at fork_exit+0xc9
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffffffb0bb5d00, rbp = 0 ---
KDB: enter: panic
[thread 100017]
Stopped at kdb_enter+0x2e: nop
------
Three stikes and out....
I'll disable mpsafe now....
NOTE: the de0 was already removed from the box....
--WjW
------------------------------
Message: 17
Date: Sun, 18 Jul 2004 13:38:34 -0400 (EDT)
From: Andre Guibert de Bruet <andy@siliconlandmark.com>
Subject: Re: fetch hangs, part 2
To: Matt White <matt+list.sw.freebsd.current@publicly.neglect.us>
Cc: freebsd-current@freebsd.org
Message-ID: <20040718132619.I24726@alpha.siliconlandmark.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Sun, 18 Jul 2004, Matt White wrote:
> I looked in the archives and saw that a couple of others also had this
> problem. Fetch is getting distributions for ports and it'll just hang.
> Killing the build and restarting it will usually cause it to advance. Did
> any of you guys who saw this problem before come up with a solution?
This report is void of anything that can give a clue as to what the
problem could be. What state is the process wedged in? What platform? What
NIC are you using? You're running CURRENT as of what date? Is it 100%
reproduceable on your system? If so, can you make a ktrace available? Does
wget hang in a similar fashion?
Regards,
Andy
> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/ >
------------------------------
Message: 18
Date: Sun, 18 Jul 2004 12:44:20 -0500
From: "DrVince" <drvince@anonymnet.net>
Subject: GEOM
To: "freebsd-current" <freebsd-current@freebsd.org>
Message-ID: <20040718174256.M94141@anonymnet.net>
Content-Type: text/plain; charset=iso-8859-1
Hi,
howcome, in recent build, I don't see GEOM create disks message at boot time
anymore?
example: GEOM: create disk ad0 dp=0xc1d00970
DrVince
DrVince@anonymnet.net
------------------------------
Message: 19
Date: Sun, 18 Jul 2004 13:50:59 -0400
From: Craig Rodrigues <rodrigc@crodrigues.org>
Subject: Re: GEOM
To: DrVince <drvince@anonymnet.net>
Cc: freebsd-current <freebsd-current@freebsd.org>
Message-ID: <20040718175059.GA1253@crodrigues.org>
Content-Type: text/plain; charset=us-ascii
On Sun, Jul 18, 2004 at 12:44:20PM -0500, DrVince wrote:
> Hi,
> howcome, in recent build, I don't see GEOM create disks message at boot time
> anymore?
>
> example: GEOM: create disk ad0 dp=0xc1d00970
See:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/geom/geom_disk.c.diff?r1=1.81&r
2=1.82
Revision 1.82 / (download) - annotate - [select for diffs], Fri Jan 23
10:56:16 2004 UTC (5 months, 3 weeks ago) by phk
Branch: MAIN
Changes since 1.81: +0 -6 lines
Diff to previous 1.81 (colored)
Remove no longer necessary debug printfs
--
Craig Rodrigues
http://crodrigues.org
rodrigc@crodrigues.org
------------------------------
Message: 20
Date: Sun, 18 Jul 2004 13:51:36 -0400 (EDT)
From: Andrew Gallatin <gallatin@cs.duke.edu>
Subject: Excellent job on the firewire support!
To: simokawa@freebsd.org
Cc: current@freebsd.org
Message-ID: <16634.47272.768935.436137@grasshopper.cs.duke.edu>
Content-Type: text/plain; charset=us-ascii
Hi,
I just wanted to say that I used FreeBSD's firewire and sbp-II support
for the first time this weekend. It seems to be fast (over 26MB/sec
writes, 34MB/sec reads to a LaCie 160GB drive), and robust. It works
well on non-i386 platforms -- I'm using it to back up an amd64, and to
serve as a root device for a FreeBSD/powerpc machine.
All in all, it totally exceeded my expectations. Thank you very much|
Drew
------------------------------
Message: 21
Date: Sun, 18 Jul 2004 14:17:16 -0400 (EDT)
From: Andre Guibert de Bruet <andy@siliconlandmark.com>
Subject: Re: tuning hints for PAE
To: Daniel Lang <dl@leo.org>
Cc: Scott Long <scottl@freebsd.org>
Message-ID: <20040718135510.R24726@alpha.siliconlandmark.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Thu, 15 Jul 2004, Daniel Lang wrote:
> My values are the following (with adjusted maxvnodes):
> [..]
> kern.maxvnodes: 64000
> vnodes 35 7K 7K 166 16,32,64,128,256
> kern.minvnodes: 52958
> vm.stats.vm.v_vnodein: 568488
> vm.stats.vm.v_vnodeout: 1
> vm.stats.vm.v_vnodepgsin: 1384470
> vm.stats.vm.v_vnodepgsout: 1
> vfs.numvnodes: 190867
> vfs.wantfreevnodes: 25
> vfs.freevnodes: 135112
> debug.sizeof.vnode: 264
> [..]
>
> So the actual consumed memory (7k ?) appears neglectible.
> However, kern.minvnodes has nearly reached the now upper limit,
> so maybe trimming maxvnodes to 64000 was maybe too small,
> and the saved space appears not worth the effort?
>
> I will bump it up a bit more...
>
> What about the 35 vnodes "In Use" (reported by kern.malloc) but
> vfs.numvnodes: 190867, I am not sure how to interpret these
> values....
>
> As far as I understand it, a vnode is a kernel data-structure
> referring to a file-like entity (file, directory, socket, pipe, etc).
> So there are obviously much more in use than 35. 190867 appears
> too much, for ~ 400 active processes. Even if there are many
> filedescriptors open by each process, it is probably much less than 500
> per process. But maybe if these include all cached vnodes, so
> all vnodes which have been in use in the past, it could fit.
>
> Sorry for being not too educated about this really basic
> UNIX concept. :-}
Daniel,
If you are running a lot of dynamically-linked programs, an fd is
allocated for every library that is imported. If you really want to find
out what's going on where as far as fds on your system, lsof(8) from ports
is your friend. Vnodes, are kernel-land structures that can reference any
file or directory. Your vnode use count is always going to be greater than
the number of open fds on your system. The two are somewhat related
because you're guaranteed to have a vnode allocated for every file that is
opened and for each process' current working directory (In the case of
multiple programs accessing the same file or directory, the kernel
increments the given vnode's reference count). The kernel keeps a vnode
cache in order to limit the number of expensive lookups that would
otherwise have to be performed while heavy I/O is under way.
The namei(9) and vnode(9) manpages contain a wealth of information on the
matter.
I hope this helps. :)
Regards,
Andy
> Andre Guibert de Bruet | Enterprise Software Consultant >
> Silicon Landmark, LLC. | http://siliconlandmark.com/ >
------------------------------
Message: 22
Date: Sun, 18 Jul 2004 11:37:57 -0700
From: Matt White <matt+list.sw.freebsd.current@publicly.neglect.us>
Subject: Re: fetch hangs, part 2
Cc: freebsd-current@freebsd.org
Message-ID: <603030034410753A40738823@[192.168.1.3]>
Content-Type: text/plain; charset=us-ascii; format=flowed
Sorry, I was referring to a previous post which described exactly the
problem I was having. I was more asking if those guys had figured out what
was going on. In fact, I think that's pretty clear from my message.
But as to your questions:
Not 100% reproducible, but happens enough that I can't leave a large fetch
going and expect it to be done when I get back. Haven't tried wget because
the previous posts indicated that they were unable to get it to work with
the ports system.
This is a 5.2.1 system cvsupped as of 7/17. Device is a RealTek 8139.
Processes wedge in sbwait. No ktrace right now because I need to head out,
but I should be able to get one this evening.
-Matt
--On Sunday, July 18, 2004 1:38 PM -0400 Andre Guibert de Bruet
<andy@siliconlandmark.com> wrote:
>
> On Sun, 18 Jul 2004, Matt White wrote:
>
>> I looked in the archives and saw that a couple of others also had this
>> problem. Fetch is getting distributions for ports and it'll just hang.
>> Killing the build and restarting it will usually cause it to advance.
>> Did any of you guys who saw this problem before come up with a solution?
>
> This report is void of anything that can give a clue as to what the
> problem could be. What state is the process wedged in? What platform?
> What NIC are you using? You're running CURRENT as of what date? Is it
> 100% reproduceable on your system? If so, can you make a ktrace
> available? Does wget hang in a similar fashion?
>
> Regards,
> Andy
>
>> Andre Guibert de Bruet | Enterprise Software Consultant >
>> Silicon Landmark, LLC. | http://siliconlandmark.com/ >
>
------------------------------
Message: 23
Date: Sun, 18 Jul 2004 13:48:56 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: Re: fetch hangs, part 2
To: Matt White <matt+list.sw.freebsd.current@publicly.neglect.us>
Cc: freebsd-current@freebsd.org
Message-ID: <XFMail.20040718134856.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii
On 18-Jul-2004 Matt White wrote:
> I looked in the archives and saw that a couple of others also had
> this
> problem. Fetch is getting distributions for ports and it'll just
> hang.
> Killing the build and restarting it will usually cause it to advance.
> Did
> any of you guys who saw this problem before come up with a solution?
I found that changing my buffer size settings made all the difference.
I had been using the following in /etc/sysctl.conf:
net.inet.tcp.recvspace=131072
net.inet.tcp.sendspace=65536
Changing them to:
net.inet.tcp.recvspace=65536
net.inet.tcp.sendspace=32768
Solved the problem.
--
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
------------------------------
Message: 24
Date: Sun, 18 Jul 2004 13:54:37 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: Overriding -Werror in buildworld/buildkernel
To: freebsd-current@freebsd.org
Message-ID: <XFMail.20040718135437.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii
OK, I understand the developers' desire to catch errors, but didn't we
at one time have a means of overriding the -Werror flag? I'm seeing a
lot of build failures lately due to warnings, not errors.
I thought adding WERROR=-Wno-error would do the trick, but it doesn't.
Any ideas?
--
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
------------------------------
Message: 25
Date: Sun, 18 Jul 2004 20:57:23 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone0xffffff007fed4780(Mbuf)
To: "Willem Jan Withagen" <wjw@withagen.nl>, "Robert Watson"
<rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <103e01c46cf9$0fdacab0$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
> Three stikes and out....
> I'll disable mpsafe now....
Does not seem to help....
Not shure if anything should be read in the fact that it is 3 times in [thread
100007].
--WjW
panic: Duplicate free of item 0xffffff00614fb800 from zone 0xffffff007fed
4780(Mbuf)
cpuid = 1;
KDB: stack backtrace:
kdb_backtrace() at kdb_backtrace+0x34
panic() at panic+0x1d2
uma_dbg_free() at uma_dbg_free+0x112
uma_zfree_arg() at uma_zfree_arg+0x10a
mb_free_ext() at mb_free_ext+0x96
m_freem() at m_freem+0x28
ether_demux() at ether_demux+0x341
ether_input() at ether_input+0x247
bge_rxeof() at bge_rxeof+0x36b
bge_intr() at bge_intr+0x15a
ithread_loop() at ithread_loop+0x18d
fork_exit() at fork_exit+0xc9
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffffffb0b7cd00, rbp = 0 ---
KDB: enter: panic
[thread 100007]
Stopped at kdb_enter+0x2e: nop
And:
Slab at 0xffffff00612d7fb8, freei 3 = 0.
panic: Duplicate free of item 0xffffff00612d7300 from zone
0xffffff007fed4780(Mbuf)
cpuid = 1;
KDB: stack backtrace:
kdb_backtrace() at kdb_backtrace+0x34
panic() at panic+0x1d2
uma_dbg_free() at uma_dbg_free+0x112
uma_zfree_arg() at uma_zfree_arg+0x10a
mb_free_ext() at mb_free_ext+0x96
m_freem() at m_freem+0x28
tcp_input() at tcp_input+0x2b24
ip_input() at ip_input+0x94c
netisr_processqueue() at netisr_processqueue+0x8c
swi_net() at swi_net+0xaf
ithread_loop() at ithread_loop+0x18d
fork_exit() at fork_exit+0xc9
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffffffb0bb5d00, rbp = 0 ---
KDB: enter: panic
[thread 100017]
Stopped at kdb_enter+0x2e: nop
And:
Slab at 0xffffff005926ffb8, freei 13 = 0.
panic: Duplicate free of item 0xffffff005926fd00 from zone 0xffffff007fed4780(
Mb
uf)
cpuid = 1;
KDB: stack backtrace:
kdb_backtrace() at kdb_backtrace+0x34
panic() at panic+0x1d2
uma_dbg_free() at uma_dbg_free+0x112
uma_zfree_arg() at uma_zfree_arg+0x10a
mb_free_ext() at mb_free_ext+0x96
m_freem() at m_freem+0x28
ether_demux() at ether_demux+0x341
ether_input() at ether_input+0x247
bge_rxeof() at bge_rxeof+0x36b
bge_intr() at bge_intr+0x15a
ithread_loop() at ithread_loop+0x18d
fork_exit() at fork_exit+0xc9
fork_trampoline() at fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffffffb0b7cd00, rbp = 0 ---
KDB: enter: panic
[thread 100007]
Stopped at kdb_enter+0x2e: nop
------------------------------
Message: 26
Date: Sun, 18 Jul 2004 20:58:58 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: "Robert Watson" <rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <104401c46cf9$480cee40$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
Starting on:
> - Try compiling IPv6 out of your kernel -- this will turn on the inpcb
> locking assertions, which are compiled out by default because IPv4 and
> IPv6 share the same underlying pcb code and IPv6 does not yet lock that
> correctly in CVS. I have patches that do quite a bit of that in
> Perforce, and sent out an e-mail yesterday to the KAME folk to talk
> about merging strategies.
>
> - If this is a reproduceable problem, could you try disabling SACK and see
> if it changes at all?
How do I disable SACK??
Probably there's a flag for, but which....
--WjW
------------------------------
Message: 27
Date: Sun, 18 Jul 2004 12:08:40 -0700
From: Matt White <matt+list.sw.freebsd.current@publicly.neglect.us>
Subject: Re: fetch hangs, part 2
To: freebsd-current@freebsd.org
Message-ID: <2EDF6D54F4853447EB6F9018@[192.168.1.3]>
Content-Type: text/plain; charset=us-ascii; format=flowed
Conrad:
Thanks, but it looks like those are the default settings, so I'm guessing
setting that's not going to help me. It's probably better to figure out
what's wrong here anyway so we can use whatever settings we want. If I
don't hear anything more, I'll try to get a ktrace tonight.
-Matt
--On Sunday, July 18, 2004 1:48 PM -0500 "Conrad J. Sabatier"
<conrads@cox.net> wrote:
>
> On 18-Jul-2004 Matt White wrote:
>> I looked in the archives and saw that a couple of others also had
>> this
>> problem. Fetch is getting distributions for ports and it'll just
>> hang.
>> Killing the build and restarting it will usually cause it to advance.
>> Did
>> any of you guys who saw this problem before come up with a solution?
>
> I found that changing my buffer size settings made all the difference.
> I had been using the following in /etc/sysctl.conf:
>
> net.inet.tcp.recvspace=131072
> net.inet.tcp.sendspace=65536
>
> Changing them to:
>
> net.inet.tcp.recvspace=65536
> net.inet.tcp.sendspace=32768
>
> Solved the problem.
>
> --
> Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
------------------------------
Message: 28
Date: Sun, 18 Jul 2004 15:13:20 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: Willem Jan Withagen <wjw@withagen.nl>
Cc: current@freebsd.org
Message-ID:
<Pine.NEB.3.96L.1040718151152.37108j-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sun, 18 Jul 2004, Willem Jan Withagen wrote:
> Starting on:
>
> > - Try compiling IPv6 out of your kernel -- this will turn on the inpcb
> > locking assertions, which are compiled out by default because IPv4 and
> > IPv6 share the same underlying pcb code and IPv6 does not yet lock that
> > correctly in CVS. I have patches that do quite a bit of that in
> > Perforce, and sent out an e-mail yesterday to the KAME folk to talk
> > about merging strategies.
> >
> > - If this is a reproduceable problem, could you try disabling SACK and see
> > if it changes at all?
>
> How do I disable SACK?? Probably there's a flag for, but which....
The sysctl net.inet.tcp.sack.enable enables (and disables) SACK. Given
some of the other versions of the trace you're reporting, it's seeming
less like it's SACK that's causing the problem, but it's definitely worth
trying. We could be looking at an issue with the bge driver -- I have
some bge cards and will see about sticking one into a machine here for
testing. Can you suggest a workload I can try that will reliably generate
the panic for you?
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
Message: 29
Date: Sun, 18 Jul 2004 15:15:18 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone0xffffff007fed4780(Mbuf)
To: Willem Jan Withagen <wjw@withagen.nl>
Cc: current@freebsd.org
Message-ID:
<Pine.NEB.3.96L.1040718151421.37108k-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sun, 18 Jul 2004, Willem Jan Withagen wrote:
> > Three stikes and out....
> > I'll disable mpsafe now....
>
> Does not seem to help.... Not shure if anything should be read in the
> fact that it is 3 times in [thread 100007].
Well, the threads involved seem to be the netisr thread and the bge
interrupt thread, suggesting we have a problem with mbufs being free'd
despite being handed off into the network stack. Up front, it suggests
maybe we have an issue with the bge driver freeing or reusing an mbuf
inappropriately, or perhaps it's at the TCP layer.
Thanks,
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
>
> --WjW
>
>
> panic: Duplicate free of item 0xffffff00614fb800 from zone 0xffffff007fed
> 4780(Mbuf)
>
> cpuid = 1;
> KDB: stack backtrace:
> kdb_backtrace() at kdb_backtrace+0x34
> panic() at panic+0x1d2
> uma_dbg_free() at uma_dbg_free+0x112
> uma_zfree_arg() at uma_zfree_arg+0x10a
> mb_free_ext() at mb_free_ext+0x96
> m_freem() at m_freem+0x28
> ether_demux() at ether_demux+0x341
> ether_input() at ether_input+0x247
> bge_rxeof() at bge_rxeof+0x36b
> bge_intr() at bge_intr+0x15a
> ithread_loop() at ithread_loop+0x18d
> fork_exit() at fork_exit+0xc9
> fork_trampoline() at fork_trampoline+0xe
> --- trap 0, rip = 0, rsp = 0xffffffffb0b7cd00, rbp = 0 ---
> KDB: enter: panic
> [thread 100007]
> Stopped at kdb_enter+0x2e: nop
>
> And:
>
> Slab at 0xffffff00612d7fb8, freei 3 = 0.
> panic: Duplicate free of item 0xffffff00612d7300 from zone
> 0xffffff007fed4780(Mbuf)
>
> cpuid = 1;
> KDB: stack backtrace:
> kdb_backtrace() at kdb_backtrace+0x34
> panic() at panic+0x1d2
> uma_dbg_free() at uma_dbg_free+0x112
> uma_zfree_arg() at uma_zfree_arg+0x10a
> mb_free_ext() at mb_free_ext+0x96
> m_freem() at m_freem+0x28
> tcp_input() at tcp_input+0x2b24
> ip_input() at ip_input+0x94c
> netisr_processqueue() at netisr_processqueue+0x8c
> swi_net() at swi_net+0xaf
> ithread_loop() at ithread_loop+0x18d
> fork_exit() at fork_exit+0xc9
> fork_trampoline() at fork_trampoline+0xe
> --- trap 0, rip = 0, rsp = 0xffffffffb0bb5d00, rbp = 0 ---
> KDB: enter: panic
> [thread 100017]
> Stopped at kdb_enter+0x2e: nop
>
> And:
> Slab at 0xffffff005926ffb8, freei 13 = 0.
> panic: Duplicate free of item 0xffffff005926fd00 from zone 0xffffff007fed478
0(Mb
> uf)
>
> cpuid = 1;
> KDB: stack backtrace:
> kdb_backtrace() at kdb_backtrace+0x34
> panic() at panic+0x1d2
> uma_dbg_free() at uma_dbg_free+0x112
> uma_zfree_arg() at uma_zfree_arg+0x10a
> mb_free_ext() at mb_free_ext+0x96
> m_freem() at m_freem+0x28
> ether_demux() at ether_demux+0x341
> ether_input() at ether_input+0x247
> bge_rxeof() at bge_rxeof+0x36b
> bge_intr() at bge_intr+0x15a
> ithread_loop() at ithread_loop+0x18d
> fork_exit() at fork_exit+0xc9
> fork_trampoline() at fork_trampoline+0xe
> --- trap 0, rip = 0, rsp = 0xffffffffb0b7cd00, rbp = 0 ---
> KDB: enter: panic
> [thread 100007]
> Stopped at kdb_enter+0x2e: nop
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>
------------------------------
Message: 30
Date: Sun, 18 Jul 2004 21:16:51 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: "Robert Watson" <rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <106d01c46cfb$c7d76630$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
From: "Robert Watson" <rwatson@freebsd.org>
> On Sun, 18 Jul 2004, Willem Jan Withagen wrote:
>
> > Starting on:
> >
> > > - Try compiling IPv6 out of your kernel -- this will turn on the inpcb
> > > locking assertions, which are compiled out by default because IPv4 and
> > > IPv6 share the same underlying pcb code and IPv6 does not yet lock tha
t
> > > correctly in CVS. I have patches that do quite a bit of that in
> > > Perforce, and sent out an e-mail yesterday to the KAME folk to talk
> > > about merging strategies.
> > >
> > > - If this is a reproduceable problem, could you try disabling SACK and s
ee
> > > if it changes at all?
> >
> > How do I disable SACK?? Probably there's a flag for, but which....
>
> The sysctl net.inet.tcp.sack.enable enables (and disables) SACK. Given
> some of the other versions of the trace you're reporting, it's seeming
> less like it's SACK that's causing the problem, but it's definitely worth
> trying. We could be looking at an issue with the bge driver -- I have
> some bge cards and will see about sticking one into a machine here for
> testing. Can you suggest a workload I can try that will reliably generate
> the panic for you?
Well I could also try this with the em0 interface, and see if the same
occurs....
What am I doing to get the panic:
In one shell I try to compile /usr/ports/net-mgmt/net-snmp. (Well actually the
one I'm working on to get the last tweak out of it when running amd64)
And that I keep repeating until it crashes, but unusally one run is enough.
In the console I run 'periodic daily', since my box currently always seems to
crash during the night when running daily.
In a third window I do some work: usually some vi-ing or grepping....
And you write:
> > Does not seem to help.... Not shure if anything should be read in the
> > fact that it is 3 times in [thread 100007].
>
> Well, the threads involved seem to be the netisr thread and the bge
> interrupt thread, suggesting we have a problem with mbufs being free'd
> despite being handed off into the network stack. Up front, it suggests
> maybe we have an issue with the bge driver freeing or reusing an mbuf
> inappropriately, or perhaps it's at the TCP layer.
Even more reason to do some (ab)using test with the em0 card???
--WjW
------------------------------
Message: 31
Date: Sun, 18 Jul 2004 15:26:07 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: Willem Jan Withagen <wjw@withagen.nl>
Cc: current@freebsd.org
Message-ID:
<Pine.NEB.3.96L.1040718152541.37108l-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sun, 18 Jul 2004, Willem Jan Withagen wrote:
> > Well, the threads involved seem to be the netisr thread and the bge
> > interrupt thread, suggesting we have a problem with mbufs being free'd
> > despite being handed off into the network stack. Up front, it suggests
> > maybe we have an issue with the bge driver freeing or reusing an mbuf
> > inappropriately, or perhaps it's at the TCP layer.
>
> Even more reason to do some (ab)using test with the em0 card???
Yeah, that would be very helpful if you could.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
Message: 32
Date: Sun, 18 Jul 2004 21:21:15 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone0xffffff007fed4780(Mbuf)
To: "Robert Watson" <rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <107101c46cfc$6513a080$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
> > > Three stikes and out....
> > > I'll disable mpsafe now....
> >
> > Does not seem to help.... Not shure if anything should be read in the
> > fact that it is 3 times in [thread 100007].
>
> Well, the threads involved seem to be the netisr thread and the bge
> interrupt thread, suggesting we have a problem with mbufs being free'd
> despite being handed off into the network stack. Up front, it suggests
> maybe we have an issue with the bge driver freeing or reusing an mbuf
> inappropriately, or perhaps it's at the TCP layer.
I have the core of the first mpsafe test still here.
It's 62 Mb, so that is not to bad, (currently my ADSL is giving 450 Kb/s
upstream) so I could make it available....)
Or I could do some digging, if you give me pointers.
--WjW
------------------------------
Message: 33
Date: Sun, 18 Jul 2004 15:35:13 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: kldunload if_sk -> LOR & panic
To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc: FreeBSD current mailing list <freebsd-current@freebsd.org>
Message-ID: <20040718193513.GV1626@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii
On Sun, Jul 18, 2004 at 03:11:22PM +0000, Bjoern A. Zeeb wrote:
> Hi,
>
> tried to unload if_sk for testing the newly built module with dwhite's
> locking patch (will be loaded after reset now :( ).
> resulted in this on my amd64:
>
> --- cut ---
> noc# kldunload if_sk
> e1000phy0: detached
> miibus0: detached
> lock order reversal
> 1st 0xffffff0030ac7870 skc0 (network driver) @ sys/pci/if_sk.c:2604
> 2nd 0xffffff0000b91af0 radix node head (radix node head) @ sys/netinet/in_r
mx.c:391
> Stack backtrace:
> witness_checkorder() at witness_checkorder+0x4a6
> _mtx_lock_flags() at _mtx_lock_flags+0x39
> in_ifadown() at in_ifadown+0x5b
> in_control() at in_control+0x81c
> if_detach() at if_detach+0x50b
> ether_ifdetach() at ether_ifdetach+0x25
> sk_detach() at sk_detach+0x6d
> (null)() at 0
> null_method() at null_method
At the point where it's actually detaching, once it's detached the methods
that access its softc, it should drop its softc lock before calling the
network-level detach routines.
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green@FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
------------------------------
Message: 34
Date: Sun, 18 Jul 2004 20:39:10 +0100
From: Doug Rabson <dfr@nlsystems.com>
Subject: Re: Excellent job on the firewire support!
To: freebsd-current@freebsd.org
Cc: simokawa@freebsd.org
Message-ID: <200407182039.10773.dfr@nlsystems.com>
Content-Type: text/plain; charset="iso-8859-1"
On Sunday 18 July 2004 18:51, Andrew Gallatin wrote:
> Hi,
>
> I just wanted to say that I used FreeBSD's firewire and sbp-II
> support for the first time this weekend. It seems to be fast (over
> 26MB/sec writes, 34MB/sec reads to a LaCie 160GB drive), and robust.
> It works well on non-i386 platforms -- I'm using it to back up an
> amd64, and to serve as a root device for a FreeBSD/powerpc machine.
>
> All in all, it totally exceeded my expectations. Thank you very
> much|
Wait till you try debugging using gdb over firewire with dcons. An all
round positive experience :-)
------------------------------
Message: 35
Date: Sun, 18 Jul 2004 20:39:10 +0100
From: Doug Rabson <dfr@nlsystems.com>
Subject: Re: Excellent job on the firewire support!
To: freebsd-current@freebsd.org
Cc: simokawa@freebsd.org
Message-ID: <200407182039.10773.dfr@nlsystems.com>
Content-Type: text/plain; charset="iso-8859-1"
On Sunday 18 July 2004 18:51, Andrew Gallatin wrote:
> Hi,
>
> I just wanted to say that I used FreeBSD's firewire and sbp-II
> support for the first time this weekend. It seems to be fast (over
> 26MB/sec writes, 34MB/sec reads to a LaCie 160GB drive), and robust.
> It works well on non-i386 platforms -- I'm using it to back up an
> amd64, and to serve as a root device for a FreeBSD/powerpc machine.
>
> All in all, it totally exceeded my expectations. Thank you very
> much|
Wait till you try debugging using gdb over firewire with dcons. An all
round positive experience :-)
------------------------------
Message: 36
Date: Sun, 18 Jul 2004 21:39:00 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: "Robert Watson" <rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <108901c46cfe$e02ec130$471b3dd4@digiware.nl>
Content-Type: text/plain; charset="iso-8859-1"
From: "Robert Watson" <rwatson@freebsd.org>
> On Sun, 18 Jul 2004, Willem Jan Withagen wrote:
>
> > > Well, the threads involved seem to be the netisr thread and the bge
> > > interrupt thread, suggesting we have a problem with mbufs being free'd
> > > despite being handed off into the network stack. Up front, it suggests
> > > maybe we have an issue with the bge driver freeing or reusing an mbuf
> > > inappropriately, or perhaps it's at the TCP layer.
> >
> > Even more reason to do some (ab)using test with the em0 card???
>
> Yeah, that would be very helpful if you could.
Well uptill now it was less than 30 minutes to get a crash....
No counting the ones where it directly crashed whilest booting.
So we could get to > 20 crashes/sunday :)
I now got a kernel with no IPv6. First abuse that with bge0.
But if it is what you think it is, it'll make no difference.
Note that I can get annottated traces with param-values and line numbers
if I coredump the panics. But dumping core and saving it, takes almost just as
long as causing one.
--WjW
------------------------------
Message: 37
Date: Sun, 18 Jul 2004 15:52:26 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: panic: Duplicate free of item 0xffffff005c4a8600 from
zone 0xffffff007fed4780(Mbuf)
To: Willem Jan Withagen <wjw@withagen.nl>
Cc: current@freebsd.org
Message-ID:
<Pine.NEB.3.96L.1040718155120.37108m-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Sun, 18 Jul 2004, Willem Jan Withagen wrote:
> > > Even more reason to do some (ab)using test with the em0 card???
> >
> > Yeah, that would be very helpful if you could.
>
> Well uptill now it was less than 30 minutes to get a crash.... No
> counting the ones where it directly crashed whilest booting.
>
> So we could get to > 20 crashes/sunday :)
Now there's a productivity boost :-).
> I now got a kernel with no IPv6. First abuse that with bge0. But if it
> is what you think it is, it'll make no difference.
Yeah, we'll see -- do you have much IPv6 activity on your network?
> Note that I can get annottated traces with param-values and line numbers
> if I coredump the panics. But dumping core and saving it, takes almost
> just as long as causing one.
I should probably go read the if_bge code in some more detail, and the TCP
code. With IPv6 disabled, we should be able to use stronger inpcb
assertions in TCP, which may help diagnose locking problems.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
End of freebsd-current Digest, Vol 68, Issue 42
***********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[37m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m