[Bug 2008594] Re: [SRU] getmail_fetch crash, bugfix available upstream

Sudip Mukherjee 2008594 at bugs.launchpad.net
Sun Nov 5 13:53:07 UTC 2023


** Description changed:

  [ 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/{cur,tmp,new}
  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
- 
+ 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.
+  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/getmail_fetch", line 138, in main
      options.get = types.MethodType(get, options, options.__class__)
    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://github.com/getmail6/getmail6 and with it no error occurs. The reported version from github is
  getmail_fetch 6.18.12
  
  Regards Matthias
  
  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: getmail6 6.18.4-2
  ProcVersionSignature: Ubuntu 5.15.0-60.66-generic 5.15.78
  Uname: Linux 5.15.0-60-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.20.11-0ubuntu82.3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  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)
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: getmail6
  UpgradeStatus: Upgraded to jammy on 2023-02-25 (0 days ago)

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2008594

Title:
  [SRU] getmail_fetch crash, bugfix available upstream

Status in getmail6 package in Ubuntu:
  In Progress

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/{cur,tmp,new}
  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/getmail_fetch", line 138, in main
      options.get = types.MethodType(get, options, options.__class__)
    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://github.com/getmail6/getmail6 and with it no error occurs. The reported version from github is
  getmail_fetch 6.18.12

  Regards Matthias

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: getmail6 6.18.4-2
  ProcVersionSignature: Ubuntu 5.15.0-60.66-generic 5.15.78
  Uname: Linux 5.15.0-60-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.20.11-0ubuntu82.3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  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)
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: getmail6
  UpgradeStatus: Upgraded to jammy on 2023-02-25 (0 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/getmail6/+bug/2008594/+subscriptions




More information about the Ubuntu-sponsors mailing list