kern/117010
sam
samflanker at gmail.com
Mon Dec 10 08:40:02 PST 2007
sam wrote:
> Iam repacked http://cs.udmvt.ru/files/temp/linux_getdents.tar.bz2
>
> # tar -tf linux_getdents.tar.bz2
> linux_getdents_static
> linux_getdents_dynamic
> linux_getdents.c
>
> try both versions (static & dynamic)
>
>
example of kdump (starting program linux_getdents_static on FreeBSD
8.0-CURRENT/linux_base-fc6)
=============start_kdump==============
64099 linux_getdents RET write 22/0x16
64099 linux_getdents CALL write(0x1,0x280c3000,0x16)
64099 linux_getdents GIO fd 1 wrote 22 bytes
"grenade_hit2.wav.ztmp
"
64099 linux_getdents RET write 22/0x16
64099 linux_getdents CALL write(0x1,0x280c3000,0x16)
64099 linux_getdents GIO fd 1 wrote 22 bytes
"grenade_hit3.wav.ztmp
"
64099 linux_getdents RET write 22/0x16
64099 linux_getdents CALL linux_getdents(0x4,0x80c76a4,0x1000)
64099 linux_getdents RET linux_getdents 0
64099 linux_getdents CALL write(0x1,0x280c3000,0x1)
64099 linux_getdents GIO fd 1 wrote 1 byte
"
"
64099 linux_getdents RET write 1
64099 linux_getdents CALL write(0x1,0x280c3000,0xb)
64099 linux_getdents GIO fd 1 wrote 11 bytes
"Closing...
"
64099 linux_getdents RET write 11/0xb
64099 linux_getdents CALL linux_open(0x80a7567,0x902,0)
64099 linux_getdents NAMI "/compat/linux/dev/tty"
64099 linux_getdents NAMI "/dev/tty"
64099 linux_getdents RET linux_open 6
64099 linux_getdents CALL writev(0x6,0xbfbfe3e0,0x7)
64099 linux_getdents GIO fd 6 wrote 91 bytes
"*** glibc detected *** ./linux_getdents: double free or
corruption (!prev): 0x080c7688 ***
"
64099 linux_getdents RET writev 91/0x5b
64099 linux_getdents CALL linux_mmap2(0,0x200000,0,0x4022,0xffffffff,0)
64099 linux_getdents RET linux_mmap2 671891456/0x280c4000
64099 linux_getdents CALL munmap(0x280c4000,0x3c000)
64099 linux_getdents RET munmap 0
64099 linux_getdents CALL munmap(0x28200000,0xc4000)
64099 linux_getdents RET munmap 0
64099 linux_getdents CALL linux_mprotect(0x28100000,0x21000,0x3)
64099 linux_getdents RET linux_mprotect 0
64099 linux_getdents CALL write(0x6,0x80a7570,0x1d)
64099 linux_getdents GIO fd 6 wrote 29 bytes
"======= Backtrace: =========
"
64099 linux_getdents RET write 29/0x1d
64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3)
64099 linux_getdents GIO fd 6 wrote 12 bytes
"[0x80515fe]
"
64099 linux_getdents RET writev 12/0xc
64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3)
64099 linux_getdents GIO fd 6 wrote 12 bytes
"[0x8054cdb]
"
64099 linux_getdents RET writev 12/0xc
64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3)
64099 linux_getdents GIO fd 6 wrote 12 bytes
"[0x80564b8]
"
64099 linux_getdents RET writev 12/0xc
64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3)
64099 linux_getdents GIO fd 6 wrote 12 bytes
"[0x804828b]
"
64099 linux_getdents RET writev 12/0xc
64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3)
64099 linux_getdents GIO fd 6 wrote 12 bytes
"[0x80484ab]
"
64099 linux_getdents RET writev 12/0xc
64099 linux_getdents CALL writev(0x6,0xbfbfe358,0x3)
64099 linux_getdents GIO fd 6 wrote 12 bytes
"[0x8048151]
"
64099 linux_getdents RET writev 12/0xc
64099 linux_getdents CALL write(0x6,0x80a758e,0x1d)
64099 linux_getdents GIO fd 6 wrote 29 bytes
"======= Memory map: ========
"
64099 linux_getdents RET write 29/0x1d
64099 linux_getdents CALL linux_open(0x80a75ac,0,0x1d)
64099 linux_getdents NAMI "/compat/linux/proc/self/maps"
64099 linux_getdents NAMI "/compat/linux"
64099 linux_getdents NAMI "/compat/linux/proc/self/maps"
64099 linux_getdents RET linux_open 8
64099 linux_getdents CALL read(0x8,0xbfbfe4f4,0x400)
64099 linux_getdents GIO fd 8 read 326 bytes
"08048000-080c3000 r-xp 0008d000 00:00 2143242
/usr/home/temp/linux_getdents
080c3000-080c6000 rw-p 00025000 00:00 0
080c6000-080e8000 rwxp 00025000 00:00 0
280c3000-280c4000 rwxp 0013d000 00:00 0
28100000-28121000 rwxp 0013d000 00:00 0
28121000-28200000 ---p 0013d000 00:00 0
bfbe0000-bfc00000 rwxp 00020000 00:00 0
"
64099 linux_getdents RET read 326/0x146
64099 linux_getdents CALL write(0x6,0xbfbfe4f4,0x146)
64099 linux_getdents GIO fd 6 wrote 326 bytes
"08048000-080c3000 r-xp 0008d000 00:00 2143242
/usr/home/temp/linux_getdents
080c3000-080c6000 rw-p 00025000 00:00 0
080c6000-080e8000 rwxp 00025000 00:00 0
280c3000-280c4000 rwxp 0013d000 00:00 0
28100000-28121000 rwxp 0013d000 00:00 0
28121000-28200000 ---p 0013d000 00:00 0
bfbe0000-bfc00000 rwxp 00020000 00:00 0
"
64099 linux_getdents RET write 326/0x146
64099 linux_getdents CALL read(0x8,0xbfbfe4f4,0x400)
64099 linux_getdents GIO fd 8 read 0 bytes
""
64099 linux_getdents RET read 0
64099 linux_getdents CALL close(0x8)
64099 linux_getdents RET close 0
64099 linux_getdents CALL linux_rt_sigprocmask(0x1,0xbfbfe344,0,0x8)
64099 linux_getdents RET linux_rt_sigprocmask 0
64099 linux_getdents CALL linux_gettid
64099 linux_getdents RET linux_gettid 64099/0xfa63
64099 linux_getdents CALL linux_tgkill(0xfa63,0xfa63,0x6)
64099 linux_getdents RET linux_tgkill 0
64099 linux_getdents PSIG SIGIOT SIG_DFL
64099 linux_getdents NAMI "linux_getdents.core"
=============end_kdump==============
/Vladimir Ermakov
More information about the freebsd-emulation
mailing list