This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug librt/20489] timer_create in compatibility mode on a 64bit big-endian system segfaults
- From: "ian.merin at thalesesec dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 19 Aug 2016 20:56:17 +0000
- Subject: [Bug librt/20489] timer_create in compatibility mode on a 64bit big-endian system segfaults
- Auto-submitted: auto-generated
- References: <bug-20489-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20489
--- Comment #12 from ian.merin at thalesesec dot com ---
Comment on attachment 9459
--> https://sourceware.org/bugzilla/attachment.cgi?id=9459
code sample
>
>
>/*
>* Included Files
>*/
>
>#include <sys/time.h>
>#include <stdio.h>
>#include <signal.h>
>#include <unistd.h>
>#include <time.h>
>#include <pthread.h>
>#include <stdlib.h>
>#include <signal.h>
>#include <time.h>
>#include "timer.h"
>
>void my_callback(sigval_t id)
>{
> static int x = 0;
> printf(" Callback: %d, id = %p\n", ++x, id.sival_ptr);
>} /* end my_callback */
>
>
>int main(int argc, char *argv[])
>{
> int rv;
> void *tid;
> void *tid2;
> void *tid3;
>
>
>
> rv = test_timer_create(&tid, my_callback, 500, 500, 1);
> rv = test_timer_create(&tid2, my_callback, 500, 500, 1);
> rv = test_timer_create(&tid3, my_callback, 500, 500, 1);
>
> return(EXIT_SUCCESS);
>
>} /* end main */
--
You are receiving this mail because:
You are on the CC list for the bug.