After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 71615 - Option to turn off RTLD_GLOBAL
Option to turn off RTLD_GLOBAL
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
1.3.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 76863 91767 119657 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-02-15 18:48 UTC by Miroslaw Dobrzanski-Neumann
Modified: 2011-02-18 16:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
simple patch (820 bytes, patch)
2002-02-15 18:52 UTC, Miroslaw Dobrzanski-Neumann
none Details | Review
patch to add G_MODULE_BIND_LOCAL (5.98 KB, patch)
2002-08-28 03:29 UTC, David Schleef
none Details | Review
improvement on last patch, includes documentation, comments; implemented on all platforms (7.17 KB, patch)
2002-08-30 18:46 UTC, David Schleef
none Details | Review

Description Miroslaw Dobrzanski-Neumann 2002-02-15 18:48:54 UTC
dlopen(..., RTLD_GLOBAL)
polutes the global namespace with symbols defined in this module
further dlopen/dlsym involves resolving started from previously loaded
modules. This way some symbols get resolved the wrong way
The correct way (as expected by the user) is using RTLD_LOCAL.
RTLD_LOCAL behaves the same way as LoadLibrary() under Windows.
Comment 1 Miroslaw Dobrzanski-Neumann 2002-02-15 18:52:46 UTC
Created attachment 6737 [details] [review]
simple patch
Comment 2 Owen Taylor 2002-02-15 19:15:33 UTC
Changing this is an API change, we could an extra option to load
a module without RTLD_GLOBAL
Comment 3 Owen Taylor 2002-03-29 03:52:38 UTC
*** Bug 76863 has been marked as a duplicate of this bug. ***
Comment 4 Matthias Clasen 2002-08-27 09:53:53 UTC
*** Bug 91767 has been marked as a duplicate of this bug. ***
Comment 5 David Schleef 2002-08-28 03:29:59 UTC
Created attachment 10749 [details] [review]
patch to add G_MODULE_BIND_LOCAL
Comment 6 David Schleef 2002-08-30 18:46:37 UTC
Created attachment 10819 [details] [review]
improvement on last patch, includes documentation, comments; implemented on all platforms
Comment 7 Owen Taylor 2003-08-11 18:11:17 UTC
*** Bug 119657 has been marked as a duplicate of this bug. ***
Comment 8 Tim Janik 2004-02-20 01:41:30 UTC
thanks for the patch, applied as is.