Bug#1035976: [Aptitude-devel] Bug#1035976: aptitude dies with SEGV

2023-05-14 Thread Harald Dunkel

Control: tag -1 -moreinfo

Hi Axel,

apparently it is not sufficient to just add the entry to sources.list.d.
I had to update the local cache to make aptitude die.

On 2023-05-13 23:29:14, Axel Beckert wrote:


* Do you have any custom settings for settings influencing aptitude's
   package display like "Aptitude::UI::Package-Display-Format" or
   "Aptitude::UI::Default-Grouping"?



No, I just have

# cat .aptitude/config
aptitude "";
aptitude::Keep-Unused-Pattern "";
aptitude::Delete-Unused-Pattern "";
aptitude::UI "";
aptitude::UI::Prompt-On-Exit "false";
aptitude::UI::Advance-On-Action "true";
APT "";
APT::Install-Recommends "false";


* Under which locale settings does it happen for you?



On some systems I have set LANG=C or LANG=en_US.UTF-8, but I can reproduce
this using

# locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

I doubt that this is related to the locale.


If you neither use any of these settings nor use a non-english locale,
is there any chance that you can install these packages (for
bookworm/sid, otherwise run "find-dbgsym-packages aptitude" from the
debian-goodies package) on one of the affected machines:

strace aptitude-dbgsym libapt-pkg6.0-dbgsym
libboost-iostreams1.74.0-dbgsym libbz2-1.0-dbgsym libc6-dbg
libcap2-dbgsym libcwidget4-dbgsym libelogind0-dbgsym libgcc-s1-dbgsym
libgcrypt20-dbgsym libgpg-error0-dbgsym liblz4-1-dbgsym
liblzma5-dbgsym libncursesw6-dbgsym libsigc++-2.0-0v5-dbgsym
libsqlite3-0-dbgsym libstdc++6-dbgsym libtinfo6-dbgsym libudev1-dbgsym
libuuid1-dbgsym libxapian30-dbgsym libxxhash0-dbgsym libzstd1-dbgsym
zlib1g-dbgsym



libelogind0? This breaks systemd.


Regards
Harri



Bug#1035976: [Aptitude-devel] Bug#1035976: aptitude dies with SEGV

2023-05-13 Thread Axel Beckert
Control: tag -1 + unreproducible moreinfo

Hi Harald,

Harald Dunkel wrote:
> For testing I scanned all additional repositories in my sources.list.d.
> It dies about
> 
> deb [arch=amd64 
> signed-by=/etc/apt/trusted.gpg.d/hashicorp-archive-keyring.gpg] 
> https://apt.releases.hashicorp.com bookworm main
> 
> see https://www.hashicorp.com/official-packaging-guide.

Sorry to bother you again, but while this looked very good as
potential cause (or actually still does), I can't reproduce it inside
a Sid pbuilder chroot. So I assume there's another detail which is
required, too, to reproduce it.

Some more ideas to check:

* Do you have any custom settings for settings influencing aptitude's
  package display like "Aptitude::UI::Package-Display-Format" or
  "Aptitude::UI::Default-Grouping"?

* Under which locale settings does it happen for you?

If you neither use any of these settings nor use a non-english locale,
is there any chance that you can install these packages (for
bookworm/sid, otherwise run "find-dbgsym-packages aptitude" from the
debian-goodies package) on one of the affected machines:

strace aptitude-dbgsym libapt-pkg6.0-dbgsym
libboost-iostreams1.74.0-dbgsym libbz2-1.0-dbgsym libc6-dbg
libcap2-dbgsym libcwidget4-dbgsym libelogind0-dbgsym libgcc-s1-dbgsym
libgcrypt20-dbgsym libgpg-error0-dbgsym liblz4-1-dbgsym
liblzma5-dbgsym libncursesw6-dbgsym libsigc++-2.0-0v5-dbgsym
libsqlite3-0-dbgsym libstdc++6-dbgsym libtinfo6-dbgsym libudev1-dbgsym
libuuid1-dbgsym libxapian30-dbgsym libxxhash0-dbgsym libzstd1-dbgsym
zlib1g-dbgsym

And then run "strace -o aptitude-1035976.strace aptitude" and send me
that file? (Probably best in compressed form.)

Because that's what I just wanted to do if I would have been able to
reproduce it. :-)

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



Bug#1035976: [Aptitude-devel] Bug#1035976: aptitude dies with SEGV

2023-05-13 Thread Axel Beckert
Hi Harald,

Harald Dunkel wrote:
> For testing I scanned all additional repositories in my sources.list.d.
> It dies about
> 
> deb [arch=amd64 
> signed-by=/etc/apt/trusted.gpg.d/hashicorp-archive-keyring.gpg] 
> https://apt.releases.hashicorp.com bookworm main

Thanks for figuring out that. Will see if I can figure out more.

> I don't know who is to blame here, but I hope this helps

I currently asssume that there is some field unset in their repo meta
data, which aptitude's GUI (and only the GUI) expects to be set
unconditionally. I guess stracing will reveal some more details.

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



Bug#1035976: [Aptitude-devel] Bug#1035976: aptitude dies with SEGV

2023-05-12 Thread Axel Beckert
Control: found -1 0.8.13-3
Control: tag -1 + moreinfo

Hi Harald,

Harald Dunkel wrote:
> Running aptitude without arguments in a ssh session to a remote
> host I see the "loading cache" message as usual, but then it dies
> with
> 
>   Ouch!  Got SIGSEGV, dying..
>   Segmentation fault
>
> aptitude update, upgrade etc work without problems, AFAICT.

I assume this happens primarily as root on the remote host.

> I can reproduce this on several remote hosts running Bullseye or
> Testing,

Marking as found in 0.8.13-3 then.

> so it must be related to my environment somehow (Testing
> on a desktop PC), but it doesn't tell.

Ack. Doesn't look like a repo issue. Except maybe, if there's a common
non-debian APT repo involved.

Oh, and since about when is this happening? I assume this showed up
only recently, not for years. :-)

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