Your message dated Sat, 25 Jul 2009 00:02:03 +0000
with message-id <[email protected]>
and subject line Bug#536243: fixed in psmisc 22.8-1
has caused the Debian Bug report #536243,
regarding /usr/bin/pstree: pstree -a segfaults with certain terminal widths
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
536243: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=536243
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: psmisc
Version: 22.7-1
Severity: important
File: /usr/bin/pstree


┌─(16:17)────
└[laphroaig] echo $COLUMNS
135
┌─(16:17)────
└[laphroaig] pstree -a
*** glibc detected *** pstree: double free or corruption (!prev): 
0x000000000131d170 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f676a3246a8]
/lib/libc.so.6(cfree+0x76)[0x7f676a3261b6]
/lib/libc.so.6(closedir+0xd)[0x7f676a34c8ad]
pstree[0x402ab8]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f676a2d15a6]
pstree[0x4015d9]
======= Memory map: ========
00400000-00404000 r-xp 00000000 fe:01 50781646                           
/usr/bin/pstree
00604000-00605000 rw-p 00004000 fe:01 50781646                           
/usr/bin/pstree
0131c000-0133d000 rw-p 00000000 00:00 0                                  [heap]
7f6760000000-7f6760021000 rw-p 00000000 00:00 0 
7f6760021000-7f6764000000 ---p 00000000 00:00 0 
7f67649ca000-7f67649e4000 r-xp 00000000 fe:01 50332703                   
/lib/libgcc_s.so.1
7f67649e4000-7f6764be3000 ---p 0001a000 fe:01 50332703                   
/lib/libgcc_s.so.1
7f6764be3000-7f6764be4000 rw-p 00019000 fe:01 50332703                   
/lib/libgcc_s.so.1
7f6764be4000-7f676a0af000 r--p 00000000 fe:01 19101123                   
/usr/lib/locale/locale-archive
7f676a0af000-7f676a0b1000 r-xp 00000000 fe:01 50389783                   
/lib/libdl-2.9.so
7f676a0b1000-7f676a2b1000 ---p 00002000 fe:01 50389783                   
/lib/libdl-2.9.so
7f676a2b1000-7f676a2b2000 r--p 00002000 fe:01 50389783                   
/lib/libdl-2.9.so
7f676a2b2000-7f676a2b3000 rw-p 00003000 fe:01 50389783                   
/lib/libdl-2.9.so
7f676a2b3000-7f676a3fa000 r-xp 00000000 fe:01 50371265                   
/lib/libc-2.9.so
7f676a3fa000-7f676a5fa000 ---p 00147000 fe:01 50371265                   
/lib/libc-2.9.so
7f676a5fa000-7f676a5fe000 r--p 00147000 fe:01 50371265                   
/lib/libc-2.9.so
7f676a5fe000-7f676a5ff000 rw-p 0014b000 fe:01 50371265                   
/lib/libc-2.9.so
7f676a5ff000-7f676a604000 rw-p 00000000 00:00 0 
7f676a604000-7f676a63f000 r-xp 00000000 fe:01 50332583                   
/lib/libncurses.so.5.7
7f676a63f000-7f676a83e000 ---p 0003b000 fe:01 50332583                   
/lib/libncurses.so.5.7
7f676a83e000-7f676a843000 rw-p 0003a000 fe:01 50332583                   
/lib/libncurses.so.5.7
7f676a843000-7f676a860000 r-xp 00000000 fe:01 50488218                   
/lib/ld-2.9.so
7f676aa46000-7f676aa48000 rw-p 00000000 00:00 0 
7f676aa5c000-7f676aa5f000 rw-p 00000000 00:00 0 
7f676aa5f000-7f676aa60000 r--p 0001c000 fe:01 50488218                   
/lib/ld-2.9.so
7f676aa60000-7f676aa61000 rw-p 0001d000 fe:01 50488218                   
/lib/ld-2.9.so
7fff35d1e000-7fff35d34000 rw-p 00000000 00:00 0                          [stack]
7fff35dfd000-7fff35dfe000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  
[vsyscall]
[1]    6817 abort      pstree -a

This doesn't happen with other terminal widths though. It doesn't crash with
valgrind and reports instead something that sounds like the problem (the
invalid write, especially since the block size - 136 - is the width of the term
+ 1):

