Bug#677330: rred crashes in apt-get update

2012-07-05 Thread Courtney Bane
On Thu, Jul 05, 2012 at 09:15:19AM +0200, David Kalnischkies wrote:
> Are you sure about the version numbers involved?
> 
> The backtrace doesn't match with the code as FileFd::Close doesn't have
> a gzclose() call itself anymore, but offloads it to FileFdPrivate::CloseDown.
> This looks more like 0.9.3 which really had a gzclose call at line 1675.

It looks like I was actually using the 0.9.3 version of libapt-pkg4.12
(due to some previous debugging efforts) even though I had 0.9.6
installed. Once I fixed that, rred quit segfaulting.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#677330: rred crashes in apt-get update

2012-07-05 Thread David Kalnischkies
On Mon, Jul 2, 2012 at 8:56 PM, Courtney Bane
 wrote:
> I'm not positive that this is the exact same problem, but I'm still
> seeing segfaults in rred with apt 0.9.6. I rebuilt rred with debugging
> information before my latest crash, and was able to get a full
> backtrace. I've attached a file with the short and full backtraces. I've
[…]
> Here's the short backtrace:
>
>> Core was generated by `/usr/lib/apt/methods/rred'.
>> Program terminated with signal 11, Segmentation fault.
>> #0  *__GI___libc_free (mem=0x6d6c10) at malloc.c:3709
>> (gdb) bt
>> #0  *__GI___libc_free (mem=0x6d6c10) at malloc.c:3709
>> #1  0x7f794c8312da in inflateEnd (strm=0x6b6dc8) at inflate.c:1260
>> #2  0x7f794c835c79 in gzclose_r (file=0x6b6d50) at gzread.c:579
>> #3  0x7f794d9bec06 in FileFd::Close (this=0x7fffccaeda00) at 
>> contrib/fileutl.cc:1675
>> #4  0x00404278 in RredMethod::Fetch (this=0x7fffccaedf90, 
>> Itm=0x6b1c20) at rred.cc:503
>> #5  0x7f794d9fc62d in pkgAcqMethod::Run (this=0x7fffccaedf90, 
>> Single=false) at acquire-method.cc:371
>> #6  0x00402822 in main (argc=, argv=) 
>> at rred.cc:563

Are you sure about the version numbers involved?

The backtrace doesn't match with the code as FileFd::Close doesn't have
a gzclose() call itself anymore, but offloads it to FileFdPrivate::CloseDown.
This looks more like 0.9.3 which really had a gzclose call at line 1675.


Best regards

David Kalnischkies



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#677330: rred crashes in apt-get update

2012-07-02 Thread Courtney Bane
Package: apt
Version: 0.9.6
Followup-For: Bug #677330

I'm not positive that this is the exact same problem, but I'm still
seeing segfaults in rred with apt 0.9.6. I rebuilt rred with debugging
information before my latest crash, and was able to get a full
backtrace. I've attached a file with the short and full backtraces. I've
also saved the core file, the actual rred executable used, and the
contents of my /var/lib/apt/lists from before running "aptitude update";
I've put a tarball of these up here:
.

Here's the short backtrace:

> Core was generated by `/usr/lib/apt/methods/rred'.
> Program terminated with signal 11, Segmentation fault.
> #0  *__GI___libc_free (mem=0x6d6c10) at malloc.c:3709
> (gdb) bt
> #0  *__GI___libc_free (mem=0x6d6c10) at malloc.c:3709
> #1  0x7f794c8312da in inflateEnd (strm=0x6b6dc8) at inflate.c:1260
> #2  0x7f794c835c79 in gzclose_r (file=0x6b6d50) at gzread.c:579
> #3  0x7f794d9bec06 in FileFd::Close (this=0x7fffccaeda00) at 
> contrib/fileutl.cc:1675
> #4  0x00404278 in RredMethod::Fetch (this=0x7fffccaedf90, 
> Itm=0x6b1c20) at rred.cc:503
> #5  0x7f794d9fc62d in pkgAcqMethod::Run (this=0x7fffccaedf90, 
> Single=false) at acquire-method.cc:371
> #6  0x00402822 in main (argc=, argv=) 
> at rred.cc:563

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "false";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Default-Release "wheezy";
APT::Get "";
APT::Get::Fix-Missing "true";
APT::Periodic "";
APT::Periodic::Enable "1";
APT::Periodic::MinAge "1";
APT::Periodic::MaxAge "2";
APT::Periodic::Update-Package-Lists "0";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Architectures:: "i386";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "1";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "2";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-9n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "3";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-9";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "4";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "5";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: "-9";
APT::Compressor::lzma::UncompressArg "";
APT::Compressor::lzma::UncompressArg:: "--format=lzma";
APT::Compressor::lzma::UncompressArg:: "-d";
APT::CompressorName "";
APT::CompressorExtension ".";
APT::CompressorBinary "";
APT::CompressorCost "100";
APT::CompressorCompressArg "";
APT::CompressorCompressArg:: "-9";
APT::CompressorUncompressArg "";
APT::CompressorUncompressArg:: "-d";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.c

