[Reportbug-maint] Bug#857810: reportbug: crashes if $HOME does not exist, bugreport is lost

Nis Martensen nis.martensen at web.de
Sun Jan 21 17:03:05 UTC 2018


On 15 Mar 2017 Thorsten Glaser wrote:
> Package: reportbug
> Version: 6.6.3
> Severity: important
> 
> I just reported a bug in a cowbuilder chroot, so $HOME pointed to
> a nonexistent directory. What I got was this:
> 
> File /tmp/reportbug-node-uglify-20170315-25826-NfKllD saved.
> Report will be sent to "Debian Bug Tracking System" <submit at bugs.debian.org>
> Submit this report on node-uglify (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|s|?]?
> Traceback (most recent call last):
>   File "/usr/bin/reportbug", line 2211, in <module>
>     main()
>   File "/usr/bin/reportbug", line 1081, in main
>     return iface.user_interface()
>   File "/usr/bin/reportbug", line 2203, in user_interface
>     self.options.envelopefrom)
>   File "/usr/lib/python2.7/dist-packages/reportbug/submit.py", line 316, in send_report
>     msgname = os.path.expanduser(outfile) or ('/var/tmp/%s.bug' % package)
>   File "/usr/lib/python2.7/posixpath.py", line 261, in expanduser
>     if not path.startswith('~'):
> AttributeError: 'NoneType' object has no attribute 'startswith'

This crash was fixed in reportbug 6.6.4 by:

commit 3b9cb82c8972b5190fd1364256ce18742b3fd16c
Author: Sandro Tosi <morph at debian.org>  2015-04-13 00:14:21
Committer: Sandro Tosi <morph at debian.org>  2015-04-13 00:14:21

    correctly handle the case where there is not MTA or smtphost
defined; Closes: #782319, #780825, #769055



More information about the Reportbug-maint mailing list