Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 22 Oct 2014 09:27:42 +0200
From: Jens Gustedt <jens.gustedt@...ia.fr>
To: musl@...ts.openwall.com
Subject: Re: musl pthread/tls issue.

Am Mittwoch, den 22.10.2014, 14:33 +0800 schrieb 黄建忠:
> And after a quick look, the problem is in pixman-compiler.h, it defined
> TLS related codes and macros according to specific
> implementation(win32/mingw/pthread and so on).
> By default, the TLS codes will be compiled, if it was disabled, there is
> still a pthread fallback use 'pthread_key_create' and other pthread funcs.

Both, the TLS and pthread codes look fishy to me. They define the tls
"variables" as static which restricts any of them to be used from
inside the same TU. This perhaps may mostly be the case, but it is
certainly a desing restriction if not a flaw.

Maybe the code that errors for you does inline certain functions
according to compiler versions, flags etc, and thus creates several
copies of these static variables? Just a wild guess.

Jens


-- 
:: INRIA Nancy Grand Est ::: AlGorille ::: ICube/ICPS :::
:: ::::::::::::::: office Strasbourg : +33 368854536   ::
:: :::::::::::::::::::::: gsm France : +33 651400183   ::
:: ::::::::::::::: gsm international : +49 15737185122 ::
:: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::




Download attachment "signature.asc" of type "application/pgp-signature" (199 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.