﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
10585,The SIGALRM never fires,PoLiang,,"I know there is a similiar ticket, but it has been there for more than 4 months. I want to report this issue and provide VBOX.log file. 

I run the program:[[BR]]
#include <stdio.h>[[BR]]
#include <stdlib.h>[[BR]]
#include <signal.h>[[BR]]
#include <sys/time.h>[[BR]]
[[BR]]
#define INTERVAL 10[[BR]]
[[BR]]
void alarm_wakeup (int i)[[BR]]
{[[BR]]
   signal(SIGALRM,alarm_wakeup);[[BR]]
   printf(""%d sec up partner, Wakeup!!!\n"",INTERVAL);[[BR]]
   exit(0);[[BR]]
}[[BR]]
[[BR]]
int main ()[[BR]]
{[[BR]]
  struct itimerval tout_val;[[BR]]
[[BR]]
  tout_val.it_interval.tv_sec = 0;[[BR]]
  tout_val.it_interval.tv_usec = 0;[[BR]]
  tout_val.it_value.tv_sec = INTERVAL; /* set timer for ""INTERVAL (10) seconds */[[BR]]
  tout_val.it_value.tv_usec = 0;[[BR]]
  setitimer(ITIMER_REAL, &tout_val,0);[[BR]]
[[BR]]
  signal(SIGALRM,alarm_wakeup); /* set the Alarm signal capture */[[BR]]
[[BR]]
  while (1);[[BR]]
[[BR]]
  return 0;[[BR]]
}[[BR]]

SIGALRM never files.

Compiler: gcc

guest OS: Ubuntu 12.04 Linux 3.2.0-24-generic-pae i686

host OS: Windows Vista",defect,closed,other,VirtualBox 4.1.14,fixed,,,Linux,Windows
