Package: fakeroot
Version: 1.12.1

Well not is a Debian GNU/Linux related issue, it always segfault in other 
distros (Arch Linux, Slackware, Ubuntu).
When trying to execute some binary that are liked agains libGL inside fakeroot 
(with SYSV IPC), and nvidia libGL are installed it crash with sigsegv.
The fakeroot-tcp version don't have this problem. Run OK without any crash.

Steps to reproduce:

## first create a simple minimal file:

cat << FIN > hola.c
#include <stdio.h>

int main()
{
    printf("Hola aqui estoy!\n");

    return 0;
}
FIN

## compile and link to libGL
gcc hola.c -o hola -lGL

## Then if you have alredy installed the nvidia drivers skip these next steps 
(goto @@@)
## This is an extract only, not install drivers on the system.
wget 
http://us.download.nvidia.com/XFree86/Linux-x86/180.29/NVIDIA-Linux-x86-180.29-pkg0.run
chmod +x NVIDIA-Linux-x86-180.29-pkg0.run
./NVIDIA-Linux-x86-180.29-pkg0.run -x # alias of --extract-only ;)
ldconfig -n NVIDIA-Linux-x86-180.29-pkg0/usr/lib/

## Now run sample command
LD_LIBRARY_PATH=./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/ fakeroot ./hola

## Then crash like this:
## /usr/bin/fakeroot: line 178:  3143 Segmentation fault     
FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS" LD_PRELOAD="$LIB" "$@"

## or more simple run:
LD_LIBRARY_PATH=./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/:/usr/lib/libfakeroot 
LD_PRELOAD=libfakeroot.so ./hola

## Crash with:
## Segmentation fault

@@@ If you have nvidia libGL installed simply run:
fakeroot ./hola

## or run
LD_LIBRARY_PATH=/usr/lib/libfakeroot LD_PRELOAD=libfakeroot.so ./hola

## and fails with sigsegv.






-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to