Apport crashes during handling package-hooks and re compile

Bug #1908011 reported by Bartłomiej Żogała
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
New
Undecided
Unassigned

Bug Description

Below console output should be self-explaining, don't hesitate to ask for any further info

nusch@xps13:/tmp$ ubuntu-bug thunderbird
ERROR: hook /usr/share/apport/package-hooks/source_thunderbird.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 218, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/package-hooks/source_thunderbird.py", line 1386, in add_info
    if (profile.current or profile.default) and profile.addon_compat_check_disabled:
  File "/usr/share/apport/package-hooks/source_thunderbird.py", line 1227, in addon_compat_check_disabled
    is_nightly = re.sub(r'^[^\.]+\.[0-9]+([a-z0-9]*).*', r'\1', self.last_version) == 'a1'
  File "/usr/lib/python3.6/re.py", line 191, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: apport 2.20.9-0ubuntu7.20
Uname: Linux 5.10.0-051000rc6-generic x86_64
ApportLog:

ApportVersion: 2.20.9-0ubuntu7.20
Architecture: amd64
CrashReports: 644:0:118:316:2020-12-09 17:54:46.572232715 +0100:2020-11-25 03:58:44.990978419 +0100:/var/crash/kexec_cmd
CurrentDesktop: ubuntu:GNOME
Date: Mon Dec 14 02:27:16 2020
InstallationDate: Installed on 2015-05-08 (2046 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
SourcePackage: apport
UpgradeStatus: Upgraded to bionic on 2018-08-26 (840 days ago)

Revision history for this message
Bartłomiej Żogała (nusch) wrote :
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.