From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d8a5bd5730eb3c12,start X-Google-Attributes: gidfee84,public From: joern@sima.sintef.no (Jorn Amundsen) Subject: Problems with aio on v3.2 Date: 1995/08/15 Message-ID: #1/1 X-Deja-AN: 108210496 distribution: world organization: SINTEF newsgroups: comp.unix.osf.osf1 After upgrading our 3000/400 to DEC Unix v.3.2 this simple aio program below seems not to work anymore. It works without problems on SGI systems. It bails out before reaching the first executable line of code with: $ cc -g -o taio taio.c -laio -lpthreads dbx taio dbx version 3.11.8 Type 'help' for help. (dbx) run signal Segmentation fault at [port_allocate:6039 +0xc,0x3ff818088ec] Source not available (dbx) file ./mach_user.c I looked into the FAQ, but no clues. Does anybody have any pointers ?? Thank you. #include #include #include #include main() { int fd, i; static struct aiocb aiobuf; fd = open("afile", O_CREAT | O_RDONLY, 0644); aiobuf.aio_fildes = fd; aiobuf.aio_offset = 0; aiobuf.aio_buf = &i; aiobuf.aio_nbytes = sizeof(int); #if defined(__alpha) aiobuf.aio_reqprio = AIO_PRIO_DFL; aiobuf.aio_sigevent.sigev_notify = SIGEV_NONE; #else defined(__sgi) aiobuf.aio_sigevent.sigev_signo = 0; #endif i = -1; aio_read(&aiobuf); printf("i=%d\n", i); sleep(10); printf("i=%d\n", i); } Best Regards --Jorn Amundsen -- +--------------------------------+------------------------------+ | Joern Amundsen | Jorn.Amundsen@SIMa.sintef.no | | SINTEF Industrial Mathematics | +47-735-92092 (voice) | | 7034 Trondheim, Norway | +47-735-92971 (fax) | | http://www.sima.sintef.no/ | | +--------------------------------+------------------------------+