Bug 9758 - RTLD_DEEPBIND causes separate NULL `environ'
Summary: RTLD_DEEPBIND causes separate NULL `environ'
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: dynamic-link (show other bugs)
Version: unspecified
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-17 22:35 UTC by Jan Kratochvil
Modified: 2023-03-01 14:26 UTC (History)
2 users (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Demo of the problem (deepbind-environ). (1020 bytes, application/octet-stream)
2009-01-17 22:36 UTC, Jan Kratochvil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2009-01-17 22:35:12 UTC
After some debugging ( https://bugzilla.redhat.com/show_bug.cgi?id=480504 )
found out a use of RTLD_DEEPBIND will cause NULL `environ' in the loaded library.

This is IMO a generally unexpected behavior and either `environ' should be an
exception of being shared despite RTLD_DEEPBIND or at least the man page could
make a note of it.

Tested on: Fedora glibc-2.9-3.x86_64
Comment 1 Jan Kratochvil 2009-01-17 22:36:12 UTC
Created attachment 3670 [details]
Demo of the problem (deepbind-environ).
Comment 2 Andreas Schwab 2017-06-28 14:10:19 UTC
This works on architectures that don't use COPY relocations.