ALT Linux Bugzilla
– Attachment 283 Details for
Bug 3061
strace hangs on simple pthread program
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
stracetest.c
stracetest.c (text/x-csrc), 373 bytes, created by
Dmitry V. Levin
on 2003-09-28 16:48:45 MSD
(
hide
)
Description:
stracetest.c
Filename:
MIME Type:
Creator:
Dmitry V. Levin
Created:
2003-09-28 16:48:45 MSD
Size:
373 bytes
patch
obsolete
>#include <stdlib.h> >#include <unistd.h> >#include <pthread.h> >int pid; > >void * >testpid(void *ignore) { > int mypid = getpid(); > (void)ignore; > /* All threads should have the same PID! */ > if(mypid != pid) > exit(1); > else > exit(0); >} >int >main(void) { > pthread_t child; > pid = getpid(); > pthread_create(&child, NULL, testpid, NULL); > pthread_join(child, NULL); > return 1; >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3061
:
282
|
283
|
284
|
285