On Thu, Jan 03, 2008 at 10:30:29PM +0530, Y Giridhar Appaji Nag wrote:
> Package: ltrace
> Version: 0.5-3
> Severity: important
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I am able to reproduce this consistently.
> 
> I have "elinks yahoo.com" running with pid 5292 and I do
> 
> $ ltrace -f -o foo.txt -p 5292
> 
> Then I go to elinks, press CTRL+H and come back to ltrace and kill it with a
> CTRL+C.  This crashes ltrace with the following output
> 
> *** glibc detected *** ltrace: double free or corruption (!prev): 0x08061008 
> ***

Among my first activities getting started contributing to debian
was to look at this bug.

Looks like this is from a file being close()d twice: once in the signal
handler and then during exit.  As it turns out, this seems to have been
recently fixed [1] so this bug can be marked "pending" I guess.

[1] 
http://git.debian.org/?p=collab-maint/ltrace.git;a=commit;h=375ef8e667be88645f6af6bb099f04471c7f53cd

> ======= Backtrace: =========
> /lib/i686/cmov/libc.so.6[0x400ae735]
> /lib/i686/cmov/libc.so.6(cfree+0x90)[0x400b21a0]
> /lib/i686/cmov/libc.so.6(fclose+0x134)[0x4009d054]
> ltrace[0x804a4ad]
> /lib/i686/cmov/libc.so.6(exit+0xd4)[0x40070eb4]
> ltrace[0x804d059]
> ltrace[0x804a237]
> /lib/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0x40059450]
> ltrace[0x8049871]
> ======= Memory map: ========
> 08048000-0805f000 r-xp 00000000 08:07 134295     /usr/bin/ltrace
> 0805f000-08060000 rw-p 00017000 08:07 134295     /usr/bin/ltrace
> 08060000-08082000 rw-p 08060000 00:00 0          [heap]
> 40000000-4001c000 r-xp 00000000 08:07 469629     /lib/ld-2.7.so
> 4001c000-4001e000 rw-p 0001b000 08:07 469629     /lib/ld-2.7.so
> 4001e000-40020000 rw-p 4001e000 00:00 0 
> 4002e000-40042000 r-xp 00000000 08:07 231738     /usr/lib/libelf.so.0.8.6
> 40042000-40043000 rw-p 00013000 08:07 231738     /usr/lib/libelf.so.0.8.6
> 40043000-4018a000 r-xp 00000000 08:07 724        /lib/i686/cmov/libc-2.7.so
> 4018a000-4018b000 r--p 00147000 08:07 724        /lib/i686/cmov/libc-2.7.so
> 4018b000-4018d000 rw-p 00148000 08:07 724        /lib/i686/cmov/libc-2.7.so
> 4018d000-40191000 rw-p 4018d000 00:00 0 
> 40191000-4019b000 r-xp 00000000 08:07 470998     /lib/libgcc_s.so.1
> 4019b000-4019c000 rw-p 00009000 08:07 470998     /lib/libgcc_s.so.1
> 40200000-40221000 rw-p 40200000 00:00 0 
> 40221000-40300000 ---p 40221000 00:00 0 
> bfa8d000-bfaa3000 rw-p bfa8d000 00:00 0          [stack]
> ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
> [1]    5309 abort (core dumped)  ltrace -f -o foo.txt -p 5292
> [loktak ~]Om:-} vi foo1.txt 
> 
> Giridhar
> 
> - --
> Y Giridhar Appaji Nag | http://www.appaji.net/
> 
> - -- System Information:
> Debian Release: lenny/sid
>   APT prefers unstable
>   APT policy: (800, 'unstable'), (700, 'experimental')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages ltrace depends on:
> ii  libc6                         2.7-5      GNU C Library: Shared libraries
> ii  libelfg0                      0.8.6-4    an ELF object file access library
> 
> ltrace recommends no packages.
> 
> - -- no debconf information
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> 
> iD8DBQFHfRSt4eu+pR04mIcRAmaqAKDjgejyihqvpKflsfJUaX5VDuEoXQCfexXQ
> mNbJJQYfk52KWE0/BAQDZUw=
> =GWIw
> -----END PGP SIGNATURE-----
> 
> 
> 



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