[Bug 1288718] Re: apt-extracttemplates crashed with SIGABRT in __gnu_cxx::__verbose_terminate_handler()
Julian Andres Klode
juliank at ubuntu.com
Mon Mar 17 23:37:16 UTC 2014
This bug has been fixed upstream in commit
b68ce88357daf362e60d7f8f131041289c8db690
http://anonscm.debian.org/gitweb/?p=apt/apt.git;a=commit;h=b68ce88357daf362e60d7f8f131041289c8db690
commit b68ce88357daf362e60d7f8f131041289c8db690
Author: Julian Andres Klode <jak at debian.org>
Date: Mon Mar 17 13:43:12 2014 +0100
apt-inst: Do not try to create a substring of an empty string in error reporting
One of our compressors (the empty one) has an empty extension. Calling substr
on it fails.
diff --git a/apt-inst/deb/debfile.cc b/apt-inst/deb/debfile.cc
index 3803329..a63cb67 100644
--- a/apt-inst/deb/debfile.cc
+++ b/apt-inst/deb/debfile.cc
@@ -124,8 +124,10 @@ bool debDebFile::ExtractTarMember(pkgDirStream &Stream,const char *Name)
{
std::string ext = std::string(Name) + ".{";
for (std::vector<APT::Configuration::Compressor>::const_iterator c = compressor.begin();
- c != compressor.end(); ++c)
- ext.append(c->Extension.substr(1));
+ c != compressor.end(); ++c) {
+ if (!c->Extension.empty())
+ ext.append(c->Extension.substr(1));
+ }
ext.append("}");
return _error->Error(_("Internal error, could not locate member %s"), ext.c_str());
}
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1288718
Title:
apt-extracttemplates crashed with SIGABRT in
__gnu_cxx::__verbose_terminate_handler()
Status in “apt” package in Ubuntu:
Confirmed
Status in “apt” package in Debian:
Fix Committed
Bug description:
The installation was just about to begin through aptitude when the
crash occured whilst apt-extracttemplate was running
ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: apt-utils 0.9.15.4ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-15.35-generic 3.13.5
Uname: Linux 3.13.0-15-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
Date: Thu Mar 6 23:41:52 2014
ExecutablePath: /usr/bin/apt-extracttemplates
InstallationDate: Installed on 2014-03-05 (1 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20131227)
ProcEnviron:
LANGUAGE=en_AU:en
TERM=xterm
PATH=(custom, no user)
LANG=en_AU.UTF-8
SHELL=/bin/bash
Signal: 6
SourcePackage: apt
StacktraceTop:
__gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
__cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
std::__throw_out_of_range(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Title: apt-extracttemplates crashed with SIGABRT in __gnu_cxx::__verbose_terminate_handler()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1288718/+subscriptions
More information about the foundations-bugs
mailing list