segfaults on amd64

Robert Millan rmh at aybabtu.com
Sun Feb 26 11:53:01 UTC 2006


On Sat, Feb 25, 2006 at 08:12:03PM +0100, Petr Salinger wrote:
> The bug is fixed only partially, it is still in kernel,
> now it affect only DYN object,
> EXEC are (on kfreebsd-i386) mapped correctly.
> 
> Can you, please, test also following:
> 
> ****************************************
> #include <unistd.h>
> #include <fcntl.h>
> 
> char buf[4096];
> 
> int main()
> {
>   int fd, cnt;
>   fd = open("/proc/self/maps", O_RDONLY);
>   cnt = read(fd, buf, 4096);
>   write(1, buf, cnt);
>   _exit(123);
> }
> ****************************************

$ .////////////maps
00400000-00401000 r-xp 00003000 00:00 353289     /tmp/maps
00500000-00502000 rw-p 00002000 00:00 0
800500000-800517000 r-xp 0008f000 00:00 168361     /gnu/lib/ld-2.3.6.so
800517000-800519000 rw-p 00002000 00:00 0
800616000-800617000 r--p 0008f000 00:00 168361     /gnu/lib/ld-2.3.6.so
800617000-800618000 rw-p 00001000 00:00 0
800618000-800731000 r-xp 0083f000 00:00 168360     /gnu/lib/libc-2.3.6.so
800731000-800830000 ---p 0083f000 00:00 168360     /gnu/lib/libc-2.3.6.so
800830000-800834000 r--p 0083f000 00:00 168360     /gnu/lib/libc-2.3.6.so
800834000-800836000 rw-p 0083f000 00:00 168360     /gnu/lib/libc-2.3.6.so
800836000-80083a000 rw-p 00004000 00:00 0
7ffffffe0000-800000000000 rwxp 00020000 00:00 0

-- 
Robert Millan



More information about the Glibc-bsd-devel mailing list