[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#335102: apt-cache search segfaults



Package: apt
Version: 0.6.42
Severity: important

apt-cache search <anything> segfaults.  Other apt-cache commands seem to be ok.
0.6.41 doesn't exhibit this problem.

dannf@krebs:/space/debian/apt-0.6.42$ LD_LIBRARY_PATH=/usr/lib/debug gdb ./build/bin/apt-cache core
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "ia64-linux"...Using host libthread_db library "/usr/lib/debug/libthread_db.so.1".

Core was generated by `./build/bin/apt-cache search foo'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /usr/lib/libapt-pkg-libc6.3-6.so.3.10...done.
Loaded symbols for /usr/lib/libapt-pkg-libc6.3-6.so.3.10
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /usr/lib/debug/libm.so.6.1...done.
Loaded symbols for /usr/lib/debug/libm.so.6.1
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libunwind.so.7...done.
Loaded symbols for /lib/libunwind.so.7
Reading symbols from /usr/lib/debug/libc.so.6.1...done.
Loaded symbols for /usr/lib/debug/libc.so.6.1
Reading symbols from /lib/ld-linux-ia64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.3.5.so...done.
done.
Loaded symbols for /lib/ld-linux-ia64.so.2
#0  LocalityCompare (a=0x2000000000e90150, b=Variable "b" is not available.
) at apt-cache.cc:64
64         if (A->File == B->File)
(gdb) bt
#0  LocalityCompare (a=0x2000000000e90150, b=Variable "b" is not available.
) at apt-cache.cc:64
#1  0x20000000004eeac0 in msort_with_tmp (b=0x2000000000e90150, n=2, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:74
#2  0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90150, n=5, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#3  0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90150, n=10, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#4  0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90150, n=21, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#5  0x20000000004eea40 in msort_with_tmp (b=0x2000000000e90010, n=41, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:48
#6  0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90010, n=83, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#7  0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90010, n=167, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#8  0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90010, n=335, s=16,
---Type <return> to continue, or q <return> to quit---
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#9  0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90010, n=670, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#10 0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90010, n=1340, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#11 0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90010, n=2680, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#12 0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90010, n=5361, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#13 0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90010, n=10722, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#14 0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90010, n=21445, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
#15 0x20000000004eeec0 in *__GI_qsort (b=0x2000000000e90010, n=21445, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>) at msort.c:154
---Type <return> to continue, or q <return> to quit---
#16 0x4000000000004520 in LocalitySort (begin=0x2000000000e90010, Count=21445,
    Size=16) at apt-cache.cc:72
#17 0x4000000000011040 in Search (CmdL=Variable "CmdL" is not available.
) at apt-cache.cc:1298
#18 0x20000000000a8100 in CommandLine::DispatchArg ()
   from /usr/lib/libapt-pkg-libc6.3-6.so.3.10
#19 0x4000000000017a60 in main (argc=3, argv=Variable "argv" is not available.
) at apt-cache.cc:1798
(gdb) bt all
No symbol "all" in current context.
(gdb) btall
Undefined command: "btall".  Try "help".
(gdb) bt full
#0  LocalityCompare (a=0x2000000000e90150, b=Variable "b" is not available.
) at apt-cache.cc:64
        A = (pkgCache::VerFile *) 0x79
        B = (pkgCache::VerFile *) 0x200000000
#1  0x20000000004eeac0 in msort_with_tmp (b=0x2000000000e90150, n=2, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:74
        tmp = 0x2000000000ee4010 "\uffffb\201"
        b1 = 0x2000000000e90150 "P\uffff\uffff"
        b2 = 0x2000000000e90160 ""
        n1 = 1
        n2 = 1
#2  0x20000000004eea10 in msort_with_tmp (b=0x2000000000e90150, n=5, s=16,
    cmp=@0x400000000001b780: 0x4000000000004440 <LocalityCompare(void const*, void const*)>, t=0x2000000000ee4010 "\uffffb\201") at msort.c:47
        tmp = Variable "tmp" is not available.
(gdb)


-- Package-specific info:

-- (no /etc/apt/preferences present) --


-- /etc/apt/sources.list --


deb http://mirrors.kernel.org/debian unstable main non-free
deb-src http://mirrors.kernel.org/debian unstable main non-free


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: ia64
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-mckinley
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apt depends on:
ii  libc6.1                       2.3.5-7    GNU C Library: Shared libraries an
ii  libgcc1                       1:4.0.2-2  GCC support library
ii  libstdc++6                    4.0.2-2    The GNU Standard C++ Library v3
ii  libunwind7                    0.98.5-8   A library to determine the call-ch

apt recommends no packages.

-- no debconf information



Reply to: