Ticket #10119 (closed defect: worksforme)

Opened 8 years ago

Last modified 7 years ago

Semaphore, SIGALRM not fired

Reported by: ahurkala Owned by:
Component: other Version: VirtualBox 4.1.8
Keywords: signal, alarm, semaphore Cc:
Guest type: Linux Host type: Windows

Description (last modified by frank) (diff)

There's a bug in handling SIGALRM while waiting for a samaphore - signal is never delivered.

#include <stdio.h>
#include <stdlib.h>
#include <semaphore.h>
#include <signal.h>

static void handler(int sig) { exit(0); }

main() {
   sem_t s;
   struct sigaction sa;

   sem_init(&s, 0, 0);
   sa.sa_handler = handler;
   sa.sa_flags = 0;
   if (sigaction(SIGALRM, &sa, NULL) == -1) exit(-1);

Change History

comment:1 Changed 8 years ago by frank

Works fine here (Linux host, Debian Squeeze guest). Which guest did you use for this test?

comment:2 Changed 8 years ago by ahurkala

Host: Windows Guest: Ubuntu 11.04 2.6.38-11-generic x86_64

comment:3 Changed 8 years ago by frank

Please attach a VBox.log of your VM session.

comment:4 Changed 7 years ago by frank

  • Status changed from new to closed
  • Resolution set to worksforme
  • Description modified (diff)

No response, closing.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use