/usr/lib/ubuntu-advantage/apt-esm-hook causes Seg Fault

Bug #1856081 reported by Derek Batting
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-advantage-tools (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

This happens every time I do "sudo apt update":

Fetched 1,775 B in 3s (584 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Segmentation fault (core dumped)
E: Problem executing scripts APT::Update::Post-Invoke-Stats '[ ! -f /usr/lib/ubuntu-advantage/apt-esm-hook ] || /usr/lib/ubuntu-advantage/apt-esm-hook'
E: Sub-process returned an error code

I tried a re-install:

sudo apt install --reinstall ubuntu-advantage-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 50.0 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu eoan/main amd64 ubuntu-advantage-tools amd64 19.5.1 [50.0 kB]
Fetched 50.0 kB in 0s (403 kB/s)
(Reading database ... 275280 files and directories currently installed.)
Preparing to unpack .../ubuntu-advantage-tools_19.5.1_amd64.deb ...
Unpacking ubuntu-advantage-tools (19.5.1) over (19.5.1) ...
Setting up ubuntu-advantage-tools (19.5.1) ...
Processing triggers for man-db (2.8.7-3) ...

Same error when I run "sudo apt update".

Running Pop!_OS 19.10

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Hello,

I just tried apt operations on a fresh eoan (ubuntu 19.10) system, with ua installed (but not attached, which is the default), and it works just fine. The hook also just exits 0 when called directly:

root@e1:~# /usr/lib/ubuntu-advantage/apt-esm-hook
root@e1:~# echo $?
0

I also installed pop_os 19.10, and apt update also worked out of the box. I then installed all available updates, including the downgrades it wanted to do. After that, apt also kept working.

Calling the hook directly is also fine in pop_os, with an exit code of zero.

All that being said, I'm unclear if ubuntu-advantage would be supported on a downstream derivative of Ubuntu. It's not ideal that it is segfaulting, but I couldn't reproduce it on either OS. Maybe you have packages from other sources installed, providing patched libraries that the ua hook is using, or some other unexpected condition that only shows up in your particular environment.

If you have a crash file in /var/crash, please attach it to this bug, or run the hook under gdb and try to provide a backtrace. Otherwise, please try to come up with clear reproduction steps after a fresh install, preferably on Ubuntu.

Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-advantage-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-advantage-tools (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.