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

Bug#992993: libapt-pkg6.0: infinite recursion in pkgDepCache::MarkPackage



Thanks for the quick reply!

David Kalnischkies <david@kalnischkies.de> writes:

> Please at least mention an example apt call. Is e.g.
> apt full-upgrade -s   crashing?

My first sign of trouble was that aptitude's curses interface crashed at
startup, but I also encounter crashes from "apt -s upgrade", among many
other commands.  Sorry for not being more specific on that front earlier.

> If so (or if you find another invocation you can run in simulation or if
> e.g. 'apt show' or 'policy' expose the crash) see if adding

I have not encountered crashes from any show or policy invocations I tried.

>   -o Dir::state::status=/dev/null    and/or

This eliminates the crash, but (presumably as expected) claims I have no
upgradable packages, which alas hasn't been the case for years.

>   -o Dir::State::extended_states=/dev/null

Still crashes in the same place, albeit with slightly different details
(see below).

> As an aside, the method is written as a giant recursive loop, so while
> "infinite" is not desired, the recursion certainly is and as such the
> information provided is not very enlightening.

Ah, OK.  All the same, I've been sticking with the standard generous
8192K stack limit, and still encounter a crash even when temporarily
bumping it to 65536K, which really ought to be more than enough.

> Points at my changes in 2.3.3, especially "Mark only provides from
> protected versioned kernel packages", as the most likely culprit.

A closer look under a debugger indicates that the infinite(?) recursion
likely relates to the messy state of my librust-*-dev packages; in
particular, it (at least eventually) involves
librust-rand-core+serde-dev with no -o flags, and librust-nom-dev with
extended_states suppressed.

I'd rather not share my full status and extended_states files
publically, but I'm attaching subsets limited to librust-*-dev; please
let me know if you need any further details.

Thanks!

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu

Attachment: rust-dev-status.xz
Description: application/xz

Attachment: rust-dev-ext-states.xz
Description: application/xz


Reply to: