Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #711760
| From | Julian Andres Klode <jak@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#812251: apt: suddenly segfaults after "apt update" |
| Date | 2016-01-23 15:00 +0100 |
| Message-ID | <qU6To-3st-3@gated-at.bofh.it> (permalink) |
| References | <qTwZz-3SW-1@gated-at.bofh.it> <qTFTd-1Xj-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 22 January 2016 at 09:59, Julian Andres Klode <jak@debian.org> wrote: > On 22 January 2016 at 00:31, Sven Hartge <sven@svenhartge.de> wrote: >> Package: apt >> Version: 1.2 >> Severity: important >> >> Hi! >> >> This is Debian Sid on a Cubietruck. >> >> Today, suddenly, apt, apt-get and aptitude all segfault after the recent >> update to the package lists. >> >> "apt update" works but segfaults at the end during "Reading package lists ..." >> >> "apt-get update" the same (unsurprising) >> >> "aptitude update" segfaults immediately (after running a bit, but >> before downloading anything) >> >> "gdb aptitude update" on the other hand segfaults after downloading >> something. (Weird. Heisebug?) >> >> I am attaching backtraces for both apt and aptitude. >> >> (If you need the contents of /var/lib/apt* and /var/lib/dpkg/status I >> can make those available via seperate download. >> > > Thanks. It seems that your cache is being remapped, and the version > stringview we generated by passing Ver.VerStr() to NewProvides() > becomes invalid in that call. Previously, this was a string, copying > the memory instead. > > There are potentially two ways to solve this: Allow the cache > generator to remap string views where needed or revert affected parts > back to strings. Obviously, strings have some performance overhead, > especially on arm, which is why I replaced them with views in the > first place. > The branch https://github.com/julian-klode/apt bugfix/remap-stringview should fix the issue. Comparison to 1.2 is at: https://github.com/julian-klode/apt/compare/master...julian-klode:bugfix/remap-stringview I cannot reproduce the issue locally though, so I might have missed something. If you still can, it would be great if you could build libapt-pkg5.0 from that and see if you can reproduce it or if it works now. -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#812251: apt: suddenly segfaults after "apt update" Julian Andres Klode <jak@debian.org> - 2016-01-22 10:10 +0100
Bug#812251: apt: suddenly segfaults after "apt update" Sven Hartge <sven@svenhartge.de> - 2016-01-22 13:20 +0100
Bug#812251: apt: suddenly segfaults after "apt update" Julian Andres Klode <jak@debian.org> - 2016-01-23 15:00 +0100
Bug#812251: apt: suddenly segfaults after "apt update" Sven Hartge <sven@svenhartge.de> - 2016-01-24 00:40 +0100
Bug#812251: apt: suddenly segfaults after "apt update" Julian Andres Klode <jak@debian.org> - 2016-01-24 00:50 +0100
Bug#812251: apt: suddenly segfaults after "apt update" Sven Hartge <sven@svenhartge.de> - 2016-01-24 02:40 +0100
csiph-web