Ticket #11314: panic-simpler.c

File panic-simpler.c, 351 bytes (added by nicsma, 6 years ago)

A reduced test case

Line 
1#include <signal.h>
2
3int main(int argc, char *argv[])
4{
5
6 struct sigevent ev;
7 timer_t timer;
8 struct itimerspec it;
9
10 ev.sigev_notify = SIGEV_NONE;
11 timer_create(CLOCK_PROCESS_CPUTIME_ID, &ev, &timer);
12 it.it_value.tv_sec = 0;
13 it.it_value.tv_nsec = 1;
14 it.it_interval = it.it_value;
15 timer_settime(timer, 0, &it, NULL);
16}