Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 368685

Summary: nlopt: some optimizers are not thread-save because of static variables
Product: Gentoo Linux Reporter: Gert Wollny <gw.fossdev>
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch adding TREADLOCAL specifier

Description Gert Wollny 2011-05-25 12:16:42 UTC
Created attachment 274599 [details, diff]
Patch adding TREADLOCAL specifier

The optimizers that make use of luksan/pssubs.c are not thread-save because the function luksan_ps1l01__ uses static variables that are not thread local. 
Amongst these optimizers are ld-lbfgs, ld-var1, ld-var2. 

The attached patch adds the THREADLOCAL specifier that is used in the library to  make static variables thread-local (if the compiler supports it).
Comment 1 Gert Wollny 2011-05-26 08:43:58 UTC
Upstream just told me that this will be fixed in the next version.
Comment 2 Gert Wollny 2011-05-27 10:26:02 UTC
Fixed in version 2.2.2
Comment 3 Gert Wollny 2011-06-08 17:38:59 UTC
Actually it was completely fixed in version 2.2.3.