NetBSD Problem Report #30048
From martti.kuparinen@nissenrinne.fi Sun Apr 24 11:50:08 2005
Return-Path: <martti.kuparinen@nissenrinne.fi>
Received: from nissenrinne.fi (guru209.netsonic.fi [194.29.193.209])
by narn.netbsd.org (Postfix) with ESMTP id 6C1A363B117
for <gnats-bugs@gnats.NetBSD.org>; Sun, 24 Apr 2005 11:50:07 +0000 (UTC)
Message-Id: <20050424115001.2C8FE1B0BE5@nissenrinne.fi>
Date: Sun, 24 Apr 2005 14:50:01 +0300 (EEST)
From: martti.kuparinen@iki.fi
Reply-To: martti.kuparinen@iki.fi
To: gnats-bugs@netbsd.org
Subject: Kernel panic with 3.0_BETA "m_copym: m == 0, len %d [!COPYALL]"
X-Send-Pr-Version: 3.95
>Number: 30048
>Category: kern
>Synopsis: Kernel panic with 3.0_BETA "m_copym: m == 0, len %d [!COPYALL]"
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 24 11:51:00 +0000 2005
>Closed-Date: Sun Sep 11 13:56:20 +0000 2005
>Last-Modified: Sun Sep 11 13:56:20 +0000 2005
>Originator: Martti Kuparinen
>Release: NetBSD 3.0_BETA
>Organization:
>Environment:
System: NetBSD www.nissenrinne.fi 3.0_BETA NetBSD 3.0_BETA (WWW) #0: Sat Apr 23 13:34:34 EEST 2005 root@www.nissenrinne.fi:/usr/src/sys/arch/i386/compile/WWW i386
Architecture: i386
Machine: i386
>Description:
Our server is crashing several times per week. Here's the latest crash:
ROOT www:/usr/src/sys/arch/i386/compile/WWW> gdb netbsd
...
(gdb) target kcore /var/crash/netbsd.1.core
panic: m_copym: m == 0, len %d [!COPYALL]
#0 0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0xc09a6000 in ?? ()
#2 0xc0444f29 in cpu_reboot ()
#3 0xc03b3a1c in panic ()
#4 0xc044f865 in trap ()
#5 0xc0102f13 in calltrap ()
#6 0xc03d1de5 in getnewbuf ()
#7 0xc03d191a in getblk ()
#8 0xc035f907 in ufs_bmaparray ()
#9 0xc035f557 in ufs_bmap ()
#10 0xc03e1038 in VOP_BMAP ()
#11 0xc03e43d5 in genfs_gop_write ()
#12 0xc03e3eb0 in genfs_putpages ()
#13 0xc03e13ac in VOP_PUTPAGES ()
#14 0xc034a314 in ffs_full_fsync ()
#15 0xc0349d94 in ffs_fsync ()
#16 0xc03e0d18 in VOP_FSYNC ()
#17 0xc03484ac in ffs_sync ()
#18 0xc03d9db2 in sys_sync ()
#19 0xc03d8184 in vfs_shutdown ()
#20 0xc0444f3d in cpu_reboot ()
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Martti Kuparinen <martti.kuparinen@iki.fi>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org
Subject: Re: kern/30048: Kernel panic with 3.0_BETA
Date: Sun, 24 Apr 2005 15:02:46 +0300
I forgot to say that we are using softdeps if that makes any
difference...
#
# device dir type opts dump dump-order
#
/dev/ld0a / ffs rw,softdep 1 1
/dev/ld0b none swap sw 0 0
/dev/ld0e /home ffs rw,softdep 1 2
/dev/ld0f /mail ffs rw,softdep 1 2
/dev/ld0g /proxy ffs rw,softdep 1 2
/dev/ld0h /data ffs rw,softdep 1 2
kernfs /kern kernfs rw 0 0
procfs /proc procfs rw 0 0
swap /tmp mfs rw,-s=512m 0 0
From: Martin Husemann <martin@duskware.de>
To: martti.kuparinen@iki.fi
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/30048: Kernel panic with 3.0_BETA
Date: Sun, 24 Apr 2005 16:29:23 +0200
On Sun, Apr 24, 2005 at 11:51:00AM +0000, martti.kuparinen@iki.fi wrote:
> panic: m_copym: m == 0, len %d [!COPYALL]
Can you give us the actual panic message (which has %d expanded) and
tell us more about your networking environment?
Martin
From: Martti Kuparinen <martti.kuparinen@iki.fi>
To: Martin Husemann <martin@duskware.de>
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/30048: Kernel panic with 3.0_BETA
Date: Sun, 24 Apr 2005 19:50:59 +0300
> Can you give us the actual panic message (which has %d expanded) and
I don't have that information available as the server is in our
electricity room and I just noticed that the system had booted itself.
> tell us more about your networking environment?
What do you want to know? We have two interfaces, wm0 and fxp0. ipf is
performing filtering and ipnat is doing only ftp proxy (the internal
network, wm0, has public addresses so no NAT is involved here). Here's
an overview of the network (in Finnish but look at the picture):
http://www.nissenrinne.fi/admin/verkko.php
ROOT www:~> cat /etc/ipnat.conf
# Outgoing FTP
map fxp0 194.29.193.209/32 -> 194.29.193.209/32 proxy port ftp ftp/tcp
map fxp0 81.17.204.64/26 -> 194.29.193.209/32 proxy port ftp ftp/tcp
Our kernel is almost GENERIC:
www:/usr/src/sys/arch/i386/conf> diff -u GENERIC WWW
--- GENERIC 2005-04-20 20:45:15.000000000 +0300
+++ WWW 2005-04-23 13:24:49.000000000 +0300
@@ -113,7 +113,7 @@
options DDB_HISTORY_SIZE=512 # enable history editing in DDB
#options KGDB # remote debugger
#options KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
-#makeoptions DEBUG="-g" # compile full symbol table
+makeoptions DEBUG="-g" # compile full symbol table
# Compatibility options
options COMPAT_NOMID # NetBSD 0.8, 386BSD, and BSDI
@@ -175,8 +175,8 @@
#options GATEWAY # packet forwarding
options INET # IP + ICMP + TCP + UDP
options INET6 # IPV6
-#options IPSEC # IP security
-#options IPSEC_ESP # IP security (encryption part; define
w/IPSEC)
+options IPSEC # IP security
+options IPSEC_ESP # IP security (encryption part; define
w/IPSEC)
#options IPSEC_DEBUG # debug for IP security
#options MROUTING # IP multicast routing
#options PIM # Protocol Independent Multicast
@@ -307,19 +307,19 @@
# (acpi at mainbus must also be enabled)
#options MPACPI_SCANPCI # find PCI roots using MPACPI
-#acpi0 at mainbus0
+acpi0 at mainbus0
#options ACPI_PCI_FIXUP # PCI interrupt routing via ACPI
#options ACPI_ACTIVATE_DEV # If set, activate inactive devices
#options ACPICA_PEDANTIC # force strict conformance to
the Spec.
#options ACPI_DISABLE_ON_POWEROFF # disable acpi on power off
# ACPI devices
-#acpiacad* at acpi? # ACPI AC Adapter
+acpiacad* at acpi? # ACPI AC Adapter
#acpibat* at acpi? # ACPI Battery
-#acpibut* at acpi? # ACPI Button
-#acpiec* at acpi? # ACPI Embedded Controller
+acpibut* at acpi? # ACPI Button
+acpiec* at acpi? # ACPI Embedded Controller
#acpilid* at acpi? # ACPI Lid Switch
-#acpitz* at acpi? # ACPI Thermal Zone
+acpitz* at acpi? # ACPI Thermal Zone
# Mainboard devices
#com* at acpi? # Serial communications interface
@@ -1257,3 +1257,6 @@
pseudo-device wsmux # mouse & keyboard multiplexor
pseudo-device wsfont
pseudo-device ksyms # /dev/ksyms
+
+# Local settings
+options NMBCLUSTERS=16384 # max mbuf clusters
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org
Subject: Re: kern/30048: Kernel panic with 3.0_BETA
Date: Mon, 25 Apr 2005 22:04:28 +0200
On Sun, Apr 24, 2005 at 04:52:01PM +0000, Martti Kuparinen wrote:
> The following reply was made to PR kern/30048; it has been noted by GNATS.
>
> From: Martti Kuparinen <martti.kuparinen@iki.fi>
> To: Martin Husemann <martin@duskware.de>
> Cc: gnats-bugs@NetBSD.org
> Subject: Re: kern/30048: Kernel panic with 3.0_BETA
> Date: Sun, 24 Apr 2005 19:50:59 +0300
>
> > Can you give us the actual panic message (which has %d expanded) and
>
> I don't have that information available as the server is in our
> electricity room and I just noticed that the system had booted itself.
Do you have the kernel core dump ? If so, you should have it in
dmesg -M netbsd.core
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
From: Martti Kuparinen <martti.kuparinen@iki.fi>
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
Cc: gnats-bugs@NetBSD.org, kern-bug-people@NetBSD.org,
gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/30048: Kernel panic with 3.0_BETA
Date: Tue, 26 Apr 2005 07:59:34 +0300
Manuel Bouyer wrote:
> Do you have the kernel core dump ? If so, you should have it in
> dmesg -M netbsd.core
panic: m_copym: m == 0, len 1 [!COPYALL]
Begin traceback...
m_copym0(0,484,1,1,0) at netbsd:m_copym0+0x459
m_copym(c1e70200,484,4da,1,0) at netbsd:m_copym+0x19
tcp_build_datapkt(c24e8190,c1d7b5f4,b68,4da,28) at
netbsd:tcp_build_datapkt+0x1f
0
tcp_output(c24e8190,c0936cc8,c1d7b5f4,c0936de0,c24e8190) at
netbsd:tcp_output+0x
1029
tcp_sack_newack(c24e8190,cb53e844,c0936de0,cb53e858,0) at
netbsd:tcp_sack_newack
+0xf6
tcp_input(c1d67300,14,6,1a,c0936e50) at netbsd:tcp_input+0x17bc
ip_input(c1d67300,0,0,246,0) at netbsd:ip_input+0x587
ipintr(ba40010,30,a67a0010,10,c0933000) at netbsd:ipintr+0x76
DDB lost frame for netbsd:Xsoftnet+0x41, trying 0xc0936e80
Xsoftnet() at netbsd:Xsoftnet+0x41
--- interrupt ---
0x246:
End traceback...
syncing disks... fatal page fault in supervisor mode
trap type 6 code 0 eip c03d0f86 cs 8 eflags 10246 cr2 23 ilevel 6
panic: trap
Begin traceback...
trap() at netbsd:trap+0x149
--- trap (number 6) ---
buf_lotsfree(c02797ab,286,c1c9fc00,0,0) at netbsd:buf_lotsfree+0xa
getnewbuf(0,0,0,0,4) at netbsd:getnewbuf+0x185
getblk(d2c28bd0,fffffff4,ffffffff,4000,0) at netbsd:getblk+0x176
ufs_bmaparray(d2c28bd0,25,0,c0936750,0) at netbsd:ufs_bmaparray+0x3ab
ufs_bmap(c09366b0,c0936790,c09366e8,c04388da,c0633d80) at
netbsd:ufs_bmap+0x47
VOP_BMAP(d2c28bd0,25,0,c093674c,c0936750) at netbsd:VOP_BMAP+0x40
genfs_gop_write(d2c28bd0,c0936790,4,1,c140a3c0) at
netbsd:genfs_gop_write+0x191
genfs_putpages(c09368f0,0,c0936928,c03e12ac,c0634180) at
netbsd:genfs_putpages+0
x814
VOP_PUTPAGES(d2c28bd0,0,0,0,0) at netbsd:VOP_PUTPAGES+0x40
ffs_full_fsync(c0936a20,c22472f0,c0936998,c09369c8,10) at
netbsd:ffs_full_fsync+
0x2cc
ffs_fsync(c0936a20,d2c28bd0,10012,c03e0f70,c06339c0) at
netbsd:ffs_fsync+0x4c
VOP_FSYNC(d2c28bd0,cd4e0000,0,0,0) at netbsd:VOP_FSYNC+0x4c
ffs_sync(c1db4000,2,cd4e0000,c08667e0,c0936ac8) at netbsd:ffs_sync+0x1f0
sys_sync(0,0,0,0,100) at netbsd:sys_sync+0xb6
vfs_shutdown(c079a980,0,c0936b28,c03b3a1c,100) at netbsd:vfs_shutdown+0x64
cpu_reboot(100,0,c1c91044,2,ffffffdc) at netbsd:cpu_reboot+0x155
panic(c079a980,1,95,5,0) at netbsd:panic+0x108
m_copym0(0,484,1,1,0) at netbsd:m_copym0+0x459
m_copym(c1e70200,484,4da,1,0) at netbsd:m_copym+0x19
tcp_build_datapkt(c24e8190,c1d7b5f4,b68,4da,28) at
netbsd:tcp_build_datapkt+0x1f
0
tcp_output(c24e8190,c0936cc8,c1d7b5f4,c0936de0,c24e8190) at
netbsd:tcp_output+0x
1029
tcp_sack_newack(c24e8190,cb53e844,c0936de0,cb53e858,0) at
netbsd:tcp_sack_newack
+0xf6
tcp_input(c1d67300,14,6,1a,c0936e50) at netbsd:tcp_input+0x17bc
ip_input(c1d67300,0,0,246,0) at netbsd:ip_input+0x587
ipintr(ba40010,30,a67a0010,10,c0933000) at netbsd:ipintr+0x76
DDB lost frame for netbsd:Xsoftnet+0x41, trying 0xc0936e80
Xsoftnet() at netbsd:Xsoftnet+0x41
--- interrupt ---
0x246:
End traceback...
dumping to dev 19,1 offset 2113157
From: Markus W Kilbinger <mk@kilbi.de>
To: gnats-bugs@NetBSD.org, kern-bug-people@NetBSD.org,
gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Cc:
Subject: Re: kern/30048: Kernel panic with 3.0_BETA
Date: Tue, 26 Apr 2005 19:35:31 +0200
>>>>> "Martti" == Martti Kuparinen <martti.kuparinen@iki.fi> writes:
Martti> panic: m_copym: m == 0, len 1 [!COPYALL] Begin
Martti> traceback... m_copym0(0,484,1,1,0) at
Martti> netbsd:m_copym0+0x459 m_copym(c1e70200,484,4da,1,0) at
Martti> netbsd:m_copym+0x19
Martti> tcp_build_datapkt(c24e8190,c1d7b5f4,b68,4da,28) at
Martti> netbsd:tcp_build_datapkt+0x1f 0
Martti> tcp_output(c24e8190,c0936cc8,c1d7b5f4,c0936de0,c24e8190)
Martti> at netbsd:tcp_output+0x 1029
Martti> tcp_sack_newack(c24e8190,cb53e844,c0936de0,cb53e858,0) at
Martti> netbsd:tcp_sack_newack +0xf6
Martti> [...]
This backtrace and the one in kern/29787 look very similar, so both
pr's seem identical! Maybe someone can merge them?
Markus.
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
To: Martti Kuparinen <martti.kuparinen@iki.fi>
Cc: gnats-bugs@NetBSD.org, kern-bug-people@NetBSD.org,
gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/30048: Kernel panic with 3.0_BETA
Date: Tue, 26 Apr 2005 21:11:58 +0200
On Tue, Apr 26, 2005 at 07:59:34AM +0300, Martti Kuparinen wrote:
> Manuel Bouyer wrote:
>
> >Do you have the kernel core dump ? If so, you should have it in
> >dmesg -M netbsd.core
>
> panic: m_copym: m == 0, len 1 [!COPYALL]
> Begin traceback...
> m_copym0(0,484,1,1,0) at netbsd:m_copym0+0x459
> m_copym(c1e70200,484,4da,1,0) at netbsd:m_copym+0x19
> tcp_build_datapkt(c24e8190,c1d7b5f4,b68,4da,28) at
> netbsd:tcp_build_datapkt+0x1f
> 0
> tcp_output(c24e8190,c0936cc8,c1d7b5f4,c0936de0,c24e8190) at
> netbsd:tcp_output+0x
> 1029
> tcp_sack_newack(c24e8190,cb53e844,c0936de0,cb53e858,0) at
> netbsd:tcp_sack_newack
> +0xf6
> tcp_input(c1d67300,14,6,1a,c0936e50) at netbsd:tcp_input+0x17bc
> ip_input(c1d67300,0,0,246,0) at netbsd:ip_input+0x587
> ipintr(ba40010,30,a67a0010,10,c0933000) at netbsd:ipintr+0x76
> DDB lost frame for netbsd:Xsoftnet+0x41, trying 0xc0936e80
> Xsoftnet() at netbsd:Xsoftnet+0x41
This can probably be worked around by disabling sack.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
From: "Jared D. McNeill" <jared.mcneill@alcatel.com>
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
Cc: netbsd-bugs@NetBSD.org, gnats-admin@NetBSD.org,
kern-bug-people@NetBSD.org, gnats-bugs@NetBSD.org,
Martti Kuparinen <martti.kuparinen@iki.fi>
Subject: Re: kern/30048: Kernel panic with 3.0_BETA
Date: Tue, 26 Apr 2005 16:17:53 -0300
On Tue, 2005-04-26 at 21:11 +0200, Manuel Bouyer wrote:
> This can probably be worked around by disabling sack.
I can confirm that this _can_ be worked around by disabling sack. I saw
the same behaviour on my 2.99.16 alpha until I disabled it.
Cheers,
Jared
From: Martti Kuparinen <martti.kuparinen@iki.fi>
To: "Jared D. McNeill" <jared.mcneill@alcatel.com>
Cc: Manuel Bouyer <bouyer@antioche.lip6.fr>, netbsd-bugs@NetBSD.org,
gnats-admin@NetBSD.org, kern-bug-people@NetBSD.org,
gnats-bugs@NetBSD.org
Subject: Re: kern/30048: Kernel panic with 3.0_BETA
Date: Wed, 27 Apr 2005 08:38:29 +0300
Jared D. McNeill wrote:
> I can confirm that this _can_ be worked around by disabling sack. I saw
> the same behaviour on my 2.99.16 alpha until I disabled it.
How should I do this? sysctl -w net.inet.tcp.sack=0 ?
From: "Jared D. McNeill" <jared.mcneill@alcatel.com>
To: Martti Kuparinen <martti.kuparinen@iki.fi>
Cc: Manuel Bouyer <bouyer@antioche.lip6.fr>, netbsd-bugs@NetBSD.org,
gnats-admin@NetBSD.org, kern-bug-people@NetBSD.org,
gnats-bugs@NetBSD.org
Subject: Re: kern/30048: Kernel panic with 3.0_BETA
Date: Wed, 27 Apr 2005 10:43:23 -0300
On Wed, 2005-04-27 at 08:38 +0300, Martti Kuparinen wrote:
> Jared D. McNeill wrote:
>
> > I can confirm that this _can_ be worked around by disabling sack. I saw
> > the same behaviour on my 2.99.16 alpha until I disabled it.
>
> How should I do this? sysctl -w net.inet.tcp.sack=0 ?
Yup. I set net.inet6.tcp6.sack=0 also just to be safe.
Cheers,
Jared
State-Changed-From-To: open->closed
State-Changed-By: chs@netbsd.org
State-Changed-When: Sun, 11 Sep 2005 13:56:20 +0000
State-Changed-Why:
dup of 29787, 30160.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.