From owner-freebsd-bugs@FreeBSD.ORG Sun May 28 20:36:57 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B62E16CACD for ; Sun, 28 May 2006 20:30:27 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A617943D66 for ; Sun, 28 May 2006 20:30:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4SKUHYl042838 for ; Sun, 28 May 2006 20:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4SKUH4m042837; Sun, 28 May 2006 20:30:17 GMT (envelope-from gnats) Resent-Date: Sun, 28 May 2006 20:30:17 GMT Resent-Message-Id: <200605282030.k4SKUH4m042837@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kirk Russell Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A760716CBD0 for ; Sun, 28 May 2006 20:25:36 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6068A43D4C for ; Sun, 28 May 2006 20:25:36 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4SKPZAp005751 for ; Sun, 28 May 2006 20:25:35 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k4SKPZEs005750; Sun, 28 May 2006 20:25:35 GMT (envelope-from nobody) Message-Id: <200605282025.k4SKPZEs005750@www.freebsd.org> Date: Sun, 28 May 2006 20:25:35 GMT From: Kirk Russell To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/98064: Crash with FIFOs (named pipes) and truncate() X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 May 2006 20:36:59 -0000 >Number: 98064 >Category: kern >Synopsis: Crash with FIFOs (named pipes) and truncate() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 28 20:30:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Kirk Russell >Release: 6.1-RELEASE alpha >Organization: http://www.ba23.org/ >Environment: FreeBSD as2100.on.kr 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 18:29:20 UTC 2006 root@ds10.freebie.xs4all.nl:/usr/obj/usr/src/sys/GENERIC alpha >Description: I am guessing you can reproduce this issue on i386, so it should be a generic kernel issue and not specific to the alpha. When you call truncate() on a fifo, the kernel will crash. >How-To-Repeat: $ cat bstg0001.c #include #include #include #include #include #include int main() { unlink("afifo"); if (mkfifo("afifo", 0666) == -1) { errx(1, "%s: %s", "mkfifo", strerror(errno)); } truncate("afifo", 16000); return 0; } $ cc -Wall bstg0001.c $ ./a.out No strategy for buffer at 0xfffffe000dbe8e28 vnode 0xfffffc0027a001f0: tag ufs, type VFIFO usecount 1, writecount 0, refcount 2 mountedhere 0 flags () lock type ufs: EXCL (count 1) by thread 0xfffffc002aaaafc0 (pid 516) ino 306188, on dev da0f fatal kernel trap: trap entry = 0x2 (memory management fault) cpuid = 1 faulting va = 0x10 type = access violation cause = load instructon pc = 0xfffffc00004b6af8 ra = 0xfffffc00007241cc sp = 0xfffffe00188e95d0 usp = 0x11ffec20 curthread = 0xfffffc002aaaafc0 pid = 516, comm = a.out panic: trap cpuid = 1 Uptime: 4m47s Cannot dump. No dump device defined. Automatic reboot in 15 seconds - press a key on the console to abort >Fix: >Release-Note: >Audit-Trail: >Unformatted: