[apport] apt-listchanges crashed with IOError in mail_changes()

Bug #85031 reported by Emmanuel Pacaud
154
This bug affects 16 people
Affects Status Importance Assigned to Milestone
apt-listchanges
Fix Released
Unknown
apt-listchanges (Debian)
Fix Released
Unknown
apt-listchanges (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: apt-listchanges

apt-listchanges crashes, probably because I don't have a correct sendmail installation.

Traceback in Lucid (version 2.84):
Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 229, in <module>
    main()
  File "/usr/bin/apt-listchanges", line 209, in main
    apt_listchanges.mail_changes(config.email_address, changes, subject)
  File "/usr/share/apt-listchanges/apt_listchanges.py", line 99, in mail_changes
    fh.write(message.as_string())
IOError: [Errno 32] Broken pipe

ProblemType: Crash
Date: Wed Feb 14 08:38:26 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/apt-listchanges
InterpreterPath: /usr/bin/python2.5
Package: apt-listchanges 2.72ubuntu2
ProcCmdline: /usr/bin/python /usr/bin/apt-listchanges --apt
ProcCwd: /home/manu
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/apt-listchanges', '--apt']
SourcePackage: apt-listchanges
Uname: Linux hobbes 2.6.20-8-generic #2 SMP Tue Feb 13 05:18:42 UTC 2007 i686 GNU/Linux

Revision history for this message
Emmanuel Pacaud (emmanuel-pacaud) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

apt-listchanges will now fallback to pager if sendmail is not available on the system.

Cheers,
 Michael

Changed in apt-listchanges:
assignee: nobody → mvo
status: Unconfirmed → Fix Released
Revision history for this message
David (endeavornet) wrote :

Has the fix for this been released yet? I'm still getting the same error.

Revision history for this message
Michael Vogt (mvo) wrote :

This should have been fixed with 2.72ubuntu4. If it still fails for you, can you please attach your /etc/apt/apt.conf.d/20listchanges config and let me know if you have /usr/bin/sendmail (it uses this file to test if it can mail or not) ?

Thanks,
 Michael

Revision history for this message
David (endeavornet) wrote :

I only see version 2.72ubuntu3 available in repository which is what I have.

Revision history for this message
Michael Vogt (mvo) wrote :

Sorry, my bad. I just uploaded the fixed version, it should be in the repository really soon.

Thanks,
 Michael

Revision history for this message
David (endeavornet) wrote :

I still get the error in version 2.72ubuntu6. I don't have /usr/bin/sendmail.

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

I still get the error on a fresh Feisty beta install dist-upgraded. There is no sendmail.

ploum@spoutnik:~$ cat /etc/apt/apt.conf.d/20listchanges
DPkg::Pre-Install-Pkgs { "/usr/bin/apt-listchanges --apt || test $? -ne 10"; };
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";

Revision history for this message
Mads Chr. Olesen (shiyee) wrote :

Still seeing this in gutsy with apt-listchanges version 2.74ubuntu2
Probably apt-listchanges should just depend on "mail-transport-agent" ?

Revision history for this message
siucdude (siucdude) wrote :

same here, gutsy

sjester (gabrielsjoberg)
Changed in apt-listchanges:
status: Fix Released → Confirmed
Revision history for this message
vista killer (vistakiller) wrote :

same here,gutsy

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

I too am getting this on Gutsy. Why would you want it to depend on MTA for a desktop install? I don't need an MTA on this box, surely I should be able to use apt-listchanges with no mail sent?

Revision history for this message
Jonh Wendell (wendell) wrote :

This bug still exists in Hardy, even when it is not configured to notify the changes via gtk, for instance.

Revision history for this message
Emmanuel Pacaud (emmanuel-pacaud) wrote :

I do not have this issue anymore, at least since intrepid.

Revision history for this message
Michael Gratton (mjog) wrote :

This started happening again in karmic.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Just happened in Lucid for me, submitted as bug 564591.

Changed in apt-listchanges (Ubuntu):
status: Confirmed → Triaged
Daniel Hahler (blueyed)
description: updated
Daniel Hahler (blueyed)
Changed in apt-listchanges (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Robbie Williamson (robbiew) wrote :

Please open a new bug if you are experiencing this on a supported release.

Changed in apt-listchanges (Ubuntu):
assignee: Michael Vogt (mvo) → nobody
status: Triaged → Won't Fix
Revision history for this message
Daniel Hahler (blueyed) wrote :

Re-opening. See bug 564591 where this happened on Lucid for me.

The main point here is that it must not be reproducible, but IOErrors to the sendmail process should get handled properly, instead of crashing.

Changed in apt-listchanges (Ubuntu):
status: Won't Fix → Triaged
Shahar Or (mightyiam)
tags: added: precise
Changed in apt-listchanges:
status: Unknown → New
Changed in apt-listchanges:
status: New → Fix Released
tags: added: quantal
Daniel Hahler (blueyed)
Changed in apt-listchanges (Debian):
importance: Undecided → Unknown
status: New → Unknown
Changed in apt-listchanges (Debian):
status: Unknown → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

apt-listchanges (2.85.11ubuntu1) raring; urgency=low

  * Merge from Debian unstable. Remaining changes:
    - apt-listchanges/DebianFiles.py:
      + If the new package does not have a Debian changelog, fall back
        to apt-get changelog.
    - debian/control: version depend on apt with apt-get changelog support
    - Build using dh_python2.

 -- Logan Rosen <email address hidden> Tue, 23 Oct 2012 17:16:34 -0400

apt-listchanges (2.85.11) unstable; urgency=low

  * Don't use _() if we can't set requested locale; thanks to Ansgar Burchardt
    for the report and to Stuart Prescott for the patch; Closes: #602176
  * While parsing APT output, only return packages that are being installe, and
    not simply configured; thanks to Stuart Prescott for the analysis and the
    patch: Closes: #672230

 -- Sandro Tosi <email address hidden> Sat, 30 Jun 2012 12:36:34 +0200

apt-listchanges (2.85.10) unstable; urgency=low

  [ Pierre Habouzit ]
  * Remove myself from Maintainer/Uploader as I won't work on it anymore, put
    Sandro in charge, since well, it just makes reality official.

  [ Josh Triplett ]
  * Avoid throwing an exception when sendmail does not exist. (Closes: 666086)
  * Move mail-transport-agent from Recommends to Suggests. (Closes: 599667)
  * Change exim4 to default-mta in Suggests.

  [ Sandro Tosi ]
  * Bump Standards-Version to 3.9.3 (no changes needed)

 -- Sandro Tosi <email address hidden> Sun, 03 Jun 2012 12:32:07 +0200

Changed in apt-listchanges (Ubuntu):
status: Triaged → Fix Released
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.