Bug 11560 - ld-linux.so segfaults when LD_LIBRARY_PATH is set on setgid executable
ld-linux.so segfaults when LD_LIBRARY_PATH is set on setgid executable
Status: CLOSED RAWHIDE
Product: Red Hat Raw Hide
Classification: Retired
Component: glibc (Show other bugs)
1.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-05-21 17:55 EDT by Jonathan Kamens
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-06-02 17:48:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jonathan Kamens 2000-05-21 17:55:01 EDT
When an executable is setgid, it is run by a user other than its
owner, and LD_LIBRARY_PATH is set, it segfaults.  This doesn't happen
with LD_RUN_PATH.

> cat foo.c
main()
{
  printf("Hello, world.\n");
}
> gcc foo.c
> ./a.out
Hello, world.
> chmod g+s a.out
> ( setenv LD_LIBRARY_PATH /foo ; ./a.out)
Hello, world.
> su -c tcsh
Password:
# ./a.out
Hello, world.
# (setenv LD_LIBRARY_PATH /foo; ./a.out)
Segmentation fault
# ( setenv LD_RUN_PATH /foo ; ./a.out )
Hello, world.

Here's what I have installed:

gcc-2.95.3-0.20000517
glibc-2.1.90-11
Comment 1 SB 2000-06-02 17:48:36 EDT
Try running it through gdb with that setup and find out where it segfaults 
because I've tried several times unsuccessfuly to reproduce this using same 
package versions described above...

-Stan Bubrouski
Comment 2 Jakub Jelinek 2000-09-04 12:08:16 EDT
Fixed on 2000-05-22, just forgot to close bugzilla. Sorry.

Note You need to log in before you can comment on or make changes to this bug.