kern/117010
sam
samflanker at gmail.com
Thu Dec 13 06:06:58 PST 2007
Roman Divacky wrote:
> no offence meant but... kdump is not useful much. please provide me
> tar of a dir that exihibits the behavior + source code + makefile.
>
> ie. all I have to do is "make" and then some debugging. I really dont
> have the time (and in fact, these days, motivation) to do something
> more...
>
source http://cs.udmvt.ru/files/temp/linux_getdents.c.txt
kdump http://cs.udmvt.ru/files/temp/ktrace.out.dump.txt
source compiled on Debian Etch 4.0
# cc linux_getdents.c -o linux_getdents_dynamic
try run on FreeBSD 8.0-CURRENT, linux_base-fc6
# linux_getdents_dynamic ./temp
program crashed on syscall closedir()
...
1948 linux_getdents_dyna RET write 1
1948 linux_getdents_dyna CALL write(0x1,0x28064000,0xb)
1948 linux_getdents_dyna GIO fd 1 wrote 11 bytes
"Closing...
"
1948 linux_getdents_dyna RET write 11/0xb
1948 linux_getdents_dyna CALL linux_open(0x2818af05,0x902,0x28057129)
1948 linux_getdents_dyna NAMI "/compat/linux/dev/tty"
1948 linux_getdents_dyna NAMI "/dev/tty"
1948 linux_getdents_dyna RET linux_open 6
1948 linux_getdents_dyna CALL writev(0x6,0xbfbfe5b0,0x7)
1948 linux_getdents_dyna GIO fd 6 wrote 99 bytes
"*** glibc detected *** ./linux_getdents_dynamic: double free or corrup\
tion (!prev): 0x0804a008 ***
"
1948 linux_getdents_dyna RET writev 99/0x63
1948 linux_getdents_dyna CALL linux_open(0x28060d49,0,0)
1948 linux_getdents_dyna NAMI "/compat/linux/etc/ld.so.cache"
1948 linux_getdents_dyna NAMI "/compat/linux"
...
/Vladimir Ermakov
More information about the freebsd-emulation
mailing list