This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug librt/20489] timer_create in compatibility mode on a 64bit big-endian system segfaults


https://sourceware.org/bugzilla/show_bug.cgi?id=20489

--- Comment #10 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]