<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt, branch 2.3.9</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=2.3.9</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=2.3.9'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2021-09-07T15:27:09Z</updated>
<entry>
<title>Release 2.3.9</title>
<updated>2021-09-07T15:27:09Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2021-09-07T15:25:54Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=883a12310a4130370965eab0a710a2c8fae6cc09'/>
<id>urn:sha1:883a12310a4130370965eab0a710a2c8fae6cc09</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve error handling of cycling delayed queues</title>
<updated>2021-09-06T14:51:27Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2021-09-06T14:51:27Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=e664bdcfb287e7456f084e0335b7c68bab89d6e7'/>
<id>urn:sha1:e664bdcfb287e7456f084e0335b7c68bab89d6e7</id>
<content type='text'>
When an item has been delayed and the queue is cycled to start
it, we did not properly report an error from the cycling, and
we would then fail in the assert(), causing all errors to be
lost.

Propagate the error instead and make the assert a warning.
</content>
</entry>
<entry>
<title>Merge branch 'fix/recursivemark' into 'main'</title>
<updated>2021-09-06T14:33:43Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2021-09-06T14:33:43Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=25162dd82b5425bb123415e0fcc50377175055f5'/>
<id>urn:sha1:25162dd82b5425bb123415e0fcc50377175055f5</id>
<content type='text'>
Fix infinite recursions in MarkPackage and improve recursions in general

See merge request apt-team/apt!183</content>
</entry>
<entry>
<title>Increase recursion limits from 100 to 3000</title>
<updated>2021-08-29T12:23:26Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2021-08-29T11:50:31Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=5f6bbfa53c32ec30aff6a2bc8c412616049eab18'/>
<id>urn:sha1:5f6bbfa53c32ec30aff6a2bc8c412616049eab18</id>
<content type='text'>
If you install dpkg on an empty status file with all recommends and
suggests apt wants to install 4000+ packages. The deepest chain
seemingly being 236 steps long. And dpkg isn't even the worst (~259).

That is a problem as libapt has a hardcoded recursion limit for
MarkInstall and friends … set to 100. We are saved by the fact that
chains without suggests are much shorter (dpkg has 5, max seems ~43),
but I ignored Conflicts in these chains, which typically trigger
upgrades, so if two of the worst are chained together we suddenly get
dangerously close to the limit still.

So, lets just increase the limit into oblivion as it is really just a
safety measure we should not be running into to begin with. MarkPackage
was running years without it after all. 3000 is picked as a nice number
as any other and because it is roughly the half of the stack crashs I
saw previously in this branch.
</content>
</entry>
<entry>
<title>Stop autoremover from endlessly exploring cyclic providers</title>
<updated>2021-08-28T20:21:35Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2021-08-28T13:55:09Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=c7e368aafe099dcd966cf5994ae7fb418d268278'/>
<id>urn:sha1:c7e368aafe099dcd966cf5994ae7fb418d268278</id>
<content type='text'>
fullyExplored is needed to keep track of having explored all providers
of a package name, while Marked is tracking if we have explored a given
real package (along its chosen version), so we should stop MarkPackage
from exploring a (real) package if it is marked and let fullyExplored
only guard the looping over the individual dependencies.

The testcase is deceptively simple, but in practice only an ecosystem
like rust who makes heavy use of cyclic dependency relations intermixed
with versioned provides actually triggers this as seen by the buggy code
being in use for four months in Debian and Ubuntu development releases.
(easier to trigger if most packages are marked manual installed)

Note that the testcase is successful already due to the earlier changes
as we exit the recursion eventually and all packages are marked as they
need to be already, but this fix does work standalone as well.

Closes: #992993
</content>
</entry>
<entry>
<title>Don't venture too deeply in AutoRemovers MarkPackage</title>
<updated>2021-08-28T20:21:35Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2021-08-28T17:49:43Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=e4701219cf821d24f7f48ed6e4d8123c11d47c8b'/>
<id>urn:sha1:e4701219cf821d24f7f48ed6e4d8123c11d47c8b</id>
<content type='text'>
MarkInstall has the same depth limit, so lets use this arbitrary limit
to avoid trying to hard as that usually means we will never stop – at
least not until we crash, which is not a very good error case.
</content>
</entry>
<entry>
<title>Move hidden MarkPackage to a static function</title>
<updated>2021-08-28T20:21:35Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2021-08-28T17:22:26Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=d7e9f0779043814d6e7a4141170fa7f18cd90803'/>
<id>urn:sha1:d7e9f0779043814d6e7a4141170fa7f18cd90803</id>
<content type='text'>
We can't have external users as its marked hidden and as we don't even
have users outside of pkgDepCache itself we can remove the function
completely from the public eye. That adds many new parameters, but it
also allows to add a few more like avoiding constantly checking the
debug config value.

Gbp-Dch: Ignore
</content>
</entry>
<entry>
<title>Simplify selection of highest source version providers</title>
<updated>2021-08-28T20:21:35Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2021-08-28T11:24:06Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=b104891d015d0b8e152d8ac723027f824077948a'/>
<id>urn:sha1:b104891d015d0b8e152d8ac723027f824077948a</id>
<content type='text'>
The old code is a bit longer and does a sort (N*log(N)) + find (at most N)
It is replaced by max_element (N) + remove_if (N). The practical
difference is minimal as the N we operate on is rather small, but the
replacement is hopefully easier to understand at a glance as well.

Gbp-Dch: Ignore
</content>
</entry>
<entry>
<title>Inhibit autoremove calculation in apt-mark and apt show</title>
<updated>2021-08-28T20:21:35Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2021-08-28T16:08:15Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=e267d1ee54e3e2a9478201192293f3f8c72e118c'/>
<id>urn:sha1:e267d1ee54e3e2a9478201192293f3f8c72e118c</id>
<content type='text'>
As we never display the information in these code paths there isn't a
lot of point in calculating it first saving us some precious CPU cycles.

References: d6f3458badf2cfea3ca7de7632ae31daff5742be
</content>
</entry>
<entry>
<title>Try to show core dump info in test framework</title>
<updated>2021-08-28T19:11:33Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2021-04-25T20:26:42Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=255ec5a46aa55ad96e7dc7f9d43d5cdf71627812'/>
<id>urn:sha1:255ec5a46aa55ad96e7dc7f9d43d5cdf71627812</id>
<content type='text'>
If the system tells us that a core dump was created we should try to
display the contained info as that system might not be easily available
when we see the error (like C-I or autopkgtest).

Gbp-Dch: Ignore
</content>
</entry>
</feed>
