[Bug c++/44059] New: Static initializers executed more than once when using unique global symbols

2010-05-10 Thread ivan dot stankovic at avl dot com
Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ivan dot stankovic at avl dot com GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http

[Bug c++/44059] Static initializers executed more than once when using unique global symbols

2010-05-10 Thread ivan dot stankovic at avl dot com
--- Comment #1 from ivan dot stankovic at avl dot com 2010-05-10 13:40 --- Created an attachment (id=20619) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20619action=view) The test case Just unpack and run 'make; make run'. The output should be something like: x initialized

[Bug c++/44059] Static initializers executed more than once when using unique global symbols

2010-05-10 Thread ivan dot stankovic at avl dot com
--- Comment #5 from ivan dot stankovic at avl dot com 2010-05-10 14:14 --- Indeed, using RTLD_GLOBAL works around the problem. However, I don't think one should just resort to using this flag with dlopen everywhere. The problem was originally found with Python modules written in C