[SRU] getmail_fetch crash, bugfix available upstream
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
getmail6 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
getmail_fetch crashes when executed.
[ Test Plan ]
Execute `getmail_fetch` with the arguments as given in the original bug description.
But for more clarity, these are the commands that needs to be run.
mkdir -p ~/testmaildir/
getmail_fetch -s dummy.example.com testacc testpw ~/testmaildir/
If we run the above commands on jammy, we can see the error.
With the fixed package the error will not be seen and `getmail_fetch` will now try to connect to dummy.example.com.
[ Where problems could occur ]
The fix is adding a try-except block in the code and the error handling is done in the except part. Since the error is generated because of Python3, upstream has added the Python3 version of the `types.MethodType` in the except block. So, it should not change the behaviour and has little chance of regressing the user behaviour.
[ Other Info ]
The problem exists in v6.8.4 and has been fixed by upstream on v6.8.5. It has been updated on Ubuntu Lunar, Mantic and Noble. But Jammy still has the problem and can be reproduced very easily.
Original Bug Description:
When I execute getmail_fetch with plausible arguments it crash, e.g
getmail_fetch -s dummy.example.com testacc testpw ./testmaildir/
exception: please read docs/BUGS and include the following information in any bug report:
getmail_fetch version 6.18.4
Python version 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]
Unhandled exception follows:
File "/usr/bin/
options.get = types.MethodTyp
TypeError: method expected 2 arguments, got 3
The result is the same when used with real login data.
I have tested with the latest version on github https:/
getmail_fetch 6.18.12
Regards Matthias
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: getmail6 6.18.4-2
ProcVersionSign
Uname: Linux 5.15.0-60-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sat Feb 25 22:29:02 2023
Dependencies:
InstallationDate: Installed on 2016-07-24 (2407 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: getmail6
UpgradeStatus: Upgraded to jammy on 2023-02-25 (0 days ago)
summary: |
- getmail_fetch crash, bugfix available + getmail_fetch crash, bugfix available upstream |
Changed in getmail6 (Ubuntu): | |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
status: | New → In Progress |
summary: |
- getmail_fetch crash, bugfix available upstream + [SRUgetmail_fetch crash, bugfix available upstream |
summary: |
- [SRUgetmail_fetch crash, bugfix available upstream + [SRU] getmail_fetch crash, bugfix available upstream |
description: | updated |
description: | updated |
Changed in getmail6 (Ubuntu): | |
status: | In Progress → New |
assignee: | Sudip Mukherjee (sudipmuk) → nobody |
tags: |
added: verification-done removed: verification-needed |
Workaround until ubuntu ship working package:
- Get source from upstream: https:/ /github. com/getmail6/ getmail6 packages= stdeb.command bdist_deb
- Install tools for deb package creation: sudo apt install python3-setuptools python3-stdeb fakeroot
- Build deb package with:
python3 setup.py sdist
python3 setup.py --command-
- install deb package which is located under deb_dist folder