Bug#677330: rred crashes in apt-get update

2012-06-13 Thread David Kalnischkies
On Wed, Jun 13, 2012 at 11:43 AM, Steffen Moeller
 wrote:
> Package: apt
> Version: 0.9.5.1

Are you sure you experience these crashes with this version?
(And is it really this version given that your distribution is reported
 as being ubuntu which has a different version scheme)

This bug is supposed to be fixed in 0.9.5…
(#554387 and his various "friends")


Best regards

David Kalnischkies



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#677330: rred crashes in apt-get update

2012-06-13 Thread Steffen Moeller
Package: apt
Version: 0.9.5.1
Severity: normal

Hello, I see segfaults during apt-get updates, reproducibly. A second 
invocation then always works fine. This is what I see, but this does not tell 
too much:

Core was generated by `/usr/lib/apt/methods/rred'.
Program terminated with signal 11, Segmentation fault.
#0  *__GI___libc_free (mem=0x24dcea0) at malloc.c:3709
3709malloc.c: No such file or directory.
(gdb) bt
#0  *__GI___libc_free (mem=0x24dcea0) at malloc.c:3709
#1  0x7f49323701ea in ?? ()
#2  0x023147e0 in ?? ()
#3  0x7f4932374c09 in ?? ()
#4  0x7fff1126bb00 in ?? ()
#5  0x02296e40 in ?? ()
#6  0x7fff1126b540 in ?? ()
#7  0x7f49334fdf39 in ExecFork() () from 
/usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12
#8  0x7f49339cb9c0 in ?? ()
#9  0x7c96f087 in ?? ()
#10 0x7f49337dc952 in ?? () from /lib64/ld-linux-x86-64.so.2
#11 0x7f49 in ?? ()
#12 0x00607610 in vtable for FileFd ()
#13 0x7f49 in ?? ()
#14 0x0001 in ?? ()
#15 0x02314ab8 in ?? ()
#16 0x006075f8 in ?? ()
#17 0x in ?? ()
(gdb) quit

There is no -dbg package for apt as it seems. Please consider adding such.

Thanks

Steffen


-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Update "";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "/usr/bin/test -e 
/usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && 
/usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call 
--system --dest org.freedesktop.PackageKit --object-path 
/org/freedesktop/PackageKit --timeout 1 --method 
org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo 
> /dev/null";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Architectures:: "i386";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "1";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "2";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-9n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "3";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-9";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "4";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "5";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: "-9";
APT::Compressor::lzma::UncompressArg "";
APT::Compressor::lzma::UncompressArg:: "--format=lzma";
APT::Compressor::lzma::UncompressArg:: "-d";
APT::CompressorName "";
APT::CompressorExtension ".";
APT::CompressorBinary "";
APT::CompressorCost "100";
APT::CompressorCompressArg "";
APT::CompressorCompressArg:: "-9";
APT::CompressorUncompressArg "";
APT::CompressorUncompressArg:: "-d";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
Dir::State::status "/var/lib/dpkg/sta