NetBSD Problem Report #29441
From christos@zoulas.com Fri Feb 18 19:47:27 2005
Return-Path: <christos@zoulas.com>
Received: from quasar.astron.com (68-175-70-103.nyc.rr.com [68.175.70.103])
by narn.netbsd.org (Postfix) with ESMTP id 405DE63B844
for <gnats-bugs@gnats.NetBSD.org>; Fri, 18 Feb 2005 19:47:26 +0000 (UTC)
Message-Id: <20050218194721.D2CF652E5@quasar.astron.com>
Date: Fri, 18 Feb 2005 14:47:21 -0500 (EST)
From: christos@zoulas.com
Reply-To: christos@zoulas.com
To: gnats-bugs@netbsd.org
Subject: cp /lib/libc.so.12.125.new /lib/libc.so.12.125 crashes kernel
X-Send-Pr-Version: 3.95
>Number: 29441
>Category: kern
>Synopsis: cp /lib/libc.so.12.125.new /lib/libc.so.12.125 crashes kernel
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 18 19:48:00 +0000 2005
>Closed-Date: Sun Feb 20 15:24:12 +0000 2005
>Last-Modified: Sun Feb 20 15:24:12 +0000 2005
>Originator: Christos Zoulas
>Release: NetBSD 2.99.15
>Organization:
Kernel Krashing Koalition
>Environment:
System: NetBSD quasar.astron.com 2.99.15 NetBSD 2.99.15 (QUASAR) #3: Wed Feb 9 19:58:38 EST 2005 christos@quasar.astron.com:/usr/src/sys/arch/i386/compile/QUASAR i386
Architecture: i386
Machine: i386
>Description:
Yes, copying over libc is a good way to make everything segv,
but the kernel should not die.
>How-To-Repeat:
see synopsis
>Fix:
none
panic: kernel diagnostic assertion "origoffset + (ap->a_centeridx << PAGE_SHIFT)
< memeof" failed: file "../../../../miscfs/genfs/genfs_vnops.c", line 523
breakpoint(c0598eb8,cbe6d9e8,cbe6d9dc,c03994de,cbe6d9e8) at netbsd:breakpoint+0x
4
cpu_Debugger(cbe6d9e8,100,cbe6da0c,c053cb23,c05f9360) at netbsd:cpu_Debugger+0xb
panic(c05f9360,c059f307,c059f380,c059f2e0,20b) at netbsd:panic+0xd4
__assert(c059f307,c059f2e0,20b,c059f380,0) at netbsd:__assert+0x1f
genfs_getpages(cbe6dc84,0,cbe6dea8,0,fffffff4) at netbsd:genfs_getpages+0x2d5
ffs_getpages(cbe6dc84,ffffffff,1,0,c059eb60) at netbsd:ffs_getpages+0xd3
VOP_GETPAGES(cb5bf0ac,1a000,0,cbe6ddc4,cbe6de74) at netbsd:VOP_GETPAGES+0x6d
uvn_get(cb5bf0ac,1a000,0,cbe6ddc4,cbe6de74) at netbsd:uvn_get+0x3b
uvm_fault(cb5a81c0,bdb49000,0,1,f801c4da) at netbsd:uvm_fault+0x800
trap() at netbsd:trap+0x99a
--- trap (number 6) ---
0xbdb497ef:
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/29441: cp /lib/libc.so.12.125.new /lib/libc.so.12.125 crashes kernel
Date: Fri, 18 Feb 2005 20:51:43 +0100
Should be fixed by miscfs/genfs/genfs_vnops.c rev. 1.95:
revision 1.95
date: 2005/02/16 15:25:33; author: chs; state: Exp; lines: +15 -3
undo the part of rev. 1.93 that turned the past-EOF check into an assertion.
read() can't request pages past EOF, but mmap() can. apparently I had
disengaged the brain when I said that was ok.
Martin
State-Changed-From-To: open->closed
State-Changed-By: chs@netbsd.org
State-Changed-When: Sun, 20 Feb 2005 15:24:12 +0000
State-Changed-Why:
already fixed, update your sources.
>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.