Clint Adams wrote:
> On Sun, Feb 22, 2009 at 03:10:47AM -0200, Gerardo Exequiel Pozzi wrote:
>   
>> Breakpoint 1, *__GI___xstat (vers=3, name=0xb7ff71c1 "/dev/zero",
>>     
>
> Hrm, 3 means that I'm on the wrong track.
>
>   
mmm, I made a simple test (no LibGL nvidia, just libfakeroot.so) and the
"3" is also appears but not crash.
I see is the memory address that is fairly high. 0xb7ff71c1 (library
address) vs 0x8048520 (program address)
can be this be related?

Let's see...

[chroot][prob...@gerardo ~]$ cat coco.c
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
    struct stat buf;
    stat("/dev/zero", &buf);
    printf("Hola %d %d\n", argc, buf.st_size);
}
[chroot][prob...@gerardo ~]$ gcc coco.c -o coco
[chroot][prob...@gerardo ~]$ ldd coco
        linux-gate.so.1 =>  (0xb7fc0000)
        libc.so.6 => /lib/libc.so.6 (0xb7e76000)
        /lib/ld-linux.so.2 (0xb7fc1000)
[chroot][prob...@gerardo ~]$ fakeroot gdb -q ./coco
(gdb) break __xstat
Function "__xstat" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (__xstat) pending.
(gdb) run
Starting program: /home/probeta/coco

Breakpoint 1, __xstat (ver=3, file_name=0x8048520 "/dev/zero",
st=0xbfaf9548) at libfakeroot.c:536
536     libfakeroot.c: No such file or directory.
        in libfakeroot.c
(gdb) bt
#0  __xstat (ver=3, file_name=0x8048520 "/dev/zero", st=0xbfaf9548) at
libfakeroot.c:536
#1  0x080484bc in __stat (file=0x8048520 "/dev/zero", buf=0xbfaf9548) at
stat.c:52
#2  0x080483fb in main ()
(gdb) continue
Continuing.
Hola 1 0

Program exited with code 011.
(gdb) 

>> 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",
>>     
>
> That's odd.
>
>   

Does another test to detect the problem?

Thanks.


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