Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
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
Product: Red Hat Raw Hide
Classification: Retired
Component: glibc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  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:
Last Closed: 2000-06-02 17:48:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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

> cat foo.c
  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
# ./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:

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.