[Aptitude-devel] Bug#980035: Bug#980035: Bug#980035: aptitude: segmentation fault when starting aptitude

Axel Beckert abe at debian.org
Wed Jan 13 14:07:26 GMT 2021

Control: clone -1 -2
Control: retile -2 aptitude-create-state-bundle should include more files from file:/// URLs
Control: severity -2 minor
Control: submitter -2 Axel Beckert <abe at debian.org>
Control: tag -2 - security

Hi Julian and Vincent,

Julian Andres Klode wrote:
> > I got a first "segmentation fault" just after updating ('u' in the TUI).
> > Now, each time I run aptitude, a segmentation occurs one second after
> > starting it.

Hmmmm, works still fine for me so far with 2.1.17.

> > I suppose that it doesn't like some data that have been fetched.
> > Tagging security for this reason.
> Smells like 980037?

Yep, smells like something which came in with apt 2.1.17.

> Bug in APT's cache building upon mremap() in new code path in
> 2.1.16/17.

I'd rather guess 2.1.17 only given the time of the bug report.

Then again, I so far didn't run into it, neither with "aptitude -u"
(as I usually do on several boxes several times per day) nor with
pressing "u" inside the TUI.

Vincent: Got the bundle, thanks! Wasn't able to provoke a segfault
with it, even not after pressing "u". But as mentioned in #980037 this
seems normal in such a case without a special kernel. So thanks for
the bug report!

Then again, it argued about some missing files. Seems as if
aptitude-create-state-bundle should copy way more files when handling
file:/// URLs:

# aptitude-run-state-bundle ~abe/aptitude/aptitude-segv-#980035.bundle aptitude update
Get: 33 file:/var/local/apt ./ Packages
Err file:/var/local/apt ./ Packages
  File not found - /var/local/apt/./Packages (2: No such file or directory)
Get: 34 file:/var/local/apt ./ Translation-en
Fetched 87.9 MB in 10s (8426 kB/s)
W: Download is performed unsandboxed as root as file '/tmp/aptitudebug.9E6xy9EY0/var/lib/apt/lists/partial/ftp.fr.debian.org_debian_dists_stable_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to download some files
W: Failed to fetch file:/var/local/apt/./Packages: File not found - /var/local/apt/./Packages (2: No such file or directory)
E: Some index files failed to download. They have been ignored, or old ones used instead.

Created a new bug report for that.

		Regards, Axel
 ,''`.  |  Axel Beckert <abe at debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE

More information about the Aptitude-devel mailing list