Bug 17152

Summary: kernel panic:aio_write
Product: Base System Reporter: freak <freak>
Component: kernAssignee: Alfred Perlstein <alfred>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-RELEASE   
Hardware: Any   
OS: Any   

Description freak 2000-03-03 19:00:01 UTC
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;
}
Comment 1 Alfred Perlstein freebsd_committer freebsd_triage 2000-06-06 10:13:26 UTC
Responsible Changed
From-To: freebsd-bugs->alfred

I'll be working on this.
Comment 2 Alfred Perlstein freebsd_committer freebsd_triage 2001-05-01 01:40:36 UTC
State Changed
From-To: feedback->closed

Test case provided no longer panics the system after my added sanity 
checks. 
No response from submitter.