www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17061] New: dlopen: cannot load any more object with static TLS

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 puremagic.com
          Reporter: timothee.cour2 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?

--
Jan 05