Package: aptitude
Version: 0.4.4-4
Severity: normal

If I use the following format string for aptitude

Aptitude::UI {
  Package-Display-Format "%c%a%M%S%T%i %p %r %Z %I %15v %15V";
};

in /etc/apt/apt.conf, aptitude segfaults while scrolling down in
interactive mode through the list under:

--\ Not Installed Packages
  --\ admin - Administrative utilities (install software, manage users, etc)
    --- contrib - Programs which depend on software not in Debian
    --\ main - The main Debian archive

If I scroll down one by one or page-wise , it reproducibly segfaults
if I want to scroll further than the package
libhtml-htmltokenizer-ruby.

If I remove the "%r" from the format string, it works fine again.

The box is an UML guest system and is freshly dist-upgraded from
Sarge. (It started it's life as a Woody system a few years ago.)

I couldn't reproduce the same problem on a real box (NorhTec
MicroClient Jr., SiS550 200MHz Pentium-1-compatible embedded system)
with also Etch and 2.6.19.2 kernel with just putting (only) the above
in the /etc/apt/apt.conf, so it may have some dependencies on either
the kernel config or on being inside an UML system.

I've put three core-dumps and one strace into
http://noone.org/debian/Bug-Reports/aptitude-segfault-cores.tgz

The first core is with scrolling page-wise, the second with scrolling
line by line and the third is page-wise again, but belongs to the
straces.

I also made a backtrace with gdb:

#0  0x400b6d25 in debVersioningSystem::CheckDep () from 
/usr/lib/libapt-pkg-libc6.3-6.so.3.11
#1  0x080a483e in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<__gnu_cxx::__normal_iterator<char const*, 
std::string> > ()
#2  0x08150a67 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#3  0x080ad241 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<__gnu_cxx::__normal_iterator<char const*, 
std::string> > ()
#4  0x081c758d in std::operator+<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> > ()
#5  0x0817ff51 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#6  0x081bb821 in std::operator+<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> > ()
#7  0x0817ff51 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#8  0x0819eeb0 in std::operator+<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> > ()
#9  0x0817ff51 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#10 0x081bb821 in std::operator+<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> > ()
#11 0x0817ff51 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#12 0x081adb21 in std::operator+<wchar_t, std::char_traits<wchar_t>, 
std::allocator<wchar_t> > ()
#13 0x0817ff51 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#14 0x0819571a in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#15 0x0817ff51 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#16 0x08176534 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#17 0x08176668 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#18 0x0817629b in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<char*> ()
#19 0x080ff098 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string<__gnu_cxx::__normal_iterator<char const*, 
std::string> > ()
#20 0x08052c50 in ?? ()
#21 0x4026fea8 in __libc_start_main () from /lib/tls/libc.so.6
#22 0x08051211 in ?? ()

This bug maybe related to or at least looks similar to
http://bugs.debian.org/270057 but does happen with real packages
instead of virtual packages.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19.2-korypet-full
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages aptitude depends on:
ii  apt [libapt-pkg-libc6.3-6-3 0.6.46.4-0.1 Advanced front-end for dpkg
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libgcc1                     1:4.1.1-21   GCC support library
ii  libncursesw5                5.5-5        Shared libraries for terminal hand
ii  libsigc++-2.0-0c2a          2.0.17-2     type-safe Signal Framework for C++
ii  libstdc++6                  4.1.1-21     The GNU Standard C++ Library v3

Versions of packages aptitude recommends:
ii  aptitude-doc-en [aptitude-doc 0.4.4-4    English manual for aptitude, a ter
pn  libparse-debianchangelog-perl <none>     (no description available)

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to