From nobody@FreeBSD.org  Fri Mar  3 10:55:22 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id B073837BB6B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 Mar 2000 10:55:22 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id KAA47850;
	Fri, 3 Mar 2000 10:55:22 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200003031855.KAA47850@freefall.freebsd.org>
Date: Fri, 3 Mar 2000 10:55:22 -0800 (PST)
From: freak@fac-simile.com
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: kernel panic:aio_write
X-Send-Pr-Version: www-1.0

>Number:         17152
>Category:       kern
>Synopsis:       kernel panic:aio_write
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    alfred
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar  3 11:00:01 PST 2000
>Closed-Date:    Mon Apr 30 17:40:36 PDT 2001
>Last-Modified:  Mon Apr 30 17:42:37 PDT 2001
>Originator:     Patrick Julien
>Release:        3.4-RELEASE
>Organization:
>Environment:
FreeBSD bsd.local.fac-simile.com 3.4-RELEASE FreeBSD 3.4-RELEASE #0: Mon Dec
20 06:54:39 GMT 1999 jkh@time.cdrom.com:/usr/src/sys/compile/GENERIC i386
>Description:
Using aio_write with the rt signal notification crashes the system.  3 
different machines have been crashed using this technique.  Note that no
signal number is specified for this test.
>How-To-Repeat:
#include <aio.h>
#include <fcntl.h>

#include <signal.h>
#include <string.h>

int main ( void )
{
	int f;
	struct aiocb io;
	char data [ ] = "Donnees a ecrire\n";
	
	f = open ( "allo", O_CREAT | O_TRUNC | O_WRONLY, 00600 );
	memset ( &io, 0, sizeof ( struct aiocb ) );

	io.aio_nbytes = sizeof ( data );
	io.aio_fildes = f;
	io.aio_buf = data;
	io.aio_sigevent.sigev_notify = SIGEV_SIGNAL;

	aio_write ( &io );

	sleep ( 1 );
	return 0;
}

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->alfred 
Responsible-Changed-By: alfred 
Responsible-Changed-When: Tue Jun 6 02:13:26 PDT 2000 
Responsible-Changed-Why:  
I'll be working on this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=17152 
State-Changed-From-To: feedback->closed 
State-Changed-By: alfred 
State-Changed-When: Mon Apr 30 17:40:36 PDT 2001 
State-Changed-Why:  
Test case provided no longer panics the system after my added sanity 
checks. 
No response from submitter. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=17152 
>Unformatted:
