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

2021-01-13 Thread Vincent Lefevre
On 2021-01-14 02:14:29 +0100, Axel Beckert wrote:
> Since Julian has uploaded a fix as apt/2.1.18, would you mind checking
> if you can still reproduce the issue in any way?

I couldn't manage to reproduce it with apt 2.1.18.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

___
Aptitude-devel mailing list
Aptitude-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/aptitude-devel

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

2021-01-13 Thread Axel Beckert
Control: clone -1 -2
Control: retitle -2 aptitude-run-state-bundle: uses some local files instead of 
only those from the bundle
Control: tag -2 - security
Control: tag -1 + moreinfo
Control: severity -2 normal

Hi Vincent,

Vincent Lefevre wrote:
> With the bundle, the crash occurs while the UI isn't displayed yet.
> But I can see in particular:
> 
> 2300077 stat("/var/lib/dpkg/status", {st_mode=S_IFREG|0644, st_size=3777850, 
> ...}) = 0
> 2300081 openat(AT_FDCWD, "/var/lib/dpkg/arch", O_RDONLY) = -1 ENOENT (No such 
> file or directory)
> 2300082 openat(AT_FDCWD, "/var/lib/dpkg/arch", O_RDONLY) = -1 ENOENT (No such 
> file or directory)
> 2300083 openat(AT_FDCWD, "/var/lib/dpkg/arch", O_RDONLY) = -1 ENOENT (No such 
> file or directory)
> 2300077 stat("/var/lib/apt-xapian-index/index", {st_mode=S_IFREG|0644, 
> st_size=41, ...}) = 0
> 2300077 openat(AT_FDCWD, "/var/lib/apt-xapian-index/index", O_RDONLY) = 36
> 2300077 openat(AT_FDCWD, "/var/lib/aptitude//pkgstates", O_RDONLY) =
> 36


Yep, and the later seems to have bitten me a bit when testing the
bundle. At least chromium had no more forbidden version afterwards
which was unexpected.

Then again, /var/lib/aptitude//pkgstates is in your bundle as
.//var/lib/aptitude/pkgstates, so there's no reason for a fall-back or
so.

> 2300077 openat(AT_FDCWD, "/var/lib/debtags/package-tags", O_RDONLY) = -1 
> ENOENT (No such file or directory)
> 222 symlinkat("/var/local/apt/./Packages", 4, 
> ".//var/lib/apt/lists/_var_local_apt_._Packages") = 0
> 
> while most files are read from the /tmp version.
> 
> So, as this seems to depend on the system, this is not surprising.

Ack.

> > But as mentioned in #980037 this seems normal in such a case without
> > a special kernel. So thanks for the bug report!
> 
> Note that I do *not* have a special kernel.

I know. That's the reason why I mentioned this.

> So this is unrelated.

Not necessarily. It's possible. But IMHO unlikely.

Since Julian has uploaded a fix as apt/2.1.18, would you mind checking
if you can still reproduce the issue in any way?

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , 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

___
Aptitude-devel mailing list
Aptitude-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/aptitude-devel

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

2021-01-13 Thread Vincent Lefevre
On 2021-01-13 14:46:21 +0100, Vincent Lefevre wrote:
> On 2021-01-13 12:31:05 +0100, Julian Andres Klode wrote:
> > Smells like 980037? Bug in APT's cache building upon mremap() in new
> > code path in 2.1.16/17.
> 
> Yes, I first rebuilt apt, and
> 
>   aptitude-run-state-bundle aptitude-segv.bundle
> 
> was still crashing, then applied the patch suggested at
> 
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980037#10
> 
> and I no longer get any crash.

Hmm... I think that you should forget that test. I thought
that aptitude-run-state-bundle would only depend on files from
aptitude-segv.bundle, but it still reads some other files from
/var/lib according to strace. And now I get

--- Upgradable Packages (65)

instead of

--- Upgradable Packages (61)

Since the crashes are very sensitive to the system status, the
above test might not be reliable.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

___
Aptitude-devel mailing list
Aptitude-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/aptitude-devel

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

2021-01-13 Thread Vincent Lefevre
On 2021-01-13 12:31:05 +0100, Julian Andres Klode wrote:
> Smells like 980037? Bug in APT's cache building upon mremap() in new
> code path in 2.1.16/17.

Yes, I first rebuilt apt, and

  aptitude-run-state-bundle aptitude-segv.bundle

was still crashing, then applied the patch suggested at

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980037#10

and I no longer get any crash.

But I don't have a patched kernel, just the one provided by Debian,
and the crashes were almost 100% reproducible when "aptitude" was
run alone.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

___
Aptitude-devel mailing list
Aptitude-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/aptitude-devel

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

2021-01-13 Thread Julian Andres Klode
On Wed, Jan 13, 2021 at 10:29:17AM +0100, Vincent Lefevre wrote:
> Package: aptitude
> Version: 0.8.13-2+b1
> Severity: grave
> Justification: renders package unusable
> Tags: security
> 
> 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.
> 
> I suppose that it doesn't like some data that have been fetched.
> Tagging security for this reason.

Smells like 980037? Bug in APT's cache building upon mremap() in new
code path in 2.1.16/17.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer  i speak de, en

___
Aptitude-devel mailing list
Aptitude-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/aptitude-devel