Package: debtags
Version: 1.7.2+b1
Severity: normal

Hello,

/var/lib/dpkg/info/debtags.postinst fails because
debtags update --local triggers:
Program received signal SIGABRT, Aborted.
0x0fd26850 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x0fd26850 in raise () from /lib/libc.so.6
#1  0x0fd28354 in abort () from /lib/libc.so.6
#2  0x0fd65274 in __libc_message () from /lib/libc.so.6
#3  0x0fd6d184 in malloc_printerr () from /lib/libc.so.6
#4  0x0fd6d2b8 in malloc_consolidate () from /lib/libc.so.6
#5  0x0fd6f874 in _int_malloc () from /lib/libc.so.6
#6  0x0fd71ad4 in malloc () from /lib/libc.so.6
#7  0x0ea75a2c in operator new () from /usr/lib/libstdc++.so.6
#8  0x0ea75bb4 in operator new[] () from /usr/lib/libstdc++.so.6
#9  0x0fbd1080 in pkgPolicy::pkgPolicy () from 
/usr/lib/libapt-pkg-libc6.5-6.so.4.4
#10 0x0fc833ac in ept::apt::AptImplementation::AptImplementation () from 
/usr/lib/libept.so.0
#11 0x0fc7f6ac in ept::apt::Apt::Apt () from /usr/lib/libept.so.0
#12 0x100092f0 in ?? ()
#13 0x10015cdc in ?? ()
#14 0x0fd0ed60 in generic_start_main () from /lib/libc.so.6
#15 0x0fd0efb8 in __libc_start_main () from /lib/libc.so.6
#16 0x00000000 in ?? ()

I'm attaching valgrind output

