Sourceware Bugzilla – Attachment 8893 Details for
Bug 19329
dl-tls.c assert failure at concurrent pthread_create and dlopen
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
test case (main module)
a.c (text/x-csrc), 432 bytes, created by
Szabolcs Nagy
on 2016-01-08 18:19:09 UTC
(
hide
)
Description:
test case (main module)
Filename:
MIME Type:
Creator:
Szabolcs Nagy
Created:
2016-01-08 18:19:09 UTC
Size:
432 bytes
patch
obsolete
>#include <assert.h> >#include <dlfcn.h> >#include <pthread.h> >#include <stdlib.h> > >#define N 9000 > >static void *start(void *a) >{ > assert(dlopen("mod.so", RTLD_NOW)); > return 0; >} > >static void *dummy(void *a) >{ > return 0; >} > >int main() >{ > pthread_t td; > assert(pthread_create(&td, 0, start, 0) == 0); > for (int i=0; i<N; i++) > assert(pthread_create(&(pthread_t){0}, 0, dummy, 0) == 0); > assert(pthread_join(td, 0) == 0); > _Exit(0); >}
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 19329
: 8893 |
8894