| Summary: | kernel panic:aio_write | ||
|---|---|---|---|
| Product: | Base System | Reporter: | freak <freak> |
| Component: | kern | Assignee: | Alfred Perlstein <alfred> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 3.4-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-bugs->alfred I'll be working on this. State Changed From-To: feedback->closed Test case provided no longer panics the system after my added sanity checks. No response from submitter. |
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; }