┌─(16:17)────
└[laphroaig] valgrind pstree -a
==6825== Memcheck, a memory error detector.
==6825== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==6825== Using LibVEX rev 1884, a library for dynamic binary translation.
==6825== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==6825== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation 
framework.
==6825== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==6825== For more details, rerun with: -v
==6825== 
==6825== Invalid write of size 1
==6825==    at 0x402F5C: (within /usr/bin/pstree)
==6825==    by 0x50845A5: (below main) (in /lib/libc-2.9.so)
==6825==  Address 0x55bc558 is 0 bytes after a block of size 136 alloc'd
==6825==    at 0x4C2391E: malloc (vg_replace_malloc.c:207)
==6825==    by 0x402C11: (within /usr/bin/pstree)
==6825==    by 0x50845A5: (below main) (in /lib/libc-2.9.so)
==6825== 
==6825== Invalid read of size 1
==6825==    at 0x4C24570: memcpy (mc_replace_strmem.c:402)
==6825==    by 0x401AC2: (within /usr/bin/pstree)
==6825==    by 0x402F82: (within /usr/bin/pstree)
==6825==    by 0x50845A5: (below main) (in /lib/libc-2.9.so)
==6825==  Address 0x55bc558 is 0 bytes after a block of size 136 alloc'd
==6825==    at 0x4C2391E: malloc (vg_replace_malloc.c:207)
==6825==    by 0x402C11: (within /usr/bin/pstree)
==6825==    by 0x50845A5: (below main) (in /lib/libc-2.9.so)
==6825== 
==6825== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 8 from 1)
==6825== malloc/free: in use at exit: 27,127 bytes in 707 blocks.
==6825== malloc/free: 1,714 allocs, 1,007 frees, 360,885 bytes allocated.
==6825== For counts of detected errors, rerun with: -v
==6825== searching for pointers to 707 not-freed blocks.
==6825== checked 126,112 bytes.
==6825== 
==6825== LEAK SUMMARY:
==6825==    definitely lost: 0 bytes in 0 blocks.
==6825==      possibly lost: 0 bytes in 0 blocks.
==6825==    still reachable: 27,127 bytes in 707 blocks.
==6825==         suppressed: 0 bytes in 0 blocks.
==6825== Rerun with --leak-check=full to see details of leaked memory.

If that helps, my env is:
$ locale
LANG=C
LANGUAGE=
LC_CTYPE=fr_FR.utf8
LC_NUMERIC=fr_FR.utf8
LC_TIME=fr_FR.utf8
LC_COLLATE=C
LC_MONETARY=fr_FR.utf8
LC_MESSAGES=C
LC_PAPER=fr_FR.utf8
LC_NAME=fr_FR.utf8
LC_ADDRESS=fr_FR.utf8
LC_TELEPHONE=fr_FR.utf8
LC_MEASUREMENT=fr_FR.utf8
LC_IDENTIFICATION=fr_FR.utf8
LC_ALL=



--- End Message ---
--- Begin Message ---
Source: psmisc
Source-Version: 22.8-1

We believe that the bug you reported is fixed in the latest version of
psmisc, which is due to be installed in the Debian FTP archive:

psmisc_22.8-1.diff.gz
  to pool/main/p/psmisc/psmisc_22.8-1.diff.gz
psmisc_22.8-1.dsc
  to pool/main/p/psmisc/psmisc_22.8-1.dsc
psmisc_22.8-1_i386.deb
  to pool/main/p/psmisc/psmisc_22.8-1_i386.deb
psmisc_22.8.orig.tar.gz
  to pool/main/p/psmisc/psmisc_22.8.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Craig Small <[email protected]> (supplier of updated psmisc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 25 Jul 2009 09:40:01 +1000
Source: psmisc
Binary: psmisc
Architecture: source i386
Version: 22.8-1
Distribution: unstable
Urgency: low
Maintainer: Craig Small <[email protected]>
Changed-By: Craig Small <[email protected]>
Description: 
 psmisc     - utilities that use the proc file system
Closes: 356655 517412 536243
Changes: 
 psmisc (22.8-1) unstable; urgency=low
 .
   * New upstream release
    - fuser will print mounts,nfs exports and swaps with -v Closes: #356655
    - pstree and fuser have long options Closes: #517412
    - Fixed pstree -a off-by-one error in buffer, Closes: #536243
Checksums-Sha1: 
 7296b022d6072975bf3be55f3d1f166b7ad30b0c 941 psmisc_22.8-1.dsc
 bce327dc1dad257a67c2fbe9ca7bf227d6d52a51 310358 psmisc_22.8.orig.tar.gz
 83de2413649e9c3b9f2c6e340c4cc6669561ac13 5574 psmisc_22.8-1.diff.gz
 c2c6891e70b7df23a1031f402248e0086b8a7ac0 87794 psmisc_22.8-1_i386.deb
Checksums-Sha256: 
 57366b90aa7c039ec4d5c9080876137598d36d4576ef1083dcc35b072b0bc471 941 
psmisc_22.8-1.dsc
 db304ec5349564acc484d84df283466c37ff6938c420d928db1d199121097e8c 310358 
psmisc_22.8.orig.tar.gz
 f39480fae3b68a2d548155b83aa2e5ceef6ebcb8a8527e296794cb9d1a811f00 5574 
psmisc_22.8-1.diff.gz
 af831fc0829db589e506fa144e0023fce1771dcb97cd91cf7ea6d75e4eee60e4 87794 
psmisc_22.8-1_i386.deb
Files: 
 b1fb662b982df43d5e78eee6de59959e 941 admin optional psmisc_22.8-1.dsc
 32c493bb484ce605a1cabba1aa084bca 310358 admin optional psmisc_22.8.orig.tar.gz
 d9c5a891cbdc4d48006cfc3a05f96043 5574 admin optional psmisc_22.8-1.diff.gz
 d937c75787f177e12305603f3215f619 87794 admin optional psmisc_22.8-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKaknGx2zlrBLK36URAoEfAJ0VdzrU4U0iwponOK2uZu6qY3dBjgCghfLU
eNAsi0/TmyZ4Y5CV8dqcps4=
=6dY+
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to