-- System Information:
Debian Release: sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.21.3-ben
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debtags depends on:
ii  apt [libapt-pkg-libc6.5 0.7.3            Advanced front-end for dpkg
ii  libc6                   2.5-11           GNU C Library: Shared libraries
ii  libept0                 0.5.7            High-level library for managing De
ii  libgcc1                 1:4.2-20070609-1 GCC support library
ii  libstdc++6              4.2-20070609-1   The GNU Standard C++ Library v3
ii  libxapian15             1.0.1-1          Search engine library
ii  perl                    5.8.8-7          Larry Wall's Practical Extraction 
ii  zlib1g                  1:1.2.3.3.dfsg-3 compression library - runtime

debtags recommends no packages.

-- no debconf information
[00:41:17][pts/9][~][#2] 
[EMAIL PROTECTED] >>> sudo debtags update --local
*** glibc detected *** debtags: corrupted double-linked list: 0x10071998 ***
======= Backtrace: =========
/lib/libc.so.6[0xfd6d184]
/lib/libc.so.6[0xfd6d2b8]
/lib/libc.so.6[0xfd6f874]
/lib/libc.so.6(__libc_malloc+0xd4)[0xfd71ad4]
/usr/lib/libstdc++.so.6(_Znwj+0x3c)[0xea75a2c]
/usr/lib/libstdc++.so.6(_Znaj+0x24)[0xea75bb4]
/usr/lib/libapt-pkg-libc6.5-6.so.4.4(_ZN9pkgPolicyC1EP8pkgCache+0xb0)[0xfbd1080]
/usr/lib/libept.so.0(_ZN3ept3apt17AptImplementationC1Ev+0x11c)[0xfc833ac]
/usr/lib/libept.so.0(_ZN3ept3apt3AptC1Ev+0x3c)[0xfc7f6ac]
debtags[0x100092f0]
debtags[0x10015cdc]
/lib/libc.so.6[0xfd0ed60]
/lib/libc.so.6[0xfd0efb8]
======= Memory map: ========
00100000-00103000 r-xp 00100000 00:00 0          [vdso]
0e90f000-0e91a000 r-xp 00000000 03:03 386927     /lib/libnss_files-2.5.so
0e91a000-0e929000 ---p 0000b000 03:03 386927     /lib/libnss_files-2.5.so
0e929000-0e92a000 r--p 0000a000 03:03 386927     /lib/libnss_files-2.5.so
0e92a000-0e92b000 rw-p 0000b000 03:03 386927     /lib/libnss_files-2.5.so
0e93b000-0e946000 r-xp 00000000 03:03 386946     /lib/libnss_nis-2.5.so
0e946000-0e955000 ---p 0000b000 03:03 386946     /lib/libnss_nis-2.5.so
0e955000-0e956000 r--p 0000a000 03:03 386946     /lib/libnss_nis-2.5.so
0e956000-0e957000 rw-p 0000b000 03:03 386946     /lib/libnss_nis-2.5.so
0e967000-0e96f000 r-xp 00000000 03:03 370250     /lib/libnss_compat-2.5.so
0e96f000-0e97e000 ---p 00008000 03:03 370250     /lib/libnss_compat-2.5.so
0e97e000-0e97f000 r--p 00007000 03:03 370250     /lib/libnss_compat-2.5.so
0e97f000-0e980000 rw-p 00008000 03:03 370250     /lib/libnss_compat-2.5.so
0e990000-0eaa9000 r-xp 00000000 03:03 2050930    /usr/lib/libstdc++.so.6.0.9
0eaa9000-0eab9000 ---p 00119000 03:03 2050930    /usr/lib/libstdc++.so.6.0.9
0eab9000-0eabc000 r--p 00119000 03:03 2050930    /usr/lib/libstdc++.so.6.0.9
0eabc000-0eabf000 rw-p 0011c000 03:03 2050930    /usr/lib/libstdc++.so.6.0.9
0eabf000-0eac4000 rw-p 0eabf000 00:00 0 
0ec40000-0ec55000 r-xp 00000000 03:03 344281     /lib/libgcc_s.so.1
0ec55000-0ec64000 ---p 00015000 03:03 344281     /lib/libgcc_s.so.1
0ec64000-0ec65000 rw-p 00014000 03:03 344281     /lib/libgcc_s.so.1
0fa10000-0fa26000 r-xp 00000000 03:03 2050849    /lib/libnsl-2.5.so
0fa26000-0fa35000 ---p 00016000 03:03 2050849    /lib/libnsl-2.5.so
0fa35000-0fa36000 r--p 00015000 03:03 2050849    /lib/libnsl-2.5.so
0fa36000-0fa37000 rw-p 00016000 03:03 2050849    /lib/libnsl-2.5.so
0fa37000-0fa39000 rw-p 0fa37000 00:00 0 
0fb69000-0fc3d000 r-xp 00000000 03:03 1711260    
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0
0fc3d000-0fc4c000 ---p 000d4000 03:03 1711260    
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0
0fc4c000-0fc50000 rw-p 000d3000 03:03 1711260    
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0
0fc60000-0fcd4000 r-xp 00000000 03:03 512250     /usr/lib/libept.so.0.5.7
0fcd4000-0fce4000 ---p 00074000 03:03 512250     /usr/lib/libept.so.0.5.7
0fce4000-0fce6000 rw-p 00074000 03:03 512250     /usr/lib/libept.so.0.5.7
0fcf0000-0fe41000 r-xp 00000000 03:03 730399     /lib/libc-2.5.so
0fe41000-0fe50000 ---p 00151000 03:03 730399     /lib/libc-2.5.so
0fe50000-0fe51000 r--p 00150000 03:03 730399     /lib/libc-2.5.so
0fe51000-0fe55000 rw-p 00151000 03:03 730399     /lib/libc-2.5.so
0fe55000-0fe58000 rw-p 0fe55000 00:00 0 
0fe80000-0fe96000 r-xp 00000000 03:03 2297660    /usr/lib/libz.so.1.2.3.3
0fe96000-0fea5000 ---p 00016000 03:03 2297660    /usr/lib/libz.so.1.2.3.3
0fea5000-0fea6000 rw-p 00015000 03:03 2297660    /usr/lib/libz.so.1.2.3.3
0fee0000-0ff87000 r-xp 00000000 03:03 1221091    /lib/libm-2.5.so
0ff87000-0ff97000 ---p 000a7000 03:03 1221091    /lib/libm-2.5.so
0ff97000-0ff9b000 r--p 000a7000 03:03 1221091    /lib/libm-2.5.so
0ff9b000-0ff9c000 rw-p 000ab000 03:03 1221091    /lib/libm-2.5.so
0ffc0000-0ffde000 r-xp 00000000 03:03 35956      /lib/ld-2.5.so
0ffee000-0fff0000 rw-p 0001e000 03:03 35956      /lib/ld-2.5.so
10000000-1005a000 r-xp 00000000 03:03 155358     /usr/bin/debtags
1006a000-1006b000 rw-p 0005a000 03:03 155358     /usr/bin/debtags
1006b000-1008c000 rwxp 1006b000 00:00 0          [heap]
30000000-30001000 rw-p 30000000 00:00 0 
30017000-30018000 rw-p 30017000 00:00 0 
30018000-30199000 r-xp 00000000 03:03 307201     /usr/lib/libxapian.so.15.0.0
30199000-301a8000 ---p 00181000 03:03 307201     /usr/lib/libxapian.so.15.0.0
301a8000-301b7000 rw-p 00180000 03:03 307201     /usr/lib/libxapian.so.15.0.0
301b7000-301b9000 rw-p 301b7000 00:00 0 
301b9000-30a69000 r--s 00000000 03:03 9499       /var/cache/apt/pkgcache.bin
7fdb2000-7fdc7000 rw-p 7fdb2000 00:00 0          [stack]
Abandon

[00:41:33][pts/9][~][#3] ? 134
[EMAIL PROTECTED] >>> sudo valgrind debtags update --local
==25275== Memcheck, a memory error detector.
==25275== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==25275== Using LibVEX rev 1732, a library for dynamic binary translation.
==25275== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==25275== Using valgrind-3.2.3-Debian, a dynamic binary instrumentation 
framework.
==25275== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==25275== For more details, rerun with: -v
==25275== 
==25275== Invalid write of size 4
==25275==    at 0xFBA5248: pkgCache::ReMap() (in 
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0)
==25275==    by 0xFBA5550: pkgCache::pkgCache(MMap*, bool) (in 
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0)
==25275==    by 0xFC83390: ept::apt::AptImplementation::AptImplementation() (in 
/usr/lib/libept.so.0.5.7)
==25275==    by 0xFC7F6A8: ept::apt::Apt::Apt() (in /usr/lib/libept.so.0.5.7)
==25275==    by 0x100092EC: (within /usr/bin/debtags)
==25275==    by 0x10015CD8: (within /usr/bin/debtags)
==25275==    by 0xEAE6D5C: (below main) (libc-start.c:231)
==25275==  Address 0x41E961C is 0 bytes after a block of size 52 alloc'd
==25275==    at 0xFF7B6BC: operator new(unsigned) (vg_replace_malloc.c:163)
==25275==    by 0xFC83380: ept::apt::AptImplementation::AptImplementation() (in 
/usr/lib/libept.so.0.5.7)
==25275==    by 0xFC7F6A8: ept::apt::Apt::Apt() (in /usr/lib/libept.so.0.5.7)
==25275==    by 0x100092EC: (within /usr/bin/debtags)
==25275==    by 0x10015CD8: (within /usr/bin/debtags)
==25275==    by 0xEAE6D5C: (below main) (libc-start.c:231)
==25275== 
==25275== Invalid read of size 4
==25275==    at 0xFBA5374: pkgCache::ReMap() (in 
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0)
==25275==    by 0xFBA5550: pkgCache::pkgCache(MMap*, bool) (in 
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0)
==25275==    by 0xFC83390: ept::apt::AptImplementation::AptImplementation() (in 
/usr/lib/libept.so.0.5.7)
==25275==    by 0xFC7F6A8: ept::apt::Apt::Apt() (in /usr/lib/libept.so.0.5.7)
==25275==    by 0x100092EC: (within /usr/bin/debtags)
==25275==    by 0x10015CD8: (within /usr/bin/debtags)
==25275==    by 0xEAE6D5C: (below main) (libc-start.c:231)
==25275==  Address 0x41E961C is 0 bytes after a block of size 52 alloc'd
==25275==    at 0xFF7B6BC: operator new(unsigned) (vg_replace_malloc.c:163)
==25275==    by 0xFC83380: ept::apt::AptImplementation::AptImplementation() (in 
/usr/lib/libept.so.0.5.7)
==25275==    by 0xFC7F6A8: ept::apt::Apt::Apt() (in /usr/lib/libept.so.0.5.7)
==25275==    by 0x100092EC: (within /usr/bin/debtags)
==25275==    by 0x10015CD8: (within /usr/bin/debtags)
==25275==    by 0xEAE6D5C: (below main) (libc-start.c:231)
==25275== 
==25275== Invalid write of size 4
==25275==    at 0xFBA5384: pkgCache::ReMap() (in 
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0)
==25275==    by 0xFBA5550: pkgCache::pkgCache(MMap*, bool) (in 
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0)
==25275==    by 0xFC83390: ept::apt::AptImplementation::AptImplementation() (in 
/usr/lib/libept.so.0.5.7)
==25275==    by 0xFC7F6A8: ept::apt::Apt::Apt() (in /usr/lib/libept.so.0.5.7)
==25275==    by 0x100092EC: (within /usr/bin/debtags)
==25275==    by 0x10015CD8: (within /usr/bin/debtags)
==25275==    by 0xEAE6D5C: (below main) (libc-start.c:231)
==25275==  Address 0x41E9620 is 4 bytes after a block of size 52 alloc'd
==25275==    at 0xFF7B6BC: operator new(unsigned) (vg_replace_malloc.c:163)
==25275==    by 0xFC83380: ept::apt::AptImplementation::AptImplementation() (in 
/usr/lib/libept.so.0.5.7)
==25275==    by 0xFC7F6A8: ept::apt::Apt::Apt() (in /usr/lib/libept.so.0.5.7)
==25275==    by 0x100092EC: (within /usr/bin/debtags)
==25275==    by 0x10015CD8: (within /usr/bin/debtags)
==25275==    by 0xEAE6D5C: (below main) (libc-start.c:231)
==25275== 
==25275== Invalid read of size 4
==25275==    at 0xFBA5420: pkgCache::ReMap() (in 
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0)
==25275==    by 0xFBA5550: pkgCache::pkgCache(MMap*, bool) (in 
/usr/lib/libapt-pkg-libc6.5-6.so.4.4.0)
==25275==    by 0xFC83390: ept::apt::AptImplementation::AptImplementation() (in 
/usr/lib/libept.so.0.5.7)
==25275==    by 0xFC7F6A8: ept::apt::Apt::Apt() (in /usr/lib/libept.so.0.5.7)
==25275==    by 0x100092EC: (within /usr/bin/debtags)
==25275==    by 0x10015CD8: (within /usr/bin/debtags)
==25275==    by 0xEAE6D5C: (below main) (libc-start.c:231)
==25275==  Address 0x41E961C is 0 bytes after a block of size 52 alloc'd
==25275==    at 0xFF7B6BC: operator new(unsigned) (vg_replace_malloc.c:163)
==25275==    by 0xFC83380: ept::apt::AptImplementation::AptImplementation() (in 
/usr/lib/libept.so.0.5.7)
==25275==    by 0xFC7F6A8: ept::apt::Apt::Apt() (in /usr/lib/libept.so.0.5.7)
==25275==    by 0x100092EC: (within /usr/bin/debtags)
==25275==    by 0x10015CD8: (within /usr/bin/debtags)
==25275==    by 0xEAE6D5C: (below main) (libc-start.c:231)
==25275== 
==25275== Syscall param write(buf) points to uninitialised byte(s)
==25275==    at 0xEB976A8: __write_nocancel (in /usr/lib/debug/libc-2.5.so)
==25275==    by 0xFCB395C: 
tagcoll::diskindex::MasterMMapIndexer::append(tagcoll::diskindex::MMapIndexer 
const&) (in /usr/lib/libept.so.0.5.7)
==25275==    by 0xFC8EBD0: ept::debtags::VocabularyIndexer::rebuildIfNeeded() 
(in /usr/lib/libept.so.0.5.7)
==25275==    by 0xFC8EE04: 
ept::debtags::VocabularyIndexer::obtainWorkingVocabulary(std::string&, 
std::string&) (in /usr/lib/libept.so.0.5.7)
==25275==    by 0xFC99544: ept::debtags::Vocabulary::Vocabulary() (in 
/usr/lib/libept.so.0.5.7)
==25275==    by 0xFC9BFD8: ept::debtags::Debtags::Debtags(bool) (in 
/usr/lib/libept.so.0.5.7)
==25275==    by 0x10009304: (within /usr/bin/debtags)
==25275==    by 0x10015CD8: (within /usr/bin/debtags)
==25275==    by 0xEAE6D5C: (below main) (libc-start.c:231)
==25275==  Address 0x7E817622 is on thread 1's stack
==25275== 
==25275== ERROR SUMMARY: 6 errors from 5 contexts (suppressed: 1 from 1)
==25275== malloc/free: in use at exit: 323,851 bytes in 182 blocks.
==25275== malloc/free: 2,229,591 allocs, 2,229,409 frees, 46,739,687 bytes 
allocated.
==25275== For counts of detected errors, rerun with: -v
==25275== searching for pointers to 182 not-freed blocks.
==25275== checked 410,664 bytes.
==25275== 
==25275== LEAK SUMMARY:
==25275==    definitely lost: 156 bytes in 11 blocks.
==25275==      possibly lost: 321,929 bytes in 93 blocks.
==25275==    still reachable: 1,766 bytes in 78 blocks.
==25275==         suppressed: 0 bytes in 0 blocks.
==25275== Rerun with --leak-check=full to see details of leaked memory.


Reply via email to