Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368685 - nlopt: some optimizers are not thread-save because of static variables
Summary: nlopt: some optimizers are not thread-save because of static variables
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 12:16 UTC by Gert Wollny
Modified: 2011-06-08 17:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch adding TREADLOCAL specifier (nlopt-2.2.1-threadlocal.patch,535 bytes, patch)
2011-05-25 12:16 UTC, Gert Wollny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.