site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hi, We get a strange crash log in our code that uses the semget/semop API and cause an "abort" on OSX 10.6.2. Here is the log and the code that crashes: • Thread 0 Crashed: Dispatch queue: com.apple.main-thread • 0 libSystem.B.dylib 0x941b2732 __kill + 10 • 1 libSystem.B.dylib 0x941b2724 kill$UNIX2003 + 32 • 2 libSystem.B.dylib 0x9424598d raise + 26 • 3 libSystem.B.dylib 0x9425ba44 abort + 93 • 4 Jackmp 0x1648bbb5 semaphore_init + 197 • 5 Jackmp 0x1648bdb5 jack_initialize_shm + 389 • semaphore_init () { key_t semkey = JACK_SEMAPHORE_KEY; struct sembuf sbuf; int create_flags = IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; /* Get semaphore ID associated with this key. */ if ((semid = semget(semkey, 0, 0)) == -1) { /* Semaphore does not exist - Create. */ if ((semid = semget(semkey, 1, create_flags)) != -1) { /* Initialize the semaphore, allow one owner. */ sbuf.sem_num = 0; sbuf.sem_op = 1; sbuf.sem_flg = 0; if (semop(semid, &sbuf, 1) == -1) { semaphore_error ("semop"); } } else if (errno == EEXIST) { if ((semid = semget(semkey, 0, 0)) == -1) { semaphore_error ("semget"); } } else { semaphore_error ("semget creation"); } } } What could be the reason? Thanks Stéphane Letz _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stéphane Letz