Gerardo Exequiel Pozzi wrote:
> Clint Adams wrote:
>   
>> On Thu, Feb 19, 2009 at 04:29:39AM -0200, Gerardo Exequiel Pozzi wrote:
>>   
>>     
>>> $ objdump -T libGL.so.1.2 | grep xstat
>>> (none)
>>> $ objdump -T /usr/lib/libGL.so.180.29 |grep xstat
>>> 00000000      DF *UND*  00000145  GLIBC_2.0   __xstat
>>> 00000000      DF *UND*  00000145  GLIBC_2.0   __fxstat
>>>     
>>>       
>> Well, now I would ask you to do
>> grep _STAT_VER /usr/include/bits/stat.h
>> on the system where /usr/lib/libGL.so.180.29 was linked,
>> but I think you probably can't do that.
>>
>> Can you find out what is the first argument passed to __xstat
>> and __fxstat by this library (without libfakeroot preloaded)?
>>
>>   
>>     
> mmmm no args are showed, maybe need to use a glibc compiled with -g ?
> Can do that...
> or any other way?
>
>   
OK, its here compiled both glibc and fakeroot with -g

$ LD_LIBRARY_PATH="./NVIDIA-Linux-x86-180.29-pkg0/usr/lib" gdb hola
(gdb) run
Starting program: /home/probeta/libGL/hola

Breakpoint 1, *__GI___xstat (vers=3, name=0xb7ff71c1 "/dev/zero",
buf=0xb80322a0) at ../sysdeps/unix/sysv/linux/i386/xstat.c:55
55      ../sysdeps/unix/sysv/linux/i386/xstat.c: No such file or directory.
        in ../sysdeps/unix/sysv/linux/i386/xstat.c
(gdb) bt
#0  *__GI___xstat (vers=3, name=0xb7ff71c1 "/dev/zero", buf=0xb80322a0)
at ../sysdeps/unix/sysv/linux/i386/xstat.c:55
#1  0xb7fba3f4 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#2  0x00000003 in ?? ()
#3  0xb7ff71c1 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#4  0xb80322a0 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#5  0xb8006080 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#6  0x00000001 in ?? ()
#7  0x00000000 in ?? ()
(gdb) continue
Continuing.
Hola aqui estoy!

Program exited normally.
(gdb)    


And now with

$ LD_LIBRARY_PATH="./NVIDIA-Linux-x86-180.29-pkg0/usr/lib"
LD_PRELOAD="/usr/lib/libfakeroot/libfakeroot.so" gdb hola
(gdb) run
Starting program: /home/probeta/libGL/hola

Breakpoint 1, __xstat (ver=3, file_name=0xb7f251c1 "/dev/zero",
st=0xb7f602a0) at libfakeroot.c:536
536     libfakeroot.c: No such file or directory.
        in libfakeroot.c
(gdb) bt
#0  __xstat (ver=3, file_name=0xb7f251c1 "/dev/zero", st=0xb7f602a0) at
libfakeroot.c:536
#1  0xb7ee83f4 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#2  0x00000003 in ?? ()
#3  0xb7f251c1 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#4  0xb7f602a0 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#5  0xb7f34080 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#6  0x00000001 in ?? ()
#7  0x00000000 in ?? ()
(gdb) continue
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0xb7f66683 in tmp___xstat (ver=3, file_name=0xb7f251c1 "/dev/zero",
buf=0xb7f602a0) at wraptmpf.h:28
#2  0xb7f65a83 in __xstat (ver=3, file_name=0xb7f251c1 "/dev/zero",
st=0xb7f602a0) at libfakeroot.c:536
#3  0xb7ee83f4 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#4  0x00000003 in ?? ()
#5  0xb7f251c1 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#6  0xb7f602a0 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#7  0xb7f34080 in ?? () from
./NVIDIA-Linux-x86-180.29-pkg0/usr/lib/libGL.so.1
#8  0x00000001 in ?? ()
#9  0x00000000 in ?? ()
(gdb)  


-- 
Gerardo Exequiel Pozzi ( djgera )
http://www.djgera.com.ar
KeyID: 0x1B8C330D
Key fingerprint = 0CAA D5D4 CD85 4434 A219  76ED 39AB 221B 1B8C 330D




-- 
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