[Issue 17061] New: dlopen: cannot load any more object with static TLS

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jan 5 10:21:01 PST 2017


https://issues.dlang.org/show_bug.cgi?id=17061

          Issue ID: 17061
           Summary: dlopen: cannot load any more object with static TLS
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: timothee.cour2 at gmail.com

pseudo-code:

```
main.cpp:
dlopen(dlib.so)
dlsym(fun)

dlib.d:
fun(){
  dlopen(dlib2.so);
  // dlopen: cannot load any more object with static TLS
}

dlib2.d:
void fun2(){}
```

Is there a workaround?

--


More information about the Digitalmars-d-bugs mailing list