add-apt-repository sometimes crashes when SIGINT (Ctrl+C) is sent: crashed with ImportError in get_ppa_info_from_lp(): No module named 'pycurl'

Bug #1186492 reported by Eliah Kagan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
New
Medium
Unassigned

Bug Description

It appears add-apt-repository will sometimes crash instead of properly terminating, when SIGINT is sent (e.g., by Ctrl_C being pressed).

This crash happened when I entered a "sudo add-apt-repository ..." command with a typo in the name of the PPA I was adding. This crash was probably not triggered even partially by special syntax--the typo was just a misspelling.

The expected behavior would be for add-apt-repository not to crash when Ctrl+C is pressed (or when SIGINT is otherwise sent). Whether or not any substantive cleanup is performed when Ctrl+C is pressed, it should be considered a bug for an actual crash to occur in response to it. The primary negative impact of this bug on users is probably that, on most stable systems, Apport/Whoopsie runs when a crash occurs. But even if the crash were silent, it is still a bug.

With that said, this is unlikely to be a serious bug. Its impact is minimal, it does not ever prevent add-apt-repository from being used effectively, and add-apt-repository does terminate when Ctrl+C is given (it just crashes sometimes while doing so). Furthermore, add-apt-repository probably only crashes some of the time--rather than every time--that SIGINT is sent.

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: software-properties-common 0.92.17
ProcVersionSignature: Ubuntu 3.8.0-24.35-generic 3.8.13
Uname: Linux 3.8.0-24-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: amd64
Date: Sat Jun 1 02:12:39 2013
ExecutablePath: /usr/bin/add-apt-repository
InstallationDate: Installed on 2013-05-29 (2 days ago)
InstallationMedia: Lubuntu 13.04 "Raring Ringtail" - Release amd64 (20130423.1)
InterpreterPath: /usr/bin/python3.3
MarkForUpload: True
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/add-apt-repository ppa:gfire/fire
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/add-apt-repository', 'ppa:gfire/fire']
SourcePackage: software-properties
Title: add-apt-repository crashed with ImportError in get_ppa_info_from_lp(): No module named 'pycurl'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Eliah Kagan (degeneracypressure) wrote :
information type: Private → Public
tags: removed: need-duplicate-check
Changed in software-properties (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Robert Roth (evfool) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug #1157900, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.