--- apport-2.0.1.orig/apport_python_hook.py
+++ apport-2.0.1/apport_python_hook.py
@@ -50,10 +50,12 @@
if not enabled():
return
- # org.freedesktop.DBus.Error.NoReply is an useless crash, needs actual
- # crash from D-BUS backend (LP# 914220)
- if 'org.freedesktop.DBus.Error.NoReply' in str(exc_obj):
- return
+ # special handling of dbus-python exceptions
+ if hasattr(exc_obj, 'get_dbus_name'):
+ if exc_obj.get_dbus_name() == 'org.freedesktop.DBus.Error.NoReply':
+ # NoReply is an useless crash, we do not even get the method it
+ # was trying to call; needs actual crash from D-BUS backend (LP #914220)
+ return
try:
from cStringIO import StringIO
--- apport-2.0.1.orig/kde/apport-kde
+++ apport-2.0.1/kde/apport-kde
@@ -153,6 +153,13 @@
self.cancel_button.hide()
if not self.ui.report_file:
+ # This is a bug generated through `apport-bug $package`, or
+ # `apport-collect $id`.
+
+ # avoid collecting information again, in this mode we already have it
+ if 'Uname' in report:
+ self.collect_called = True
+ self.ui.ui_update_view(self)
self.heading.setText(_('Send problem report to the developers?'))
self.text.hide()
self.closed_button.hide()
@@ -353,8 +360,8 @@
rect.height() / 2 - self.dialog.spinner.height() / 2,
self.dialog.spinner.width(), self.dialog.spinner.height())
self.dialog.movie.start()
- else:
- # show a progress dialog
+ elif self.crashdb.accepts(self.report):
+ # show a progress dialog if our DB accepts the crash
self.progress = ProgressDialog(
_('Collecting Problem Information'),
_('Collecting problem information'),
--- apport-2.0.1.orig/kde/apport-kde.desktop.in
+++ apport-2.0.1/kde/apport-kde.desktop.in
@@ -8,3 +8,4 @@
Categories=KDE;System;
OnlyShowIn=KDE;
StartupNotify=true
+X-Ubuntu-Gettext-Domain=apport
--- apport-2.0.1.orig/kde/apport-kde-mime.desktop.in
+++ apport-2.0.1/kde/apport-kde-mime.desktop.in
@@ -9,3 +9,4 @@
Categories=KDE;
NoDisplay=true
StartupNotify=true
+X-Ubuntu-Gettext-Domain=apport
--- apport-2.0.1.orig/gtk/apport-gtk-mime.desktop.in
+++ apport-2.0.1/gtk/apport-gtk-mime.desktop.in
@@ -9,3 +9,4 @@
Categories=GNOME;GTK;
NoDisplay=true
StartupNotify=true
+X-Ubuntu-Gettext-Domain=apport
--- apport-2.0.1.orig/gtk/apport-gtk.desktop.in
+++ apport-2.0.1/gtk/apport-gtk.desktop.in
@@ -9,3 +9,4 @@
Categories=GNOME;Application;Core;
OnlyShowIn=GNOME;Unity;XFCE;
StartupNotify=true
+X-Ubuntu-Gettext-Domain=apport
--- apport-2.0.1.orig/gtk/apport-gtk
+++ apport-2.0.1/gtk/apport-gtk
@@ -143,7 +143,13 @@
return t
def setup_bug_report(self):
- # This is a bug generated through `apport-bug $package`.
+ # This is a bug generated through `apport-bug $package`, or
+ # `apport-collect $id`.
+
+ # avoid collecting information again, in this mode we already have it
+ if 'Uname' in self.report:
+ self.collect_called = True
+ self.ui_update_view()
self.w('title_label').set_label('%s' %
_('Send problem report to the developers?'))
self.w('title_label').show()
@@ -240,11 +246,17 @@
app_icon = self.w('application_icon')
theme = Gtk.IconTheme.get_default()
try:
- pb = theme.load_icon(icon, 42, builtin)
+ pb = theme.load_icon(icon, 42, builtin).copy()
overlay = theme.load_icon('dialog-error', 16, builtin)
- overlay.composite(pb, 26, 26, 16, 16, 26, 26, 1, 1,
- GdkPixbuf.InterpType.BILINEAR, 255)
- app_icon.set_from_pixbuf(pb)
+ overlay_w = overlay.get_width()
+ overlay_h = overlay.get_height()
+ off_x = pb.get_width() - overlay_w
+ off_y = pb.get_height() - overlay_h
+ overlay.composite(pb, off_x, off_y, overlay_w, overlay_h,
+ off_x, off_y, 1, 1,
+ GdkPixbuf.InterpType.BILINEAR, 255)
+ if app_icon.get_parent(): # work around LP#938090
+ app_icon.set_from_pixbuf(pb)
except GLib.GError:
self.w('application_icon').set_from_stock(
Gtk.STOCK_DIALOG_ERROR, Gtk.IconSize.DIALOG)
@@ -356,8 +368,8 @@
if self.w('dialog_crash_new').get_property('visible'):
self.spinner.show()
self.spinner.start()
- else:
- # show a progress dialog
+ elif self.crashdb.accepts(self.report):
+ # show a progress dialog if our DB accepts the crash
self.w('progressbar_information_collection').set_fraction(0)
self.w('window_information_collection').show()
--- apport-2.0.1.orig/po/tr.po
+++ apport-2.0.1/po/tr.po
@@ -8,15 +8,15 @@
"Project-Id-Version: apport\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-03-21 18:25+0100\n"
-"PO-Revision-Date: 2012-04-09 13:51+0000\n"
-"Last-Translator: Hasan Yılmaz \n"
+"PO-Revision-Date: 2012-04-14 21:12+0000\n"
+"Last-Translator: İbrahim Çelik \n"
"Language-Team: Turkish \n"
+"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-04-10 04:43+0000\n"
+"X-Launchpad-Export-Date: 2012-04-15 04:34+0000\n"
"X-Generator: Launchpad (build 15070)\n"
-"Language: tr\n"
#: ../apport/ui.py:92
msgid "This package does not seem to be installed correctly"
@@ -32,7 +32,7 @@
"Bu resmi bir %s paketi değil. Lütfen herhangi bir üçüncü parti paketini "
"kaldırıp tekrar deneyin."
-#: ../apport/ui.py:115
+#: ../apport/ui.py:117
#, python-format
msgid ""
"You have some obsolete package versions installed. Please upgrade the "
@@ -45,21 +45,21 @@
"\n"
"%s"
-#: ../apport/ui.py:211
+#: ../apport/ui.py:213
msgid "unknown program"
msgstr "bilinmeyen program"
-#: ../apport/ui.py:212
+#: ../apport/ui.py:214
#, python-format
msgid "Sorry, the program \"%s\" closed unexpectedly"
msgstr "Üzgünüm, \"%s\" programı beklenmedik şekilde kapandı"
-#: ../apport/ui.py:213 ../apport/ui.py:1105
+#: ../apport/ui.py:215 ../apport/ui.py:1087
#, python-format
msgid "Problem in %s"
msgstr "%s'de problem"
-#: ../apport/ui.py:214
+#: ../apport/ui.py:216
msgid ""
"Your computer does not have enough free memory to automatically analyze the "
"problem and send a report to the developers."
@@ -68,62 +68,62 @@
"göndermek için yeterli boş belleğe sahip değil."
#. package does not exist
-#: ../apport/ui.py:228 ../apport/ui.py:235 ../apport/ui.py:241
-#: ../apport/ui.py:273 ../apport/ui.py:281 ../apport/ui.py:352
-#: ../apport/ui.py:355 ../apport/ui.py:553 ../apport/ui.py:920
-#: ../apport/ui.py:1061 ../apport/ui.py:1065 ../apport/ui.py:1084
-#: ../apport/ui.py:1090
+#: ../apport/ui.py:230 ../apport/ui.py:237 ../apport/ui.py:243
+#: ../apport/ui.py:275 ../apport/ui.py:283 ../apport/ui.py:354
+#: ../apport/ui.py:357 ../apport/ui.py:555 ../apport/ui.py:910
+#: ../apport/ui.py:1043 ../apport/ui.py:1047 ../apport/ui.py:1066
+#: ../apport/ui.py:1072
msgid "Invalid problem report"
msgstr "Geçersiz sorun raporu"
-#: ../apport/ui.py:230 ../apport/ui.py:1067
+#: ../apport/ui.py:232 ../apport/ui.py:1049
msgid "This problem report is damaged and cannot be processed."
msgstr "Bu sorun raporu hasarlı, bu nedenle işlenemiyor."
-#: ../apport/ui.py:236
+#: ../apport/ui.py:238
msgid "The report belongs to a package that is not installed."
msgstr "Rapor kurulmamış bir pakete ait."
-#: ../apport/ui.py:242
+#: ../apport/ui.py:244
msgid "An error occurred while attempting to process this problem report:"
msgstr "Bu sorun raporunu işlemeye çalışırken bir hata oluştu:"
-#: ../apport/ui.py:274
+#: ../apport/ui.py:276
msgid "You are not allowed to access this problem report."
msgstr "Bu hata raporuna erişmeye izniniz yok."
-#: ../apport/ui.py:277
+#: ../apport/ui.py:279
msgid "Error"
msgstr "Hata"
-#: ../apport/ui.py:278
+#: ../apport/ui.py:280
msgid "There is not enough disk space available to process this report."
msgstr "Bu raporu işlemek için yeterli disk alanı yok."
-#: ../apport/ui.py:305
+#: ../apport/ui.py:307
msgid "No package specified"
msgstr "Hiçbir paket belirtilmemiş"
-#: ../apport/ui.py:306
+#: ../apport/ui.py:308
msgid ""
"You need to specify a package or a PID. See --help for more information."
msgstr ""
"Bir paket veya PID belirtmelisiniz. Daha fazla bilgi için --help çıktısına "
"bakın."
-#: ../apport/ui.py:322
+#: ../apport/ui.py:324
msgid "Invalid PID"
msgstr "Geçersiz PID"
-#: ../apport/ui.py:323
+#: ../apport/ui.py:325
msgid "The specified process ID does not belong to a program."
msgstr "Belirlenen işlem ID'si bir programa ait değil."
-#: ../apport/ui.py:331
+#: ../apport/ui.py:333
msgid "Permission denied"
msgstr "İzin verilmedi"
-#: ../apport/ui.py:332
+#: ../apport/ui.py:334
msgid ""
"The specified process does not belong to you. Please run this program as the "
"process owner or as root."
@@ -131,25 +131,25 @@
"Belirtilen süreç size ait değil. Lütfen bu programı süreç sahibi veya root "
"olarak çalıştırın."
-#: ../apport/ui.py:353
+#: ../apport/ui.py:355
#, python-format
msgid "Symptom script %s did not determine an affected package"
msgstr "Symptom betiği %s etkin bir paket tanımlamadı"
-#: ../apport/ui.py:356
+#: ../apport/ui.py:358
#, python-format
msgid "Package %s does not exist"
msgstr "%s pakedi bulunamadı"
-#: ../apport/ui.py:381 ../apport/ui.py:565 ../apport/ui.py:570
+#: ../apport/ui.py:383 ../apport/ui.py:567 ../apport/ui.py:572
msgid "Cannot create report"
msgstr "Rapor oluşturulamıyor"
-#: ../apport/ui.py:396 ../apport/ui.py:442 ../apport/ui.py:459
+#: ../apport/ui.py:398 ../apport/ui.py:444 ../apport/ui.py:461
msgid "Updating problem report"
msgstr "Sorun raporu güncelleniyor"
-#: ../apport/ui.py:397
+#: ../apport/ui.py:399
msgid ""
"You are not the reporter or subscriber of this problem report, or the report "
"is a duplicate or already closed.\n"
@@ -161,14 +161,14 @@
"\n"
"Lütfen ''apport-bug'' kullanarak yeni bir rapor oluşturun."
-#: ../apport/ui.py:406
+#: ../apport/ui.py:408
msgid ""
"You are not the reporter of this problem report. It is much easier to mark a "
"bug as a duplicate of another than to move your comments and attachments to "
"a new bug.\n"
"\n"
-"Subsequently, we recommend that you file a new bug report using \"apport-"
-"bug\" and make a comment in this bug about the one you file.\n"
+"Subsequently, we recommend that you file a new bug report using \"apport-bug"
+"\" and make a comment in this bug about the one you file.\n"
"\n"
"Do you really want to proceed?"
msgstr ""
@@ -182,24 +182,24 @@
"\n"
"Gerçekten devam etmek istiyor musunuz?"
-#: ../apport/ui.py:443 ../apport/ui.py:460
+#: ../apport/ui.py:445 ../apport/ui.py:462
msgid "No additional information collected."
msgstr "Hiçbir ek bilgi toplanmadı."
-#: ../apport/ui.py:510
+#: ../apport/ui.py:512
msgid "What kind of problem do you want to report?"
msgstr "Ne tür bir sorun bildirmek istiyorsunuz?"
-#: ../apport/ui.py:527
+#: ../apport/ui.py:529
msgid "Unknown symptom"
msgstr "Bilinmeyen belirti"
-#: ../apport/ui.py:528
+#: ../apport/ui.py:530
#, python-format
msgid "The symptom \"%s\" is not known."
msgstr "\"%s\" belirtisi bilinmiyor."
-#: ../apport/ui.py:556
+#: ../apport/ui.py:558
msgid ""
"After closing this message please click on an application window to report a "
"problem about it."
@@ -207,47 +207,45 @@
"Bu iletiyi kapattıktan sonra lütfen bununla ilgili sorunu bildirmek için bir "
"uygulama penceresine tıklayın."
-#: ../apport/ui.py:566 ../apport/ui.py:571
+#: ../apport/ui.py:568 ../apport/ui.py:573
msgid "xprop failed to determine process ID of the window"
msgstr "xprop, pencrenin işlem kimliğini saptamada başarısız oldu"
-#: ../apport/ui.py:585
+#: ../apport/ui.py:587
msgid "%prog "
msgstr "%prog "
-#: ../apport/ui.py:587
+#: ../apport/ui.py:589
msgid "Specify package name."
msgstr "Paket adı belirtin."
-#: ../apport/ui.py:589 ../apport/ui.py:638
+#: ../apport/ui.py:591 ../apport/ui.py:640
msgid "Add an extra tag to the report. Can be specified multiple times."
msgstr "Rapora fazladan bir etiket ekleyin. Birçok kez belirtilmiş olabilir."
-#: ../apport/ui.py:619
-msgid ""
-"%prog [options] [symptom|pid|package|program path|.apport/.crash file]"
-msgstr ""
-"%prog [options] [symptom|pid|package|program path|.apport/.crash file]"
+#: ../apport/ui.py:621
+msgid "%prog [options] [symptom|pid|package|program path|.apport/.crash file]"
+msgstr "%prog [options] [symptom|pid|package|program path|.apport/.crash file]"
-#: ../apport/ui.py:622
+#: ../apport/ui.py:624
msgid ""
"Start in bug filing mode. Requires --package and an optional --pid, or just "
"a --pid. If neither is given, display a list of known symptoms. (Implied if "
"a single argument is given.)"
msgstr ""
"Hata dosyalama modunda başlat. --package ve isteğe bağlı --pid,veya sadece --"
-"pid gerektirir.Eğer hiçbiri verilmezse,bilinen belirtilerin listesini "
-"göster.(Kastedilen;eğer tek bir argüman verilirse.)"
+"pid gerektirir.Eğer hiçbiri verilmezse,bilinen belirtilerin listesini göster."
+"(Kastedilen;eğer tek bir argüman verilirse.)"
-#: ../apport/ui.py:624
+#: ../apport/ui.py:626
msgid "Click a window as a target for filing a problem report."
msgstr "Bir sorunu bildirmek için hedef olarak bir pencereye tıklayın."
-#: ../apport/ui.py:626
+#: ../apport/ui.py:628
msgid "Start in bug updating mode. Can take an optional --package."
msgstr "Hata güncelleme kipinde başlat. Seçime bağlı --package alınabilir."
-#: ../apport/ui.py:628
+#: ../apport/ui.py:630
msgid ""
"File a bug report about a symptom. (Implied if symptom name is given as only "
"argument.)"
@@ -255,7 +253,7 @@
"Bir belirti için hata raporu dosyala.(Kastedilen;eğer belirti adı sadece "
"argüman olarak verilirse.)"
-#: ../apport/ui.py:630
+#: ../apport/ui.py:632
msgid ""
"Specify package name in --file-bug mode. This is optional if a --pid is "
"specified. (Implied if package name is given as only argument.)"
@@ -263,7 +261,7 @@
"--dosya-hata modunda paket adını belirtin. Bir -pid belirtilmişse, bu "
"seçenek opsiyoneldir. (Paket adı tek argüman olarak verilmişse uygulanır.)"
-#: ../apport/ui.py:632
+#: ../apport/ui.py:634
msgid ""
"Specify a running program in --file-bug mode. If this is specified, the bug "
"report will contain more information. (Implied if pid is given as only "
@@ -273,7 +271,7 @@
"belirtilmişse, hata raporu daha fazla ayrıntı içerecektir.(PID 'in tek "
"parametre olarak verilmesi durumu kastedilmiştir)"
-#: ../apport/ui.py:634
+#: ../apport/ui.py:636
#, python-format
msgid ""
"Report the crash from given .apport or .crash file instead of the pending "
@@ -282,7 +280,7 @@
"Hata raporunu %s'te beklemekte olanlar yerine .apport veya .crash "
"dosyalarından bildirin. (Eğer dosya adı verilen tek argüman ise)"
-#: ../apport/ui.py:636
+#: ../apport/ui.py:638
msgid ""
"In bug filing mode, save the collected information into a file instead of "
"reporting it. This file can then be reported later on from a different "
@@ -291,32 +289,32 @@
"Hata belirtme kipinde, toplanan bilgileri raporlamak yerine onları bir "
"dosyaya kaydedin. Bu dosya dha sonra farklı bir makineden raporlanabilir."
-#: ../apport/ui.py:640
+#: ../apport/ui.py:642
msgid "Print the Apport version number."
msgstr "Apport sürüm numarasını yazdır."
-#: ../apport/ui.py:772
+#: ../apport/ui.py:774
msgid ""
"This will launch apport-retrace in a terminal window to examine the crash."
msgstr ""
"Bu, çökmeyi incelemek için bir uçbirim penceresinde \"apport-retrace\" "
"komutunu çalıştıracak."
-#: ../apport/ui.py:773
+#: ../apport/ui.py:775
msgid "Run gdb session"
msgstr "gdb oturumunu çalıştır"
-#: ../apport/ui.py:774
+#: ../apport/ui.py:776
msgid "Run gdb session without downloading debug symbols"
msgstr "gdb oturumunu böcek temizleme simgelerini indirmeden çalıştır"
#. TRANSLATORS: %s contains the crash report file name
-#: ../apport/ui.py:776
+#: ../apport/ui.py:778
#, python-format
msgid "Update %s with fully symbolic stack trace"
msgstr "%s dosyasını tümüyle sembolik küme iziyle güncelle"
-#: ../apport/ui.py:817
+#: ../apport/ui.py:819
#, python-format
msgid ""
"The problem happened with the program %s which changed since the crash "
@@ -324,49 +322,48 @@
msgstr ""
"Çökme olduktan sonra değişime uğrayan %s yazılımıyla ilgili sorun oluştu."
-#: ../apport/ui.py:921
+#: ../apport/ui.py:911
msgid "Could not determine the package or source package name."
msgstr "Paket ya da kaynak kod paketi adı belirlenemedi."
-#: ../apport/ui.py:939
+#: ../apport/ui.py:929
msgid "Unable to start web browser"
msgstr "Ağ tarayıcı başlatılamıyor"
-#: ../apport/ui.py:940
+#: ../apport/ui.py:930
#, python-format
msgid "Unable to start web browser to open %s."
msgstr "%s açmak için ağ tarayıcı başlatılamıyor."
-#: ../apport/ui.py:1017
+#: ../apport/ui.py:999
#, python-format
msgid "Please enter your account information for the %s bug tracking system"
msgstr "Lütfen %s hata takip sistemi için hesap bilgilerinizi girin."
-#: ../apport/ui.py:1028
+#: ../apport/ui.py:1010
msgid "Network problem"
msgstr "Ağ sorunu"
-#: ../apport/ui.py:1030
+#: ../apport/ui.py:1012
msgid ""
"Cannot connect to crash database, please check your Internet connection."
msgstr ""
"Çöküş veritabanına bağlanılamıyor, lütfen internet bağlantınızı kontrol edin."
-#: ../apport/ui.py:1056
+#: ../apport/ui.py:1038
msgid "Memory exhaustion"
msgstr "Yetersiz bellek"
-#: ../apport/ui.py:1057
+#: ../apport/ui.py:1039
msgid "Your system does not have enough memory to process this crash report."
-msgstr ""
-"Sisteminiz bu çökme raporunu işlemek için yeterli belleğe sahip değil."
+msgstr "Sisteminiz bu çökme raporunu işlemek için yeterli belleğe sahip değil."
-#: ../apport/ui.py:1080 ../apport/ui.py:1089
+#: ../apport/ui.py:1062 ../apport/ui.py:1071
msgid ""
"This problem report applies to a program which is not installed any more."
msgstr "Bu problem raporu, artık yüklü olmayan bir programa ait."
-#: ../apport/ui.py:1108
+#: ../apport/ui.py:1090
#, python-format
msgid ""
"The problem cannot be reported:\n"
@@ -377,11 +374,11 @@
"\n"
"%s"
-#: ../apport/ui.py:1145 ../apport/ui.py:1152
+#: ../apport/ui.py:1127 ../apport/ui.py:1134
msgid "Problem already known"
msgstr "Sorun önceden bildirilmiş"
-#: ../apport/ui.py:1146
+#: ../apport/ui.py:1128
msgid ""
"This problem was already reported in the bug report displayed in the web "
"browser. Please check if you can add any further information that might be "
@@ -391,7 +388,7 @@
"bildirilmiş. Lütfen geliştiricilere yardımcı olabilecek ek bir bilgi ekleyip "
"ekleyemeyeceğinize bakın."
-#: ../apport/ui.py:1153
+#: ../apport/ui.py:1135
msgid "This problem was already reported to developers. Thank you!"
msgstr "Bu sorun daha önce geliştiricilere bildirildi. Teşekkür ederiz!"
@@ -413,11 +410,11 @@
msgid "(%i bytes)"
msgstr "(%i sekiz ikil)"
-#: ../bin/apport-cli.py:143 ../gtk/apport-gtk.py:118 ../kde/apport-kde.py:315
+#: ../bin/apport-cli.py:143 ../gtk/apport-gtk.py:113 ../kde/apport-kde.py:311
msgid "(binary data)"
msgstr "(ikili veri)"
-#: ../bin/apport-cli.py:173 ../gtk/apport-gtk.py:148 ../kde/apport-kde.py:156
+#: ../bin/apport-cli.py:173 ../gtk/apport-gtk.py:142 ../kde/apport-kde.py:156
msgid "Send problem report to the developers?"
msgstr "Sorun raporu, geliştiricilere gönderilsin mi?"
@@ -470,7 +467,7 @@
msgid "Error: %s"
msgstr "Hata: %s"
-#: ../bin/apport-cli.py:233 ../kde/apport-kde.py:360
+#: ../bin/apport-cli.py:233 ../kde/apport-kde.py:356
msgid "Collecting problem information"
msgstr "Sorun bilgileri toplanıyor"
@@ -483,7 +480,7 @@
"gönderilebilir. \n"
"Bu birkaç dakika sürebilir."
-#: ../bin/apport-cli.py:246 ../gtk/apport-gtk.ui.h:13 ../kde/apport-kde.py:388
+#: ../bin/apport-cli.py:246 ../gtk/apport-gtk.ui.h:13 ../kde/apport-kde.py:384
msgid "Uploading problem information"
msgstr "Sorun bilgileri yükleniyor"
@@ -568,7 +565,7 @@
"Kalan işlem bitmesine çok yakın bir yerde takıldı ve normal bir biçimde "
"tamamlanmış gibi görünecek."
-#: ../gtk/apport-gtk.ui.h:1 ../kde/apport-kde.py:423 ../kde/apport-kde.py:459
+#: ../gtk/apport-gtk.ui.h:1 ../kde/apport-kde.py:419 ../kde/apport-kde.py:455
msgid "Apport"
msgstr "Apport"
@@ -580,7 +577,7 @@
msgid "Sorry, an internal error happened."
msgstr " Üzgünüz, içsel bir hata oluştu."
-#: ../gtk/apport-gtk.ui.h:4 ../gtk/apport-gtk.py:227 ../kde/apport-kde.py:206
+#: ../gtk/apport-gtk.ui.h:4 ../gtk/apport-gtk.py:216 ../kde/apport-kde.py:202
msgid "If you notice further problems, try restarting the computer."
msgstr ""
"Daha fazla sorunla karşılaşırsanız bilgisayarınız yeniden başlatmayı deneyin."
@@ -593,8 +590,8 @@
msgid "Ignore future problems of this program version"
msgstr "Bu yazılım sürümünün gelecekteki sorunlarını görmezden gel"
-#: ../gtk/apport-gtk.ui.h:7 ../gtk/apport-gtk.py:166 ../gtk/apport-gtk.py:485
-#: ../kde/apport-kde.py:248
+#: ../gtk/apport-gtk.ui.h:7 ../gtk/apport-gtk.py:160 ../gtk/apport-gtk.py:474
+#: ../kde/apport-kde.py:244
msgid "Show Details"
msgstr "Ayrıntıları Göster"
@@ -602,12 +599,12 @@
msgid "_Examine locally"
msgstr "Yerel olarak _İncele"
-#: ../gtk/apport-gtk.ui.h:9 ../gtk/apport-gtk.py:215 ../kde/apport-kde.py:196
+#: ../gtk/apport-gtk.ui.h:9 ../gtk/apport-gtk.py:207 ../kde/apport-kde.py:195
msgid "Leave Closed"
msgstr "Kapalı Bırak"
-#: ../gtk/apport-gtk.ui.h:10 ../gtk/apport-gtk.py:178 ../gtk/apport-gtk.py:219
-#: ../gtk/apport-gtk.py:230 ../kde/apport-kde.py:200 ../kde/apport-kde.py:209
+#: ../gtk/apport-gtk.ui.h:10 ../gtk/apport-gtk.py:172 ../gtk/apport-gtk.py:219
+#: ../kde/apport-kde.py:205
msgid "Continue"
msgstr "Devam Et"
@@ -627,7 +624,7 @@
msgid "Uploading problem information"
msgstr "Sorun bilgileri yükleniyor"
-#: ../gtk/apport-gtk.ui.h:15 ../kde/apport-kde.py:389
+#: ../gtk/apport-gtk.ui.h:15 ../kde/apport-kde.py:385
msgid ""
"The collected information is being sent to the bug tracking system. This "
"might take a few minutes."
@@ -654,8 +651,7 @@
#: ../bin/apport-retrace.py:43
msgid ""
"Write modified report to given file instead of changing the original report"
-msgstr ""
-"Asıl raporu değiştirmek yerine düzeltilmiş raporu verilen dosyaya yaz"
+msgstr "Asıl raporu değiştirmek yerine düzeltilmiş raporu verilen dosyaya yaz"
#: ../bin/apport-retrace.py:45
msgid "Remove the core dump from the report after stack trace regeneration"
@@ -695,9 +691,8 @@
"kaynağına gidebilir."
#: ../bin/apport-retrace.py:57
-msgid ""
-"Report download/install progress when installing packages into sandbox"
-msgstr ""
+msgid "Report download/install progress when installing packages into sandbox"
+msgstr "Paketler sandbox içine kurulurken indirme/yüklemeyi raporla"
#: ../bin/apport-retrace.py:59
msgid "Prepend timestamps to log messages, for batch operation"
@@ -705,12 +700,13 @@
#: ../bin/apport-retrace.py:61
msgid "Cache directory for packages downloaded in the sandbox"
-msgstr ""
+msgstr "Sandbox içine indirilmiş paketler için önbellek dizini"
#: ../bin/apport-retrace.py:63
msgid ""
"Install an extra package into the sandbox (can be specified multiple times)"
msgstr ""
+"Fazladan bir paketi sandbox içine yükle (birden çok kez belirtilebilir)"
#: ../bin/apport-retrace.py:65
msgid ""
@@ -731,8 +727,7 @@
"göndermeden önce onay al."
#: ../bin/apport-retrace.py:69
-msgid ""
-"Path to the duplicate sqlite database (default: no duplicate checking)"
+msgid "Path to the duplicate sqlite database (default: no duplicate checking)"
msgstr "Kopya sqlite veritabanının yolu (varsayılan: kopya kontrolü yok)"
#: ../bin/apport-retrace.py:74
@@ -767,64 +762,65 @@
msgstr ""
"Sisteminiz şimdi kararsız hale gelebilir ve yeniden başlatılması gerekebilir."
-#: ../gtk/apport-gtk.py:133
+#: ../gtk/apport-gtk.py:127
#, python-format
msgid "Sorry, the application %s has closed unexpectedly."
msgstr "Üzgünüz, %s uygulaması beklenmedik bir şekilde kapandı."
-#: ../gtk/apport-gtk.py:136
+#: ../gtk/apport-gtk.py:130
#, python-format
msgid "Sorry, %s has closed unexpectedly."
msgstr "Üzgünüz, %s beklenmedik bir şekilde kapandı."
-#: ../gtk/apport-gtk.py:142 ../kde/apport-kde.py:170 ../kde/apport-kde.py:203
+#: ../gtk/apport-gtk.py:136 ../kde/apport-kde.py:170 ../kde/apport-kde.py:199
#, python-format
msgid "Sorry, %s has experienced an internal error."
msgstr "Üzgünüz, %s içsel bir hatâyla karşılaştı."
-#: ../gtk/apport-gtk.py:157 ../kde/apport-kde.py:164
+#: ../gtk/apport-gtk.py:151 ../kde/apport-kde.py:164
msgid "Send"
msgstr "Gönder"
-#: ../gtk/apport-gtk.py:194 ../kde/apport-kde.py:178
+#: ../gtk/apport-gtk.py:188 ../kde/apport-kde.py:178
#, python-format
msgid "Package: %s"
msgstr "Paket: %s"
-#: ../gtk/apport-gtk.py:201 ../kde/apport-kde.py:184
+#: ../gtk/apport-gtk.py:195 ../kde/apport-kde.py:184
msgid "Sorry, a problem occurred while installing software."
msgstr "Üzgünüz, yazılım yüklenirken bir hatâyla karşılaşıldı."
-#: ../gtk/apport-gtk.py:210 ../kde/apport-kde.py:190
+#: ../gtk/apport-gtk.py:204 ../kde/apport-kde.py:190
#, python-format
msgid "The application %s has closed unexpectedly."
msgstr "%s yazılımı beklenmedik bir şekilde kapandı."
-#: ../gtk/apport-gtk.py:216 ../kde/apport-kde.py:197 ../kde/apport-kde.py:334
+#: ../gtk/apport-gtk.py:208 ../gtk/apport-gtk.py:270 ../kde/apport-kde.py:196
+#: ../kde/apport-kde.py:330
msgid "Relaunch"
msgstr "Yeniden başlat"
-#: ../gtk/apport-gtk.py:231 ../kde/apport-kde.py:210
+#: ../gtk/apport-gtk.py:220 ../kde/apport-kde.py:206
msgid "Ignore future problems of this type"
msgstr "İlerde oluşabilecek bu türden sorunları yok say"
-#: ../gtk/apport-gtk.py:489 ../kde/apport-kde.py:245
+#: ../gtk/apport-gtk.py:478 ../kde/apport-kde.py:241
msgid "Hide Details"
msgstr "Ayrıntıları Gizle"
-#: ../kde/apport-kde.py:271
+#: ../kde/apport-kde.py:267
msgid "Username:"
msgstr "Kullanıcı Adı:"
-#: ../kde/apport-kde.py:272
+#: ../kde/apport-kde.py:268
msgid "Password:"
msgstr "Parola:"
-#: ../kde/apport-kde.py:359
+#: ../kde/apport-kde.py:355
msgid "Collecting Problem Information"
msgstr "Sorun Bilgileri Toplanıyor"
-#: ../kde/apport-kde.py:361
+#: ../kde/apport-kde.py:357
msgid ""
"The collected information can be sent to the developers to improve the "
"application. This might take a few minutes."
@@ -832,7 +828,7 @@
"Toplanan bilgi, uygulamanın geliştirilmesi için geliştiricilere "
"gönderilebilir. Bu, birkaç dakika sürebilir."
-#: ../kde/apport-kde.py:387
+#: ../kde/apport-kde.py:383
msgid "Uploading Problem Information"
msgstr "Sorun Bilgileri Gönderiliyor"
@@ -849,18 +845,17 @@
msgid "Destination directory exists and is not empty."
msgstr "Hedef dizin zaten mevcut ve boş değil."
-#, no-c-format, python-format
#~ msgid "Complete report (recommended; %s)"
#~ msgstr "Tam rapor (önerilen; %s)"
#~ msgid ""
#~ "If you were not doing anything confidential (entering passwords or other "
-#~ "private information), you can help to improve the application by reporting "
-#~ "the problem."
+#~ "private information), you can help to improve the application by "
+#~ "reporting the problem."
#~ msgstr ""
-#~ "Sorun oluştuğunda yapmakta olduğunuz işlemin gizliliği yoksa (parola ya da "
-#~ "başka kişisel bilgilerin girilmesi gibi), sorunu rapor ederek uygulamanın "
-#~ "geliştirilmesine yardım edebilirsiniz."
+#~ "Sorun oluştuğunda yapmakta olduğunuz işlemin gizliliği yoksa (parola ya "
+#~ "da başka kişisel bilgilerin girilmesi gibi), sorunu rapor ederek "
+#~ "uygulamanın geliştirilmesine yardım edebilirsiniz."
#~ msgid "_Send Report"
#~ msgstr "Rapor _Gönder"
@@ -872,9 +867,9 @@
#~ msgstr "_Programın bu sürümünün gelecekteki çökmeleri göz ardı et."
#~ msgid ""
-#~ "This will remove some large items from the report. These are very useful for "
-#~ "developers to debug the problem, but might be too big for you to upload if "
-#~ "you have a slow internet connection."
+#~ "This will remove some large items from the report. These are very useful "
+#~ "for developers to debug the problem, but might be too big for you to "
+#~ "upload if you have a slow internet connection."
#~ msgstr ""
#~ "Bu, rapordan kimi büyük öğeleri çıkaracak. Bunlar geliştiriciler için çok "
#~ "kullanışlı bilgiler olsa da, eğer yavaş bir internet bağlantınız varsa "
@@ -900,7 +895,8 @@
#~ msgid "You can help the developers to fix the problem by reporting it."
#~ msgstr ""
-#~ "Bu sorunu rapor ederek geliştiricilerin düzeltmesinee yardım edebilirsiniz."
+#~ "Bu sorunu rapor ederek geliştiricilerin düzeltmesinee yardım "
+#~ "edebilirsiniz."
#~ msgid "Kernel problem"
#~ msgstr "Çekirdek sorunu"
@@ -914,23 +910,19 @@
#~ msgid "&Report Problem..."
#~ msgstr "&Sorunu Bildir..."
-#, python-format
#~ msgid "Sorry, %s closed unexpectedly."
#~ msgstr "Üzgünüm, %s beklenmedik bir şekilde kapandı."
#~ msgid "&Send"
#~ msgstr "&Gönder"
-#, python-format
#~ msgid "%s closed unexpectedly on %s at %s."
#~ msgstr ""
#~ "%s uygulaması %s tarihinde %s saatinde beklenmedik şekilde kapatıldı."
-#, python-format
#~ msgid "This is not a genuine %s package"
#~ msgstr "Bu özgün bir %s paketi değil"
-#, no-c-format
#~ msgid ""
#~ "Sorry, the package \"%s\" failed to "
#~ "install or upgrade."
@@ -946,24 +938,22 @@
#~ msgstr ""
#~ "Geliştiricilerine sorunu rapor gönderilsin mi?\n"
#~ "\n"
-#~ "Sorunu raporladıktan sonra, otomatik olarak açılan web tarayıcısında formu "
-#~ "doldurun gönderildi."
+#~ "Sorunu raporladıktan sonra, otomatik olarak açılan web tarayıcısında "
+#~ "formu doldurun gönderildi."
-#, python-format
#~ msgid "&Send complete report (recommended; %s)"
#~ msgstr "&Tam rapor gönderin(önerilen; %s)"
-#, python-format
#~ msgid "Send &reduced report (slow Internet connection; %s)"
#~ msgstr "&Özet rapor gönderin (düşük ağ bağlantısı; %s)"
-#, python-format
#~ msgid "The package \"%s\" failed to install or upgrade."
#~ msgstr "\"%s\" paketinin kurulumu veya güncellenmesi başarısız."
#~ msgid ""
#~ "If you were not doing anything confidential (entering passwords or other\n"
-#~ "private information), you can help to improve the application by reporting\n"
+#~ "private information), you can help to improve the application by "
+#~ "reporting\n"
#~ "the problem."
#~ msgstr ""
#~ "Eğer güvenlik gerektiren bir işlem yapmıyorsanız (şifre veya başka\n"
@@ -971,7 +961,6 @@
#~ "geliştirilmesine\n"
#~ "yardımcı olabilirsiniz."
-#, no-c-format, python-format
#~ msgid "Reduced report (slow Internet connection; %s)"
#~ msgstr "Kısa rapor (yavaş internet bağlantısı; %s)"
--- apport-2.0.1.orig/po/pt_BR.po
+++ apport-2.0.1/po/pt_BR.po
@@ -8,15 +8,15 @@
"Project-Id-Version: apport\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-03-21 18:25+0100\n"
-"PO-Revision-Date: 2011-10-10 13:27+0000\n"
-"Last-Translator: Rafael Neri \n"
+"PO-Revision-Date: 2012-04-13 13:37+0000\n"
+"Last-Translator: Neliton Pereira Junior \n"
"Language-Team: Portuguese (Brazil) \n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-03-22 04:35+0000\n"
-"X-Generator: Launchpad (build 14981)\n"
-"Language: \n"
+"X-Launchpad-Export-Date: 2012-04-14 04:35+0000\n"
+"X-Generator: Launchpad (build 15070)\n"
#: ../apport/ui.py:92
msgid "This package does not seem to be installed correctly"
@@ -166,8 +166,8 @@
"bug as a duplicate of another than to move your comments and attachments to "
"a new bug.\n"
"\n"
-"Subsequently, we recommend that you file a new bug report using \"apport-"
-"bug\" and make a comment in this bug about the one you file.\n"
+"Subsequently, we recommend that you file a new bug report using \"apport-bug"
+"\" and make a comment in this bug about the one you file.\n"
"\n"
"Do you really want to proceed?"
msgstr ""
@@ -223,11 +223,10 @@
"Adicione um rótulo a mais ao relatório. Pode ser especificado várias vezes."
#: ../apport/ui.py:621
-msgid ""
-"%prog [options] [symptom|pid|package|program path|.apport/.crash file]"
+msgid "%prog [options] [symptom|pid|package|program path|.apport/.crash file]"
msgstr ""
-"%prog [opções] [sintoma|pid|pacote|localização do programa|arquivo "
-".apport/.crash]"
+"%prog [opções] [sintoma|pid|pacote|localização do programa|arquivo .apport/."
+"crash]"
#: ../apport/ui.py:624
msgid ""
@@ -245,8 +244,7 @@
#: ../apport/ui.py:628
msgid "Start in bug updating mode. Can take an optional --package."
-msgstr ""
-"Iniciar em modo de atualização de erro. Aceita o parâmetro --package."
+msgstr "Iniciar em modo de atualização de erro. Aceita o parâmetro --package."
#: ../apport/ui.py:630
msgid ""
@@ -670,8 +668,7 @@
#: ../bin/apport-retrace.py:45
msgid "Remove the core dump from the report after stack trace regeneration"
-msgstr ""
-"Remove o core dump do relatório após a regeneração da análise da pilha"
+msgstr "Remove o core dump do relatório após a regeneração da análise da pilha"
#: ../bin/apport-retrace.py:47
msgid "Override report's CoreFile"
@@ -707,8 +704,7 @@
"ocorreram na versão em execução no momento."
#: ../bin/apport-retrace.py:57
-msgid ""
-"Report download/install progress when installing packages into sandbox"
+msgid "Report download/install progress when installing packages into sandbox"
msgstr ""
"Relatar progresso ao baixar/instalar durante instalação do pacotes na área "
"local"
@@ -748,8 +744,7 @@
"los para o banco de dados de falhas."
#: ../bin/apport-retrace.py:69
-msgid ""
-"Path to the duplicate sqlite database (default: no duplicate checking)"
+msgid "Path to the duplicate sqlite database (default: no duplicate checking)"
msgstr ""
"Caminho para o banco de dados de duplicados do SQLite (padrão: nenhuma "
"verificação duplicação)"
@@ -827,7 +822,7 @@
#: ../gtk/apport-gtk.py:220 ../kde/apport-kde.py:206
msgid "Ignore future problems of this type"
-msgstr ""
+msgstr "Ignorar futuros problemas deste tipo"
#: ../gtk/apport-gtk.py:478 ../kde/apport-kde.py:241
msgid "Hide Details"
@@ -870,11 +865,16 @@
msgid "Destination directory exists and is not empty."
msgstr "Diretório de destino existe e não está vazio."
-#, python-format
+#~ msgid ""
+#~ "Directory for unpacked packages. Future runs will assume that any already "
+#~ "downloaded package is also extracted to this sandbox."
+#~ msgstr ""
+#~ "Diretório para pacotes descompactados. Execuções futuras assumirão que "
+#~ "qualquer pacote obtido via download também será extraído nesta área local."
+
#~ msgid "The package \"%s\" failed to install or upgrade."
#~ msgstr "O pacote \"%s\" falhou na instalação ou atualização."
-#, no-c-format, python-format
#~ msgid "Complete report (recommended; %s)"
#~ msgstr "Relatório completo (recomendado; %s)"
@@ -889,7 +889,6 @@
#~ "Após o relatório de problemas ser enviado, preencha o formulário no "
#~ "navegador que se abrirá automaticamente."
-#, python-format
#~ msgid "Sorry, %s closed unexpectedly"
#~ msgstr "Desculpe, %s fechou inesperadamente"
@@ -909,18 +908,15 @@
#~ "Após o relatório de problemas ser enviado, preencha o formulário no "
#~ "navegador que se abrirá automaticamente."
-#, python-format
#~ msgid "%s closed unexpectedly on %s at %s."
#~ msgstr "%s fechou inesperadamente em %s em %s."
#~ msgid "Restart _Program"
#~ msgstr "Reiniciar o _Programa"
-#, python-format
#~ msgid "Sorry, the package \"%s\" failed to install or upgrade."
#~ msgstr "Desculpe, o pacote \"%s\" falhou na instalação ou atualização."
-#, no-c-format
#~ msgid ""
#~ "Sorry, the package \"%s\" failed to "
#~ "install or upgrade."
@@ -928,15 +924,12 @@
#~ "Desculpe, falha ao instalar ou "
#~ "atualizar o pacote \"%s\"."
-#, python-format
#~ msgid "&Send complete report (recommended; %s)"
#~ msgstr "&Enviar relatório completo (recomendado; %s)"
-#, no-c-format, python-format
#~ msgid "Reduced report (slow Internet connection; %s)"
#~ msgstr "Relatório reduzido (baixa conexão de internet; %s)"
-#, python-format
#~ msgid "Sorry, %s closed unexpectedly."
#~ msgstr "Desculpe, %s fechou inesperadamente."
@@ -946,18 +939,18 @@
#~ msgid "Restart &Program"
#~ msgstr "Reiniciar o &Programa"
-#, python-format
#~ msgid "Send &reduced report (slow Internet connection; %s)"
#~ msgstr "Enviar relatório &resumido (conexão lenta com a internet; %s)"
#~ msgid ""
-#~ "This will remove some large items from the report. These are very useful for "
-#~ "developers to debug the problem, but might be too big for you to upload if "
-#~ "you have a slow internet connection."
+#~ "This will remove some large items from the report. These are very useful "
+#~ "for developers to debug the problem, but might be too big for you to "
+#~ "upload if you have a slow internet connection."
#~ msgstr ""
-#~ "Isto removerá alguns itens grandes do relatório. Estes são muito úteis para "
-#~ "que os desenvolvedores solucionem o problema, mas podem ser demasiadamente "
-#~ "grandes para que você os envie caso tenha uma conexão lenta com a Internet."
+#~ "Isto removerá alguns itens grandes do relatório. Estes são muito úteis "
+#~ "para que os desenvolvedores solucionem o problema, mas podem ser "
+#~ "demasiadamente grandes para que você os envie caso tenha uma conexão "
+#~ "lenta com a Internet."
#~ msgid "&Report Problem..."
#~ msgstr "&Reportar Problema..."
@@ -974,9 +967,9 @@
#~ msgid ""
#~ "You can help the developers to fix the package by reporting the problem."
#~ msgstr ""
-#~ "Você pode ajudar os desenvolvedores a reparar o pacote informando o problema."
+#~ "Você pode ajudar os desenvolvedores a reparar o pacote informando o "
+#~ "problema."
-#, python-format
#~ msgid "Sorry, the program \"%s\" closed unexpectedly."
#~ msgstr "Desculpe, o programa %s fechou inesperadamente"
@@ -1001,23 +994,24 @@
#~ msgid ""
#~ "If you were not doing anything confidential (entering passwords or other "
-#~ "private information), you can help to improve the application by reporting "
-#~ "the problem."
+#~ "private information), you can help to improve the application by "
+#~ "reporting the problem."
#~ msgstr ""
#~ "Se você não estava fazendo nada confidencial (inserindo senhas ou a outra "
-#~ "informação privada), você pode ajudar a melhorar este aplicativo relatando o "
-#~ "problema ocorrido."
+#~ "informação privada), você pode ajudar a melhorar este aplicativo "
+#~ "relatando o problema ocorrido."
#~ msgid ""
#~ "If you were not doing anything confidential (entering passwords or other\n"
-#~ "private information), you can help to improve the application by reporting\n"
+#~ "private information), you can help to improve the application by "
+#~ "reporting\n"
#~ "the problem."
#~ msgstr ""
#~ "Se você não estava fazendo nada confidencial (digitando senhas ou outras\n"
-#~ "informações privadas), você pode ajudar a melhorar o aplicativo relatando\n"
+#~ "informações privadas), você pode ajudar a melhorar o aplicativo "
+#~ "relatando\n"
#~ "o problema."
-#, python-format
#~ msgid "This is not a genuine %s package"
#~ msgstr "Este não é um pacote %s genuíno"
--- apport-2.0.1.orig/apport/report.py
+++ apport-2.0.1/apport/report.py
@@ -222,7 +222,8 @@
version = None
self['Package'] = '%s %s%s' % (package, version or '(not installed)',
self._customized_package_suffix(package))
- self['SourcePackage'] = packaging.get_source(package)
+ if version or 'SourcePackage' not in self:
+ self['SourcePackage'] = packaging.get_source(package)
if not version:
return
@@ -1248,6 +1249,10 @@
if not addr.startswith('0x'):
continue
addr = int(addr, 16) # we do want to know about ValueErrors here, so don't catch
+ # ignore impossibly low addresses; these are usually artifacts
+ # from gdb when not having debug symbols
+ if addr < 0x1000:
+ continue
offset = self._address_to_offset(addr)
if offset:
# avoid ':' in ELF paths, we use that as separator
--- apport-2.0.1.orig/apport/hookutils.py
+++ apport-2.0.1/apport/hookutils.py
@@ -413,17 +413,21 @@
'''
return recent_logfile('/var/log/syslog', pattern)
-def recent_logfile(logfile, pattern):
+def recent_logfile(logfile, pattern, maxlines=10000):
'''Extract recent messages from a logfile which match a regex.
- pattern should be a "re" object.
+ pattern should be a "re" object. By default this catches at most the last
+ 1000 lines, but this can be modified with a different maxlines argument.
'''
lines = ''
try:
- with open(logfile) as f:
- for line in f:
+ tail = subprocess.Popen(['tail', '-n', str(maxlines), logfile],
+ stdout=subprocess.PIPE)
+ while tail.poll() is None:
+ for line in tail.stdout:
if pattern.search(line):
lines += line
+ tail.wait()
except IOError:
return ''
return lines
@@ -817,3 +821,18 @@
return None
return session_start_time <= report_time
+
+
+def attach_default_grub(report, key=None):
+ '''attach /etc/default/grub after filtering out password lines'''
+
+ path = '/etc/default/grub'
+ if not key:
+ key = path_to_key(path)
+
+ if os.path.exists(path):
+ with open(path, 'r') as f:
+ filtered = [l if not l.startswith('password')
+ else '### PASSWORD LINE REMOVED ###'
+ for l in f.readlines()]
+ report[key] = ''.join(filtered)
--- apport-2.0.1.orig/apport/ui.py
+++ apport-2.0.1/apport/ui.py
@@ -258,15 +258,26 @@
if not response['report']:
return
- apport.fileutils.mark_report_upload(report_file)
+ # We don't want to send crashes to the crash database for binaries
+ # that changed since the crash happened. See LP: #1039220 for
+ # details.
+ if 'MarkForUpload' in self.report and \
+ self.report['MarkForUpload'] != 'False':
+ apport.fileutils.mark_report_upload(report_file)
# We check for duplicates and unreportable crashes here, rather
# than before we show the dialog, as we want to submit these to the
# crash database, but not Launchpad.
- if self.handle_duplicate():
- return
- if self.check_unreportable():
- return
- self.file_report()
+ if self.crashdb.accepts(self.report):
+ # FIXME: This behaviour is not really correct, but necessary as
+ # long as we only support a single crashdb and have whoopsie
+ # hardcoded. Once we have multiple crash dbs, we need to check
+ # accepts() earlier, and not even present the data if none of
+ # the DBs wants the report. See LP#957177 for details.
+ if self.handle_duplicate():
+ return
+ if self.check_unreportable():
+ return
+ self.file_report()
except IOError as e:
# fail gracefully if file is not readable for us
if e.errno in (errno.EPERM, errno.EACCES):
@@ -806,6 +817,7 @@
If a symptom script is given, this will be run first (used by
run_symptom()).
'''
+ self.report['MarkForUpload'] = 'True'
# check if binary changed since the crash happened
if 'ExecutablePath' in self.report and 'ExecutableTimestamp' in self.report:
orig_time = int(self.report['ExecutableTimestamp'])
@@ -813,6 +825,7 @@
cur_time = int(os.stat(self.report['ExecutablePath']).st_mtime)
if orig_time != cur_time:
+ self.report['MarkForUpload'] = 'False'
self.report['UnreportableReason'] = (
_('The problem happened with the program %s which changed '
'since the crash occurred.') % self.report['ExecutablePath'])
@@ -972,15 +985,13 @@
def file_report(self):
'''Upload the current report and guide the user to the reporting web page.'''
-
- # FIXME: This behaviour is not really correct, but necessary as long as
- # we only support a single crashdb and have whoopsie hardcoded. Once we
- # have multiple crash dbs, we need to check accepts() earlier, and not
- # even present the data if none of the DBs wants the report. See
- # LP#957177 for details.
+ # FIXME: This behaviour is not really correct, but necessary as
+ # long as we only support a single crashdb and have whoopsie
+ # hardcoded. Once we have multiple crash dbs, we need to check
+ # accepts() earlier, and not even present the data if none of
+ # the DBs wants the report. See LP#957177 for details.
if not self.crashdb.accepts(self.report):
return
-
# drop PackageArchitecture if equal to Architecture
if self.report.get('PackageArchitecture') == self.report.get('Architecture'):
try:
@@ -1098,6 +1109,8 @@
If so, display an info message and return True.
'''
+ if not self.crashdb.accepts(self.report):
+ return False
if 'UnreportableReason' in self.report:
if isinstance(self.report['UnreportableReason'], str):
self.report['UnreportableReason'] = self.report['UnreportableReason'].decode('UTF-8')
@@ -1136,6 +1149,8 @@
If so, tell the user about it, open the existing bug in a browser, and
return True.
'''
+ if not self.crashdb.accepts(self.report):
+ return False
if 'KnownReport' not in self.report:
return False
--- apport-2.0.1.orig/apport/fileutils.py
+++ apport-2.0.1/apport/fileutils.py
@@ -94,8 +94,18 @@
return (st.st_atime > st.st_mtime) or (st.st_size == 0)
def mark_report_upload(report):
- report = '%s.upload' % report.rsplit('.', 1)[0]
- with open(report, 'a'):
+ upload = '%s.upload' % report.rsplit('.', 1)[0]
+ uploaded = '%s.uploaded' % report.rsplit('.', 1)[0]
+ # if uploaded exists and is older than the report remove it and upload
+ if os.path.exists(uploaded) and os.path.exists(upload):
+ report_st = os.stat(report)
+ upload_st = os.stat(upload)
+ uploaded_st = os.stat(uploaded)
+ if upload_st.st_mtime < report_st.st_mtime:
+ os.unlink(upload)
+ if uploaded_st.st_mtime < report_st.st_mtime:
+ os.unlink(uploaded)
+ with open(upload, 'a'):
pass
def mark_report_seen(report):
--- apport-2.0.1.orig/etc/default/apport
+++ apport-2.0.1/etc/default/apport
@@ -1,4 +1,4 @@
# set this to 0 to disable apport, or to 1 to enable it
# you can temporarily override this with
-# sudo force_start=1 /etc/init.d/apport start
+# sudo service apport start force_start=1
enabled=1
--- apport-2.0.1.orig/etc/apport/crashdb.conf
+++ apport-2.0.1/etc/apport/crashdb.conf
@@ -1,6 +1,18 @@
# map crash database names to CrashDatabase implementations and URLs
-default = 'debug'
+default = 'ubuntu'
+
+def get_oem_project():
+ '''Determine OEM project name from Distribution Channel Descriptor
+
+ Return None if it cannot be determined or does not exist.
+ '''
+ try:
+ dcd = open('/var/lib/ubuntu_dist_channel').read()
+ if dcd.startswith('canonical-oem-'):
+ return dcd.split('-')[2]
+ except IOError:
+ return None
databases = {
'ubuntu': {
@@ -8,14 +20,14 @@
'bug_pattern_url': 'http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml',
'dupdb_url': 'http://people.canonical.com/~ubuntu-archive/apport-duplicates',
'distro': 'ubuntu',
+ 'problem_types': ['Bug', 'Package'],
'escalation_tag': 'bugpattern-needed',
'escalated_tag': 'bugpattern-written',
},
- 'fedora': {
- # NOTE this will change Fall '07 when RHT switches to bugzilla 3.x!
- 'impl': 'rhbugzilla',
- 'bug_pattern_url': 'http://qa.fedoraproject.org/apport/bugpatterns.xml',
- 'distro': 'fedora'
+ 'canonical-oem': {
+ 'impl': 'launchpad',
+ 'bug_pattern_url': 'http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml',
+ 'project': get_oem_project(),
},
'debug': {
# for debugging
--- apport-2.0.1.orig/etc/apport/native-origins.d/lts-q-backports
+++ apport-2.0.1/etc/apport/native-origins.d/lts-q-backports
@@ -0,0 +1 @@
+LP-PPA-ubuntu-x-swat-q-lts-backport
--- apport-2.0.1.orig/etc/apport/blacklist.d/apport
+++ apport-2.0.1/etc/apport/blacklist.d/apport
@@ -0,0 +1,5 @@
+/usr/bin/wine-preloader
+/usr/lib/nspluginwrapper/i386/linux/npviewer
+/usr/lib/nspluginwrapper/i386/linux/npviewer.bin
+/usr/lib/nspluginwrapper/x86_64/linux/npplayer
+/usr/lib/nspluginwrapper/x86_64/linux/npwrapper.so
--- apport-2.0.1.orig/backends/packaging-apt-dpkg.py
+++ apport-2.0.1/backends/packaging-apt-dpkg.py
@@ -161,10 +161,8 @@
except IOError:
pass
- origins = None
- origins = pkg.candidate.origins
- if origins: # might be None
- for o in origins:
+ if pkg.candidate and pkg.candidate.origins: # might be None
+ for o in pkg.candidate.origins:
if o.origin in native_origins:
return True
return False
--- apport-2.0.1.orig/test/test_hookutils.py
+++ apport-2.0.1/test/test_hookutils.py
@@ -1,5 +1,5 @@
# coding: UTF-8
-import unittest, tempfile, locale, subprocess, re, shutil, os.path
+import unittest, tempfile, locale, subprocess, re, shutil, os.path, sys
import apport.hookutils
@@ -136,10 +136,33 @@
self.assertEqual(list(report), [])
def test_recent_logfile(self):
+ '''recent_logfile'''
+
self.assertEqual(apport.hookutils.recent_logfile('/nonexisting', re.compile('.')), '')
self.assertEqual(apport.hookutils.recent_syslog(re.compile('ThisCantPossiblyHitAnything')), '')
self.assertNotEqual(len(apport.hookutils.recent_syslog(re.compile('.'))), 0)
+ def test_recent_logfile_overflow(self):
+ '''recent_logfile on a huge file'''
+
+ log = os.path.join(self.workdir, 'syslog')
+ with open(log, 'w') as f:
+ lines = 1000000
+ while lines >= 0:
+ f.write('Apr 20 11:30:00 komputer kernel: bogus message\n')
+ lines -= 1
+
+ mem_before = self._get_mem_usage()
+ data = apport.hookutils.recent_logfile(log, re.compile('kernel'))
+ mem_after = self._get_mem_usage()
+ delta_kb = mem_after - mem_before
+ sys.stderr.write('[Δ %i kB] ' % delta_kb)
+ self.assertLess(delta_kb, 5000)
+
+ self.assertTrue(data.startswith('Apr 20 11:30:00 komputer kernel: bogus message\n'))
+ self.assertGreater(len(data), 100000)
+ self.assertLess(len(data), 1000000)
+
@unittest.skipIf(apport.hookutils.apport.hookutils.in_session_of_problem(apport.Report()) is None, 'no ConsoleKit session')
def test_in_session_of_problem(self):
'''in_session_of_problem()'''
@@ -269,4 +292,15 @@
out = apport.hookutils.command_output(['cat'], input='hello')
self.assertEqual(out, 'hello')
+ @classmethod
+ def _get_mem_usage(klass):
+ '''Get current memory usage in kB'''
+
+ with open('/proc/self/status') as f:
+ for line in f:
+ if line.startswith('VmSize:'):
+ return int(line.split()[1])
+ else:
+ raise SystemError('did not find VmSize: in /proc/self/status')
+
unittest.main()
--- apport-2.0.1.orig/test/test_report.py
+++ apport-2.0.1/test/test_report.py
@@ -1726,6 +1726,8 @@
self.assertEqual(pr._address_to_offset(0x006de000), '/bin/bash+0')
self.assertEqual(pr._address_to_offset(0x006df000), '/bin/bash+1000')
self.assertEqual(pr._address_to_offset(0x006df001), None)
+ self.assertEqual(pr._address_to_offset(0), None)
+ self.assertEqual(pr._address_to_offset(0x10), None)
self.assertEqual(pr._address_to_offset(0x7f491fc24010),
'/lib/with spaces !/libfoo.so+10')
@@ -1798,7 +1800,27 @@
#6 0x000000000041d715 in main ()
#7 0x000000000041d703 in _start ()
'''
- self.assertNotEqual(pr.crash_signature_addresses(), None)
+ sig = pr.crash_signature_addresses()
+ self.assertNotEqual(sig, None)
+
+ # one true unresolvable, and some "low address" artifacts; should be
+ # identical to the one above
+ pr['Stacktrace'] = '''
+#0 0x00007f491fac5687 in kill () at ../sysdeps/unix/syscall-template.S:82
+No locals.
+#1 0x000001000043fd51 in kill_pid ()
+#2 0x0000000000000010 in ??
+#3 g_main_context_iterate (context=0x1731680) at gmain.c:3068
+#4 0x000000000042eb76 in ?? ()
+#5 0x0000000000000000 in ?? ()
+#6 0x0000000000000421 in ?? ()
+#7 0x00000000004324d8 in ??
+No symbol table info available.
+#8 0x00000000004707e3 in parse_and_execute ()
+#9 0x000000000041d715 in main ()
+#10 0x000000000041d703 in _start ()
+'''
+ self.assertEqual(pr.crash_signature_addresses(), sig)
# two unresolvables, 2/7 is too much
pr['Stacktrace'] = '''
--- apport-2.0.1.orig/test/test_ui_gtk.py
+++ apport-2.0.1/test/test_ui_gtk.py
@@ -24,6 +24,8 @@
import apport.crashdb_impl.memory
+GLib.log_set_always_fatal(GLib.LogLevelFlags.LEVEL_WARNING | GLib.LogLevelFlags.LEVEL_CRITICAL)
+
if os.environ.get('APPORT_TEST_LOCAL'):
apport_gtk_path = 'gtk/apport-gtk'
kernel_oops_path = 'data/kernel_oops'
@@ -39,11 +41,6 @@
r.add_os_info()
klass.distro = r['DistroRelease'].split()[0]
- # disable package hooks, as they might ask for sudo password and other
- # interactive bits
- apport.report._hook_dir = '/nonexisting'
- apport.report._common_hook_dir = '/nonexisting'
-
def setUp(self):
self.report_dir = tempfile.mkdtemp()
apport.fileutils.report_dir = self.report_dir
@@ -70,8 +67,15 @@
with open(self.app.report_file, 'w') as f:
self.app.report.write(f)
+ # disable package hooks, as they might ask for sudo password and other
+ # interactive bits; allow tests to install their own hooks
+ self.hook_dir = tempfile.mkdtemp()
+ apport.report._hook_dir = self.hook_dir
+ apport.report._common_hook_dir = self.hook_dir
+
def tearDown(self):
shutil.rmtree(self.report_dir)
+ shutil.rmtree(self.hook_dir)
def test_close_button(self):
'''Clicking the close button on the window does not report the crash.'''
@@ -375,10 +379,18 @@
def test_crash_nodetails(self, *args):
'''Crash report without showing details'''
+ self.visible_progress = None
+
def cont(*args):
if not self.app.w('continue_button').get_visible():
return True
self.app.w('continue_button').clicked()
+ GLib.timeout_add(500, check_progress)
+ return False
+
+ def check_progress(*args):
+ self.visible_progress = self.app.w(
+ 'window_information_collection').get_property('visible')
return False
GLib.timeout_add_seconds(1, cont)
@@ -390,6 +402,9 @@
self.assertEqual(r['ProblemType'], 'Crash')
self.assertEqual(r['ExecutablePath'], '/bin/bash')
+ # should show a progress bar for info collection
+ self.assertEqual(self.visible_progress, True)
+
# data was collected
self.assertTrue(r['Package'].startswith('bash '))
self.assertTrue('libc' in r['Dependencies'])
@@ -402,6 +417,8 @@
def test_crash_details(self, *args):
'''Crash report with showing details'''
+ self.visible_progress = None
+
def show_details(*args):
if not self.app.w('show_details').get_visible():
return True
@@ -416,6 +433,12 @@
self.assertTrue(self.app.w('continue_button').get_visible())
self.app.w('continue_button').clicked()
+ GLib.timeout_add(500, check_progress)
+ return False
+
+ def check_progress(*args):
+ self.visible_progress = self.app.w(
+ 'window_information_collection').get_property('visible')
return False
GLib.timeout_add(200, show_details)
@@ -427,6 +450,9 @@
self.assertEqual(r['ProblemType'], 'Crash')
self.assertEqual(r['ExecutablePath'], '/bin/bash')
+ # we already collected details, do not show the progress dialog again
+ self.assertEqual(self.visible_progress, False)
+
# data was collected
self.assertTrue(r['Package'].startswith('bash '))
self.assertTrue('libc' in r['Dependencies'])
@@ -436,6 +462,43 @@
self.assertEqual(self.app.open_url.call_count, 1)
@patch.object(GTKUserInterface, 'open_url')
+ def test_crash_noaccept(self, *args):
+ '''Crash report with non-accepting crash DB'''
+
+ self.visible_progress = None
+
+ def cont(*args):
+ if not self.app.w('continue_button').get_visible():
+ return True
+ self.app.w('continue_button').clicked()
+ GLib.timeout_add(500, check_progress)
+ return False
+
+ def check_progress(*args):
+ self.visible_progress = self.app.w(
+ 'window_information_collection').get_property('visible')
+ return False
+
+ GLib.timeout_add_seconds(1, cont)
+ self.app.crashdb.options['problem_types'] = ['bug']
+ self.app.run_crash(self.app.report_file)
+
+ # we should not have reported the crash
+ self.assertEqual(self.app.crashdb.latest_id(), -1)
+ self.assertEqual(self.app.open_url.call_count, 0)
+
+ # no progress dialog for non-accepting DB
+ self.assertEqual(self.visible_progress, False)
+
+ # data was collected for whoopsie
+ r = self.app.report
+ self.assertEqual(r['ProblemType'], 'Crash')
+ self.assertEqual(r['ExecutablePath'], '/bin/bash')
+ self.assertTrue(r['Package'].startswith('bash '))
+ self.assertTrue('libc' in r['Dependencies'])
+ self.assertTrue('Stacktrace' in r)
+
+ @patch.object(GTKUserInterface, 'open_url')
def test_kerneloops_nodetails(self, *args):
'''Kernel oops report without showing details'''
@@ -540,6 +603,56 @@
# No URL in this mode
self.assertEqual(self.app.open_url.call_count, 0)
+ @patch.object(GTKUserInterface, 'open_url')
+ def test_update_report_different_binary_source(self, *args):
+ '''Updating an existing report on a source package which does not have a binary of the same name'''
+
+ self.app.report_file = None
+
+ def cont(*args):
+ if self.app.tree_model.get_iter_first() is None:
+ return True
+ self.app.w('continue_button').clicked()
+ return False
+
+ kernel_pkg = apport.packaging.get_kernel_package()
+ kernel_src = apport.packaging.get_source(kernel_pkg)
+ self.assertNotEqual(kernel_pkg, kernel_src,
+ 'this test assumes that the kernel binary package != kernel source package')
+ self.assertNotEqual(apport.packaging.get_version(kernel_pkg), '',
+ 'this test assumes that the kernel binary package %s is installed' % kernel_pkg)
+ # this test assumes that the kernel source package name is not an
+ # installed binary package
+ self.assertRaises(ValueError, apport.packaging.get_version, kernel_src)
+
+ # create source package hook, as otherwise there is nothing to collect
+ with open(os.path.join(self.hook_dir, 'source_%s.py' % kernel_src), 'w') as f:
+ f.write('def add_info(r, ui):\n r["MachineType"]="Laptop"\n')
+
+ # upload empty report
+ id = self.app.crashdb.upload({})
+ self.assertEqual(id, 0)
+
+ # run in update mode for that bug
+ self.app.options.update_report = 0
+ self.app.options.package = kernel_src
+
+ GLib.timeout_add(200, cont)
+ self.app.run_update_report()
+
+ # no new bug reported
+ self.assertEqual(self.app.crashdb.latest_id(), 0)
+
+ # bug was updated
+ r = self.app.crashdb.download(0)
+ self.assertTrue('ProcEnviron' in r)
+ self.assertTrue('DistroRelease' in r)
+ self.assertTrue('Uname' in r)
+ self.assertEqual(r['MachineType'], 'Laptop')
+
+ # No URL in this mode
+ self.assertEqual(self.app.open_url.call_count, 0)
+
@patch.object(GTKUserInterface, 'get_desktop_entry')
def test_missing_icon(self, *args):
# LP: 937354
@@ -620,4 +733,12 @@
GLib.timeout_add(200, close, 0)
self.app.ui_info_message('title', 'http://example.com ♪')
+ def test_immediate_close(self):
+ '''Close details window immediately'''
+
+ # this reproduces https://launchpad.net/bugs/938090
+ self.app.w('dialog_crash_new').destroy()
+ GLib.idle_add(Gtk.main_quit)
+ self.app.run_crash(self.app.report_file)
+
unittest.main()
--- apport-2.0.1.orig/test/test_ui.py
+++ apport-2.0.1/test/test_ui.py
@@ -941,7 +941,6 @@
r = apport.Report()
r['ExecutablePath'] = '/bin/bash'
r['Package'] = 'foobarbaz'
- r['SourcePackage'] = 'foobarbaz'
report_file = os.path.join(apport.fileutils.report_dir, 'test.crash')
r.write(open(report_file, 'w'))
@@ -1356,9 +1355,8 @@
'examine' : False,
'restart' : False }
- f = open(os.path.join(self.hookdir, 'source_foo.py'), 'w')
- f.write('def add_info(r, ui):\n r["MachineType"]="Laptop"\n')
- f.close()
+ with open(os.path.join(self.hookdir, 'source_foo.py'), 'w') as f:
+ f.write('def add_info(r, ui):\n r["MachineType"]="Laptop"\n')
self.assertEqual(self.ui.run_argv(), True, self.ui.report)
self.assertEqual(self.ui.msg_severity, None, self.ui.msg_text)
@@ -1371,6 +1369,41 @@
self.assertEqual(self.ui.report['MachineType'], 'Laptop')
self.assertTrue('ProcEnviron' in self.ui.report.keys())
+ def test_run_update_report_different_binary_source(self):
+ '''run_update_report() on a source package which does not have a binary of the same name'''
+
+ kernel_pkg = apport.packaging.get_kernel_package()
+ kernel_src = apport.packaging.get_source(kernel_pkg)
+ self.assertNotEqual(kernel_pkg, kernel_src,
+ 'this test assumes that the kernel binary package != kernel source package')
+ self.assertNotEqual(apport.packaging.get_version(kernel_pkg), '',
+ 'this test assumes that the kernel binary package %s is installed' % kernel_pkg)
+
+ # this test assumes that the kernel source package name is not an
+ # installed binary package
+ self.assertRaises(ValueError, apport.packaging.get_version, kernel_src)
+
+ sys.argv = ['ui-test', '-p', kernel_src, '-u', '1']
+ self.ui = TestSuiteUserInterface()
+ self.ui.present_details_response = {'report': True,
+ 'blacklist': False,
+ 'examine': False,
+ 'restart': False}
+
+ with open(os.path.join(self.hookdir, 'source_%s.py' % kernel_src), 'w') as f:
+ f.write('def add_info(r, ui):\n r["MachineType"]="Laptop"\n')
+
+ self.assertEqual(self.ui.run_argv(), True, self.ui.report)
+ self.assertEqual(self.ui.msg_severity, None, self.ui.msg_text)
+ self.assertEqual(self.ui.msg_title, None)
+ self.assertEqual(self.ui.opened_url, None)
+ self.assertTrue(self.ui.present_details_shown)
+
+ self.assertTrue(self.ui.ic_progress_pulses > 0)
+ self.assertEqual(self.ui.report['Package'], '%s (not installed)' % kernel_src)
+ self.assertEqual(self.ui.report['MachineType'], 'Laptop')
+ self.assertTrue('ProcEnviron' in self.ui.report.keys())
+
def _run_hook(self, code):
f = open(os.path.join(self.hookdir, 'coreutils.py'), 'w')
f.write('def add_info(report, ui):\n%s\n' %
--- apport-2.0.1.orig/test/test_fileutils.py
+++ apport-2.0.1/test/test_fileutils.py
@@ -115,6 +115,24 @@
self.assertEqual(apport.fileutils.seen_report(r), True)
self.assertEqual(set(apport.fileutils.get_new_reports()), nr)
+ def test_mark_2nd_report_upload(self):
+ '''mark_report_upload() for a previously uploaded report'''
+ upload = os.path.join(apport.fileutils.report_dir, 'report.upload')
+ with open(upload, 'w'):
+ pass
+ uploaded = os.path.join(apport.fileutils.report_dir, 'report.uploaded')
+ with open(uploaded, 'w'):
+ pass
+ time.sleep(1)
+ report = os.path.join(apport.fileutils.report_dir, 'report.crash')
+ with open(report, 'w'):
+ pass
+ time.sleep(1)
+ apport.fileutils.mark_report_upload(report)
+ upload_st = os.stat(upload)
+ report_st = os.stat(report)
+ self.assertTrue(upload_st.st_mtime > report_st.st_mtime)
+
def test_get_all_reports(self):
'''get_all_reports()'''
--- apport-2.0.1.orig/test/test_python_crashes.py
+++ apport-2.0.1/test/test_python_crashes.py
@@ -11,6 +11,7 @@
# the full text of the license.
import unittest, tempfile, subprocess, os, stat, sys, shutil, atexit
+import dbus
temp_report_dir = tempfile.mkdtemp()
os.environ['APPORT_REPORT_DIR'] = temp_report_dir
@@ -39,7 +40,7 @@
apport_python_hook.install()
def func(x):
- raise Exception, 'This should happen.'
+ raise Exception(b'This should happen. \\xe2\\x99\\xa5'.decode('UTF-8'))
%s
func(42)
@@ -52,7 +53,8 @@
err = p.communicate()[1]
self.assertEqual(p.returncode, 1,
'crashing test python program exits with failure code')
- self.assertTrue('Exception: This should happen.' in err)
+ if not extracode:
+ self.assertTrue('This should happen.' in err, err)
self.assertFalse('OSError' in err, err)
finally:
os.unlink(script)
@@ -85,7 +87,8 @@
self.assertEqual(pr['ExecutablePath'], script)
self.assertEqual(pr['PythonArgs'], "['%s', 'testarg1', 'testarg2']" % script)
self.assertTrue(pr['Traceback'].startswith('Traceback'))
- self.assertTrue("func\n raise Exception, 'This should happen." in pr['Traceback'])
+ self.assertTrue("func\n raise Exception(b'This should happen." in
+ pr['Traceback'], pr['Traceback'])
def test_existing(self):
'''Python crash hook overwrites seen existing files.'''
@@ -230,4 +233,27 @@
self.assertGreater(count, 1)
self.assertLess(count, limit)
+ def test_dbus_service_timeout_running(self):
+ '''DBus.Error.NoReply with a running service'''
+
+ # ensure the service is running
+ metadata_obj = dbus.SessionBus().get_object('org.gtk.vfs.Metadata', '/org/gtk/vfs/metadata')
+ self.assertNotEqual(metadata_obj, None)
+
+ # timeout of zero will always fail with NoReply
+ try:
+ subprocess.call(['killall', '-STOP', 'gvfsd-metadata'])
+ self._test_crash(extracode='''import dbus
+obj = dbus.SessionBus().get_object('org.gtk.vfs.Metadata', '/org/gtk/vfs/metadata')
+assert obj
+i = dbus.Interface(obj, 'org.freedesktop.DBus.Peer')
+i.Ping(timeout=1)
+''')
+ finally:
+ subprocess.call(['killall', '-CONT', 'gvfsd-metadata'])
+
+ # check report contents
+ reports = apport.fileutils.get_new_reports()
+ self.assertEqual(len(reports), 0, 'NoReply is an useless exception and should not create a report')
+
unittest.main()
--- apport-2.0.1.orig/test/test_signal_crashes.py
+++ apport-2.0.1/test/test_signal_crashes.py
@@ -409,6 +409,41 @@
self.do_crash()
self.assertEqual(apport.fileutils.get_all_reports(), [])
+ def test_modify_after_start(self):
+ '''ignores executables which got modified after process started'''
+
+ # create executable in a path we can modify which apport regards as
+ # likely packaged
+ (fd, myexe) = tempfile.mkstemp(dir='/var/tmp')
+ try:
+ with open(test_executable) as f:
+ os.write(fd, f.read())
+ os.close(fd)
+ os.chmod(myexe, 0o755)
+ time.sleep(1)
+
+ try:
+ test_proc = self.create_test_process(command=myexe)
+
+ # bump mtime of myexe to make it more recent than process start
+ # time; ensure this works with file systems with only second
+ # resolution
+ time.sleep(1.1)
+ os.utime(myexe, None)
+
+ app = subprocess.Popen([apport_path, str(test_proc), '42', '0'],
+ close_fds=True, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
+ app.stdin.write(b'boo')
+ app.stdin.close()
+ err = app.stderr.read().decode()
+ self.assertNotEqual(app.wait(), 0, err)
+ finally:
+ os.kill(test_proc, 9)
+ os.waitpid(test_proc, 0)
+
+ self.assertEqual(self.get_temp_all_reports(), [])
+ finally:
+ os.unlink(myexe)
#
# Helper methods
@@ -432,7 +467,7 @@
assert False, 'Could not execute ' + command
# wait until child process has execv()ed properly
- while 'test-apport' in open('/proc/%i/cmdline' % pid).read():
+ while 'test_signal' in open('/proc/%i/cmdline' % pid).read():
time.sleep(0.1)
time.sleep(0.3) # needs some more setup time
return pid
--- apport-2.0.1.orig/test/test_ui_kde.py
+++ apport-2.0.1/test/test_ui_kde.py
@@ -50,6 +50,12 @@
# use in-memory crashdb
self.app.crashdb = apport.crashdb_impl.memory.CrashDatabase(None, {})
+ # disable package hooks, as they might ask for sudo password and other
+ # interactive bits; allow tests to install their own hooks
+ self.hook_dir = tempfile.mkdtemp()
+ apport.report._hook_dir = self.hook_dir
+ apport.report._common_hook_dir = self.hook_dir
+
# test report
self.app.report_file = os.path.join(self.report_dir, 'bash.crash')
@@ -67,6 +73,7 @@
QCoreApplication.processEvents()
shutil.rmtree(self.report_dir)
+ shutil.rmtree(self.hook_dir)
def test_close_button(self):
'''Clicking the close button on the window does not report the crash.'''
@@ -279,13 +286,19 @@
def test_1_crash_nodetails(self, *args):
'''Crash report without showing details'''
+ self.visible_progress = None
+
def cont(*args):
if self.app.dialog and self.app.dialog.continue_button.isVisible():
self.app.dialog.continue_button.click()
+ QTimer.singleShot(500, check_progress)
return
# try again
QTimer.singleShot(1000, cont)
+ def check_progress(*args):
+ self.visible_progress = (self.app.progress != None)
+
QTimer.singleShot(1000, cont)
self.app.run_crash(self.app.report_file)
@@ -295,6 +308,9 @@
self.assertEqual(r['ProblemType'], 'Crash')
self.assertEqual(r['ExecutablePath'], '/bin/bash')
+ # should show a progress bar for info collection
+ self.assertEqual(self.visible_progress, True)
+
# data was collected
self.assertTrue(r['Package'].startswith('bash '))
self.assertTrue('libc' in r['Dependencies'])
@@ -307,6 +323,8 @@
def test_1_crash_details(self, *args):
'''Crash report with showing details'''
+ self.visible_progress = None
+
def show_details(*args):
if self.app.dialog and self.app.dialog.show_details.isVisible():
self.app.dialog.show_details.click()
@@ -325,10 +343,14 @@
if self.app.dialog and self.app.dialog.continue_button.isVisible():
self.app.dialog.continue_button.click()
+ QTimer.singleShot(500, check_progress)
return
# try again
QTimer.singleShot(200, cont)
+ def check_progress(*args):
+ self.visible_progress = (self.app.progress != None)
+
QTimer.singleShot(200, show_details)
self.app.run_crash(self.app.report_file)
@@ -338,6 +360,9 @@
self.assertEqual(r['ProblemType'], 'Crash')
self.assertEqual(r['ExecutablePath'], '/bin/bash')
+ # we already collected details, do not show the progress dialog again
+ self.assertEqual(self.visible_progress, False)
+
# data was collected
self.assertTrue(r['Package'].startswith('bash '))
self.assertTrue('libc' in r['Dependencies'])
@@ -346,6 +371,42 @@
# URL was opened
self.assertEqual(self.app.open_url.call_count, 1)
+ @patch.object(MainUserInterface, 'open_url')
+ def test_1_crash_noaccept(self, *args):
+ '''Crash report with non-accepting crash DB'''
+
+ self.visible_progress = None
+
+ def cont(*args):
+ if self.app.dialog and self.app.dialog.continue_button.isVisible():
+ self.app.dialog.continue_button.click()
+ QTimer.singleShot(500, check_progress)
+ return
+ # try again
+ QTimer.singleShot(1000, cont)
+
+ def check_progress(*args):
+ self.visible_progress = (self.app.progress != None)
+
+ QTimer.singleShot(1000, cont)
+ self.app.crashdb.options['problem_types'] = ['bug']
+ self.app.run_crash(self.app.report_file)
+
+ # we should not have reported the crash
+ self.assertEqual(self.app.crashdb.latest_id(), -1)
+ self.assertEqual(self.app.open_url.call_count, 0)
+
+ # no progress dialog for non-accepting DB
+ self.assertEqual(self.visible_progress, False)
+
+ # data was collected for whoopsie
+ r = self.app.report
+ self.assertEqual(r['ProblemType'], 'Crash')
+ self.assertEqual(r['ExecutablePath'], '/bin/bash')
+ self.assertTrue(r['Package'].startswith('bash '))
+ self.assertTrue('libc' in r['Dependencies'])
+ self.assertTrue('Stacktrace' in r)
+
def test_bug_report_installed_package(self):
'''Bug report for installed package'''
@@ -423,6 +484,57 @@
# No URL in this mode
self.assertEqual(self.app.open_url.call_count, 0)
+
+ @patch.object(MainUserInterface, 'open_url')
+ def test_1_update_report_different_binary_source(self, *args):
+ '''Updating an existing report on a source package which does not have a binary of the same name'''
+
+ self.app.report_file = None
+
+ def cont(*args):
+ if self.app.dialog and self.app.dialog.continue_button.isVisible():
+ self.app.dialog.continue_button.click()
+ return
+ # try again
+ QTimer.singleShot(200, cont)
+
+ kernel_pkg = apport.packaging.get_kernel_package()
+ kernel_src = apport.packaging.get_source(kernel_pkg)
+ self.assertNotEqual(kernel_pkg, kernel_src,
+ 'this test assumes that the kernel binary package != kernel source package')
+ self.assertNotEqual(apport.packaging.get_version(kernel_pkg), '',
+ 'this test assumes that the kernel binary package %s is installed' % kernel_pkg)
+ # this test assumes that the kernel source package name is not an
+ # installed binary package
+ self.assertRaises(ValueError, apport.packaging.get_version, kernel_src)
+
+ # create source package hook, as otherwise there is nothing to collect
+ with open(os.path.join(self.hook_dir, 'source_%s.py' % kernel_src), 'w') as f:
+ f.write('def add_info(r, ui):\n r["MachineType"]="Laptop"\n')
+
+ # upload empty report
+ id = self.app.crashdb.upload({})
+ self.assertEqual(id, 0)
+
+ # run in update mode for that bug
+ self.app.options.update_report = 0
+ self.app.options.package = kernel_src
+
+ QTimer.singleShot(200, cont)
+ self.app.run_update_report()
+
+ # no new bug reported
+ self.assertEqual(self.app.crashdb.latest_id(), 0)
+
+ # bug was updated
+ r = self.app.crashdb.download(0)
+ self.assertTrue('ProcEnviron' in r)
+ self.assertTrue('DistroRelease' in r)
+ self.assertTrue('Uname' in r)
+ self.assertEqual(r['MachineType'], 'Laptop')
+
+ # No URL in this mode
+ self.assertEqual(self.app.open_url.call_count, 0)
def test_administrator_disabled_reporting(self):
QTimer.singleShot(0, QCoreApplication.quit)
--- apport-2.0.1.orig/data/dump_acpi_tables.py
+++ apport-2.0.1/data/dump_acpi_tables.py
@@ -8,6 +8,7 @@
out.write('%s @ 0x00000000\n' % tablename)
n = 0
f = open(filename, 'rb')
+ hex_str = ''
try:
byte = f.read(1)
while byte != '':
--- apport-2.0.1.orig/data/apport
+++ apport-2.0.1/data/apport
@@ -273,6 +273,14 @@
error_log('Invalid PID')
sys.exit(1)
+ # check if the executable was modified after the process started (e. g.
+ # package got upgraded in between)
+ exe_mtime = os.stat('/proc/%s/exe' % pid).st_mtime
+ process_start = os.lstat('/proc/%s/cmdline' % pid).st_mtime
+ if not os.path.exists(os.readlink('/proc/%s/exe' % pid)) or exe_mtime > process_start:
+ error_log('executable was modified after program start, ignoring')
+ sys.exit(1)
+
info = apport.Report('Crash')
info['Signal'] = signum
info['CoreDump'] = (sys.stdin, True, usable_ram()*3/4, True)
--- apport-2.0.1.orig/data/general-hooks/automatix.py
+++ apport-2.0.1/data/general-hooks/automatix.py
@@ -0,0 +1,26 @@
+'''Do not send any crashes when automatix is or was installed, since it usually
+causes a mess in the system and causes a lot of package installation failures.
+
+Copyright (C) 2007 Canonical Ltd.
+Author: Martin Pitt
+
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2 of the License, or (at your
+option) any later version. See http://www.gnu.org/copyleft/gpl.html for
+the full text of the license.
+'''
+
+import apport.packaging
+
+def add_info(report):
+ try:
+ if apport.packaging.get_version('automatix') or \
+ apport.packaging.get_version('automatix2') or \
+ apport.packaging.get_version('ultamatix'):
+ report['UnreportableReason'] = 'You have installed automatix or ultamatix on your \
+system. This is known to cause a lot of instability, thus problem reports \
+will not be sent to the %s developers.' % report.get('DistroRelease',
+ 'distribution').split()[0]
+ except ValueError, e:
+ return
--- apport-2.0.1.orig/data/general-hooks/ubuntu.py
+++ apport-2.0.1/data/general-hooks/ubuntu.py
@@ -0,0 +1,424 @@
+'''Attach generally useful information, not specific to any package.
+
+Copyright (C) 2009 Canonical Ltd.
+Authors: Matt Zimmerman ,
+ Brian Murray
+
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2 of the License, or (at your
+option) any later version. See http://www.gnu.org/copyleft/gpl.html for
+the full text of the license.
+'''
+
+import apport.packaging
+import re, os, os.path, pwd, time
+from urlparse import urljoin
+from urllib2 import urlopen
+from apport.hookutils import *
+from apport import unicode_gettext as _
+
+def add_info(report, ui):
+ add_release_info(report)
+
+ add_kernel_info(report)
+
+ add_cloud_info(report)
+
+ add_proposed_info(report)
+
+ try:
+ report['ApportVersion'] = apport.packaging.get_version('apport')
+ except ValueError:
+ # might happen on local installs
+ pass
+
+ if report.get('ProblemType') == 'Package':
+ check_for_disk_error(report)
+ # check to see if the real root on a persistent media is full
+ if 'LiveMediaBuild' in report:
+ st = os.statvfs('/cdrom')
+ free_mb = st.f_bavail * st.f_frsize / 1000000
+ if free_mb < 10:
+ report['UnreportableReason'] = 'Your system partition has less than \
+%s MB of free space available, which leads to problems using applications \
+and installing updates. Please free some space.' % (free_mb)
+
+ match_error_messages(report)
+
+ for log in ['DpkgTerminalLog', 'VarLogDistupgradeApttermlog']:
+ if log in report:
+ untrimmed_dpkg_log = report[log]
+ check_attachment_for_errors(report, log)
+ trimmed_log = report['DpkgTerminalLog'].split('\n')
+ lines = []
+ for line in untrimmed_dpkg_log.decode('UTF-8').splitlines():
+ if line not in trimmed_log:
+ lines.append(line)
+ elif line in trimmed_log:
+ trimmed_log.remove(line)
+ dpkg_log_without_error = '\n'.join(lines)
+
+ wrong_grub_msg = _('''Your system was initially configured with grub version 2, but you have removed it from your system in favor of grub 1 without configuring it. To ensure your bootloader configuration is updated whenever a new kernel is available, open a terminal and run:
+
+ sudo apt-get install grub-pc
+''')
+
+ if 'DpkgTerminalLog' in report \
+ and re.search(r'^Not creating /boot/grub/menu.lst as you wish', report['DpkgTerminalLog'], re.MULTILINE):
+ grub_hook_failure = True
+ else:
+ grub_hook_failure = False
+
+ # crash reports from live system installer often expose target mount
+ for f in ('ExecutablePath', 'InterpreterPath'):
+ if f in report and report[f].startswith('/target/'):
+ report[f] = report[f][7:]
+
+ # Allow filing update-manager bugs with obsolete packages
+ if report.get('Package', '').startswith('update-manager'):
+ os.environ['APPORT_IGNORE_OBSOLETE_PACKAGES'] = '1'
+
+ # file bugs against OEM project for modified packages
+ if 'Package' in report:
+ v = report['Package'].split()[1]
+ oem_project = get_oem_project(report)
+ if oem_project and ('common' in v or oem_project in v):
+ report['CrashDB'] = 'canonical-oem'
+
+ if 'Package' in report:
+ package = report['Package'].split()[0]
+ if package:
+ attach_conffiles(report, package, ui=ui)
+
+ # do not file bugs against "upgrade-system" if it is not installed (LP#404727)
+ if package == 'upgrade-system' and 'not installed' in report['Package']:
+ report['UnreportableReason'] = 'You do not have the upgrade-system package installed. Please report package upgrade failures against the package that failed to install, or against upgrade-manager.'
+
+ if 'Package' in report:
+ package = report['Package'].split()[0]
+ if package:
+ attach_upstart_overrides(report, package)
+
+ # build a duplicate signature tag for package reports
+ if report.get('ProblemType') == 'Package':
+ if 'DpkgTerminalLog' in report:
+ termlog = report['DpkgTerminalLog']
+ elif 'VarLogDistupgradeApttermlog' in report:
+ termlog = report['VarLogDistupgradeApttermlog']
+ else:
+ termlog = None
+ if termlog:
+ # for packages that run update-grub include /etc/default/grub
+ UPDATE_BOOT = ['memtest86+', 'linux', 'ubuntu-meta',
+ 'virtualbox-ose']
+ ug_failure = r'/etc/kernel/post(inst|rm)\.d/zz-update-grub exited with return code [1-9]+'
+ mkconfig_failure = r'/usr/sbin/grub-mkconfig.*/etc/default/grub: Syntax error'
+ if re.search(ug_failure, termlog) or re.search(mkconfig_failure, termlog):
+ if report['SourcePackage'] in UPDATE_BOOT:
+ attach_default_grub(report, 'EtcDefaultGrub')
+ dupe_sig = ''
+ for line in termlog.split('\n'):
+ if line.startswith('Setting up') or line.startswith('Unpacking'):
+ dupe_sig = '%s\n' % line
+ continue
+ dupe_sig += '%s\n' % line
+ if 'dpkg: error' in dupe_sig and line.startswith(' '):
+ if 'trying to overwrite' in line:
+ conflict_pkg = re.search('in package (.*) ', line)
+ if conflict_pkg and not apport.packaging.is_distro_package(conflict_pkg.group(1)):
+ report['UnreportableReason'] = _('An Ubuntu package has a file conflict with a package that is not a genuine Ubuntu package')
+ add_tag(report, 'package-conflict')
+ if 'Setting up' in dupe_sig or 'Unpacking' in dupe_sig:
+ report['DuplicateSignature'] = dupe_sig
+ # the duplicate signature should be the first failure
+ break
+ if dupe_sig:
+ if dupe_sig in dpkg_log_without_error:
+ report['UnreportableReason'] = _('You have already encountered this package installation failure.')
+
+ # running Unity?
+ username = pwd.getpwuid(os.geteuid()).pw_name
+ if subprocess.call(['killall', '-s0', '-u', username,
+ 'unity-panel-service'], stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT) == 0:
+ add_tag(report, 'running-unity')
+
+
+def match_error_messages(report):
+ # There are enough of these now that it is probably worth refactoring...
+ # -mdz
+ if report.get('ProblemType') == 'Package':
+ if 'failed to install/upgrade: corrupted filesystem tarfile' in report.get('Title', ''):
+ report['UnreportableReason'] = 'This failure was caused by a corrupted package download or file system corruption.'
+
+ if 'is already installed and configured' in report.get('ErrorMessage', ''):
+ report['SourcePackage'] = 'dpkg'
+
+
+def check_attachment_for_errors(report, attachment):
+ if report.get('ProblemType') == 'Package':
+ trim_dpkg_log(report)
+
+ if report['Package'] not in ['grub', 'grub2']:
+ # linux-image postinst emits this when update-grub fails
+ # https://wiki.ubuntu.com/KernelTeam/DebuggingUpdateErrors
+ grub_errors = [r'^User postinst hook script \[.*update-grub\] exited with value',
+ r'^run-parts: /etc/kernel/post(inst|rm).d/zz-update-grub exited with return code [1-9]+',
+ r'^/usr/sbin/grub-probe: error']
+
+ for grub_error in grub_errors:
+ if attachment in report and re.search(grub_error, report[attachment], re.MULTILINE):
+ # File these reports on the grub package instead
+ grub_package = apport.packaging.get_file_package('/usr/sbin/update-grub')
+ if grub_package is None or grub_package == 'grub' and not 'grub-probe' in report[attachment]:
+ report['SourcePackage'] = 'grub'
+ if os.path.exists('/boot/grub/grub.cfg') \
+ and grub_hook_failure:
+ report['UnreportableReason'] = wrong_grub_msg
+ else:
+ report['SourcePackage'] = 'grub2'
+
+ if report['Package'] != 'initramfs-tools':
+ # update-initramfs emits this when it fails, usually invoked from the linux-image postinst
+ # https://wiki.ubuntu.com/KernelTeam/DebuggingUpdateErrors
+ if attachment in report and re.search(r'^update-initramfs: failed for ', report[attachment], re.MULTILINE):
+ # File these reports on the initramfs-tools package instead
+ report['SourcePackage'] = 'initramfs-tools'
+
+ if report['Package'] in ['emacs22', 'emacs23', 'emacs-snapshot', 'xemacs21']:
+ # emacs add-on packages trigger byte compilation, which might fail
+ # we are very interested in reading the compilation log to determine
+ # where to reassign this report to
+ regex = r'^!! Byte-compilation for x?emacs\S+ failed!'
+ if attachment in report and re.search(regex, report[attachment], re.MULTILINE):
+ for line in report[attachment].split('\n'):
+ m = re.search(r'^!! and attach the file (\S+)', line)
+ if m:
+ path = m.group(1)
+ attach_file_if_exists(report, path)
+
+ if report['Package'].startswith('linux-image-') and attachment in report:
+ # /etc/kernel/*.d failures from kernel package postinst
+ m = re.search(r'^run-parts: (/etc/kernel/\S+\.d/\S+) exited with return code \d+', report[attachment], re.MULTILINE)
+ if m:
+ path = m.group(1)
+ package = apport.packaging.get_file_package(path)
+ if package:
+ report['SourcePackage'] = package
+ report['ErrorMessage'] = m.group(0)
+ if package == 'grub-pc' and grub_hook_failure:
+ report['UnreportableReason'] = wrong_grub_msg
+ else:
+ report['UnreportableReason'] = 'This failure was caused by a program which did not originate from Ubuntu'
+
+ if 'failed to install/upgrade: corrupted filesystem tarfile' in report.get('Title', ''):
+ report['UnreportableReason'] = 'This failure was caused by a corrupted package download or file system corruption.'
+
+ if attachment in report and re.search(r'dpkg-deb: error.*is not a debian format archive', report[attachment], re.MULTILINE):
+ report['UnreportableReason'] = 'This failure was caused by a corrupted package download or file system corruption.'
+
+ if 'is already installed and configured' in report.get('ErrorMessage', ''):
+ report['SourcePackage'] = 'dpkg'
+
+def check_for_disk_error(report):
+ devs_to_check = []
+ if not 'Dmesg.txt' in report and not 'CurrentDmesg.txt' in report:
+ return
+ if not 'Df.txt' in report:
+ return
+ df = report['Df.txt']
+ device_error = False
+ for line in df:
+ line = line.strip('\n')
+ if line.endswith('/') or line.endswith('/usr') or line.endswith('/var'):
+ # without manipulation it'd look like /dev/sda1
+ device = line.split(' ')[0].strip('0123456789')
+ device = device.replace('/dev/', '')
+ devs_to_check.append(device)
+ dmesg = report.get('CurrentDmesg.txt', report['Dmesg.txt'])
+ for line in dmesg:
+ line = line.strip('\n')
+ if 'I/O error' in line:
+ # no device in this line
+ if 'journal commit I/O error' in line:
+ continue
+ for dev in devs_to_check:
+ if re.search(dev, line):
+ error_device = dev
+ device_error = True
+ break
+ if device_error:
+ report['UnreportableReason'] = 'This failure was caused by a hardware error on /dev/%s' % error_device
+
+def add_kernel_info(report):
+ # This includes the Ubuntu packaged kernel version
+ attach_file_if_exists(report, '/proc/version_signature', 'ProcVersionSignature')
+
+def add_release_info(report):
+ # https://bugs.launchpad.net/bugs/364649
+ attach_file_if_exists(report, '/var/log/installer/media-info',
+ 'InstallationMedia')
+
+ # if we are running from a live system, add the build timestamp
+ attach_file_if_exists(report, '/cdrom/.disk/info', 'LiveMediaBuild')
+ if os.path.exists('/cdrom/.disk/info'):
+ report['CasperVersion'] = apport.packaging.get_version('casper')
+
+
+ # https://wiki.ubuntu.com/FoundationsTeam/Specs/OemTrackingId
+ attach_file_if_exists(report, '/var/lib/ubuntu_dist_channel',
+ 'DistributionChannelDescriptor')
+
+ release_codename = command_output(['lsb_release', '-sc'], stderr=None)
+ if release_codename.startswith('Error'):
+ release_codename = None
+ else:
+ add_tag(report, release_codename)
+
+ log ='/var/log/dist-upgrade/main.log'
+ if os.path.exists(log):
+ mtime = os.stat(log).st_mtime
+ human_mtime = time.strftime('%Y-%m-%d', time.gmtime(mtime))
+ delta = time.time() - mtime
+
+ # Would be nice if this also showed which release was originally installed
+ report['UpgradeStatus'] = 'Upgraded to %s on %s (%d days ago)' % (release_codename, human_mtime, delta / 86400)
+ else:
+ report['UpgradeStatus'] = 'No upgrade log present (probably fresh install)'
+
+def add_proposed_info(report):
+ '''Tag if package comes from -proposed'''
+
+ if 'Package' not in report:
+ return
+ try:
+ (package, version) = report['Package'].split()[:2]
+ except ValueError:
+ print('WARNING: malformed Package field: ' + report['Package'])
+ return
+
+ apt_cache = subprocess.Popen(['apt-cache', 'showpkg', package],
+ stdout=subprocess.PIPE,
+ universal_newlines=True)
+ out = apt_cache.communicate()[0]
+ if apt_cache.returncode != 0:
+ print('WARNING: apt-cache showpkg %s failed' % package)
+ return
+
+ found_proposed = False
+ found_updates = False
+ found_security = False
+ for line in out.splitlines():
+ if line.startswith(version + ' ('):
+ if '-proposed_' in line:
+ found_proposed = True
+ if '-updates_' in line:
+ found_updates = True
+ if '-security' in line:
+ found_security = True
+
+ if found_proposed and not found_updates and not found_security:
+ add_tag(report, 'package-from-proposed')
+
+def add_cloud_info(report):
+ # EC2 and Ubuntu Enterprise Cloud instances
+ ec2_instance = False
+ for pkg in ('ec2-init', 'cloud-init'):
+ try:
+ if apport.packaging.get_version(pkg):
+ ec2_instance = True
+ break
+ except ValueError:
+ pass
+ if ec2_instance:
+ metadata_url = 'http://169.254.169.254/latest/meta-data/'
+ ami_id_url = urljoin(metadata_url, 'ami-id')
+
+ try:
+ ami = urlopen(ami_id_url, timeout=5).read()
+ except:
+ ami = None
+
+ if ami is None:
+ cloud = None
+ elif ami.startswith('ami'):
+ cloud = 'ec2'
+ add_tag(report, 'ec2-images')
+ fields = { 'Ec2AMIManifest':'ami-manifest-path',
+ 'Ec2Kernel':'kernel-id',
+ 'Ec2Ramdisk':'ramdisk-id',
+ 'Ec2InstanceType':'instance-type',
+ 'Ec2AvailabilityZone':'placement/availability-zone' }
+
+ report['Ec2AMI'] = ami
+ for key,value in fields.items():
+ try:
+ report[key]=urlopen(urljoin(metadata_url, value),
+ timeout=5).read()
+ except:
+ report[key]='unavailable'
+ else:
+ cloud = 'uec'
+ add_tag(report, 'uec-images')
+
+def add_tag(report, tag):
+ report.setdefault('Tags', '')
+ report['Tags'] += ' ' + tag
+
+def get_oem_project(report):
+ '''Determine OEM project name from Distribution Channel Descriptor
+
+ Return None if it cannot be determined or does not exist.
+ '''
+ dcd = report.get('DistributionChannelDescriptor', None)
+ if dcd and dcd.startswith('canonical-oem-'):
+ return dcd.split('-')[2]
+ return None
+
+def trim_dpkg_log(report):
+ '''Trim DpkgTerminalLog to the most recent installation session.'''
+
+ if 'DpkgTerminalLog' not in report:
+ return
+ lines = []
+ trim_re = re.compile('^\(.* ... \d+ .*\)$')
+ for line in report['DpkgTerminalLog'].splitlines():
+ if line.startswith('Log started: ') or trim_re.match(line):
+ lines = []
+ continue
+ lines.append(line)
+ report['DpkgTerminalLog'] = '\n'.join(lines)
+
+ if not report['DpkgTerminalLog'].strip():
+ report['UnreportableReason'] = '/var/log/apt/term.log does not contain any data'
+
+if __name__ == '__main__':
+ import sys
+
+ # for testing: update report file given on command line
+ if len(sys.argv) != 2:
+ print >> sys.stderr, 'Usage for testing this hook: %s ' % sys.argv[0]
+ sys.exit(1)
+
+ report_file = sys.argv[1]
+
+ report = apport.Report()
+ report.load(open(report_file))
+ report_keys = set(report.keys())
+
+ new_report = report.copy()
+ add_info(new_report, None)
+
+ new_report_keys = set(new_report.keys())
+
+ # Show differences
+ changed = 0
+ for key in sorted(report_keys | new_report_keys):
+ if key in new_report_keys and key not in report_keys:
+ print "+%s: %s" % (key, new_report[key])
+ changed += 1
+ elif key in report_keys and key not in new_report_keys:
+ print "-%s: (deleted)" % key
+ changed += 1
+ print "%d items changed" % changed
--- apport-2.0.1.orig/data/general-hooks/generic.py
+++ apport-2.0.1/data/general-hooks/generic.py
@@ -28,7 +28,7 @@
home = os.getenv('HOME')
if home:
mounts[home] = 'home'
- treshold = 10
+ treshold = 50
for mount in mounts:
st = os.statvfs(mount)
--- apport-2.0.1.orig/data/package-hooks/source_linux.py
+++ apport-2.0.1/data/package-hooks/source_linux.py
@@ -0,0 +1,109 @@
+'''Apport package hook for the Linux kernel.
+
+(c) 2008 Canonical Ltd.
+Contributors:
+Matt Zimmerman
+Martin Pitt
+Brian Murray
+
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2 of the License, or (at your
+option) any later version. See http://www.gnu.org/copyleft/gpl.html for
+the full text of the license.
+'''
+
+import os.path
+import subprocess
+from apport.hookutils import *
+
+SUBMIT_SCRIPT = "/usr/bin/kerneloops-submit"
+
+def add_info(report, ui):
+
+ # If running an upstream kernel, instruct reporter to file bug upstream
+ abi = re.search("-(.*?)-", report['Uname'])
+ if abi and (abi.group(1) == '999' or re.search("^0", abi.group(1))):
+ ui.information("It appears you are currently running a mainline kernel. It would be better to report this bug upstream at http://bugzilla.kernel.org/ so that the upstream kernel developers are aware of the issue. If you'd still like to file a bug against the Ubuntu kernel, please boot with an official Ubuntu kernel and re-file.")
+ report['UnreportableReason'] = 'The running kernel is not an Ubuntu kernel'
+ return
+
+ version_signature = report.get('ProcVersionSignature', '')
+ if not version_signature.startswith('Ubuntu '):
+ report['UnreportableReason'] = 'The running kernel is not an Ubuntu kernel'
+ return
+
+ # Prevent reports against linux-meta
+ if report['SourcePackage'] == 'linux-meta':
+ report['SourcePackage'] = 'linux'
+
+ report.setdefault('Tags', '')
+
+ # Support backported kernels
+ if report['SourcePackage'].endswith('-lts-quantal'):
+ report['SourcePackage'] = 'linux'
+ report['Tags'] += ' qa-kernel-lts-testing'
+
+ attach_hardware(report)
+ attach_alsa(report)
+ attach_wifi(report)
+ attach_file(report, '/proc/fb', 'ProcFB')
+ report['AcpiTables'] = root_command_output(['/usr/share/apport/dump_acpi_tables.py'])
+
+ staging_drivers = re.findall("(\w+): module is from the staging directory", report['BootDmesg'])
+ staging_drivers.extend(re.findall("(\w+): module is from the staging directory", report['CurrentDmesg']))
+ if staging_drivers:
+ staging_drivers = list(set(staging_drivers))
+ report['StagingDrivers'] = ' '.join(staging_drivers)
+ report['Tags'] += ' staging'
+ # Only if there is an existing title prepend '[STAGING]'.
+ # Changed to prevent bug titles with just '[STAGING] '.
+ if report.get('Title'):
+ report['Title'] = '[STAGING] ' + report.get('Title')
+
+ attach_file_if_exists(report, "/etc/initramfs-tools/conf.d/resume", key="HibernationDevice")
+
+ uname_release = os.uname()[2]
+ lrm_package_name = 'linux-restricted-modules-%s' % uname_release
+ lbm_package_name = 'linux-backports-modules-%s' % uname_release
+
+ attach_related_packages(report, [lrm_package_name, lbm_package_name, 'linux-firmware'])
+
+ if ('Failure' in report and report['Failure'] == 'oops'
+ and 'OopsText' in report and os.path.exists(SUBMIT_SCRIPT)):
+ # tag kerneloopses with the version of the kerneloops package
+ attach_related_packages(report, ['kerneloops-daemon'])
+ #it's from kerneloops, ask the user whether to submit there as well
+ if ui is not None:
+ summary = report['OopsText']
+ # Some OopsText begin with "--- [ cut here ] ---", so remove it
+ summary = re.sub("---.*\n", "", summary)
+ first_line = re.match(".*\n", summary)
+ ip = re.search("(R|E)?IP\:.*\n", summary)
+ kernel_driver = re.search("(R|E)?IP(:| is at) .*\[(.*)\]\n", summary)
+ call_trace = re.search("Call Trace(.*\n){,10}", summary)
+ oops = ''
+ if first_line:
+ oops += first_line.group(0)
+ if ip:
+ oops += ip.group(0)
+ if call_trace:
+ oops += call_trace.group(0)
+ if kernel_driver:
+ report['Tags'] += ' kernel-driver-%s' % kernel_driver.group(3)
+ # 2012-01-13 - disable submission question as kerneloops.org is
+ # down
+ #if ui.yesno("This report may also be submitted to "
+ # "http://kerneloops.org/ in order to help collect aggregate "
+ # "information about kernel problems. This aids in identifying "
+ # "widespread issues and problematic areas. A condensed "
+ # "summary of the Oops is shown below. Would you like to submit "
+ # "information about this crash to kerneloops.org?"
+ # "\n\n%s" % oops):
+ # text = report['OopsText']
+ # proc = subprocess.Popen(SUBMIT_SCRIPT, stdin=subprocess.PIPE)
+ # proc.communicate(text)
+
+ if report.get('ProblemType') == 'Package':
+ # in case there is a failure with a grub script
+ attach_related_packages(report, ['grub-pc'])
--- apport-2.0.1.orig/data/package-hooks/source_ubiquity.py
+++ apport-2.0.1/data/package-hooks/source_ubiquity.py
@@ -0,0 +1,125 @@
+'''Apport package hook for the ubiquity live CD installer.
+
+Copyright (C) 2009 Canonical Ltd.
+Authors: Colin Watson ,
+ Brian Murray '''
+
+import apport.hookutils
+import os.path
+import re
+
+def add_installation_log(report, ident, name):
+ if os.path.exists('/var/log/installer/%s' % name):
+ f = '/var/log/installer/%s' % name
+ elif os.path.exists('/var/log/%s' % name):
+ f = '/var/log/%s' % name
+ else:
+ return
+
+ if os.access(f, os.R_OK):
+ report[ident] = open(f, 'r').read()
+ elif os.path.exists(f):
+ apport.hookutils.attach_root_command_outputs(report,
+ {ident: "cat '%s'" % f})
+
+
+def prepare_duplicate_signature(syslog, collect_grub, collect_trace):
+ collect = ''
+ for line in syslog.split('\n'):
+ if collect_grub:
+ if 'grub-installer:' in line and collect == "":
+ collect = ' '.join(line.split(' ')[4:]) + '\n'
+ continue
+ elif 'grub-installer:' in line and collect != "":
+ collect += ' '.join(line.split(' ')[4:]) + '\n'
+ continue
+ if not collect_trace and collect != '':
+ return collect
+ if 'Traceback (most recent call last):' in line and \
+ collect_grub:
+ collect += ' '.join(line.split(' ')[5:]) + '\n'
+ continue
+ if 'Traceback (most recent call last):' in line and \
+ not collect_grub:
+ collect = ' '.join(line.split(' ')[5:]) + '\n'
+ continue
+ if len(line.split(' ')[5:]) == 1 and 'Traceback' in collect:
+ if collect != '':
+ return collect
+ if not 'Traceback' in collect:
+ continue
+ collect += ' '.join(line.split(' ')[5:]) + '\n'
+
+
+def add_info(report, ui):
+ add_installation_log(report, 'UbiquitySyslog', 'syslog')
+ syslog = report['UbiquitySyslog']
+ if 'Buffer I/O error on device' in syslog:
+ if re.search('Attached .* CD-ROM (\w+)', syslog):
+ cd_drive = re.search('Attached .* CD-ROM (\w+)', syslog).group(1)
+ cd_error = re.search('Buffer I/O error on device %s' % cd_drive,
+ syslog)
+ if cd_error:
+ ui.information("The system log from your installation contains an error. The specific error commonly occurs when there is an issue with the media from which you were installing. This can happen when your media is dirty or damaged or when you've burned the media at a high speed. Please try cleaning the media and or burning new media at a lower speed. In the event that you continue to encounter these errors it may be an issue with your CD / DVD drive.")
+ raise StopIteration
+ if 'I/O error, dev' in syslog:
+ # check for either usb stick (install media) or hard disk I/O errors
+ if re.search('I/O error, dev (\w+)', syslog):
+ error_disk = re.search('I/O error, dev (\w+)', syslog).group(1)
+ mount = command_output(['grep', '%s' % error_disk, '/proc/mounts'])
+ if 'target' in mount:
+ ui.information("The system log from your installation contains an error. The specific error commonly occurs when there is an issue with the disk to which you are trying to install Ubuntu. It is recommended that you back up important data on your disk and investigate the situation. Measures you might take include cehcking cable connections for your disks and using software tools to investigate the health of your hardware.")
+ raise StopIteration
+ if 'cdrom' in mount:
+ ui.information("The system log from your installation contains an error. The specific error commonly occurs when there is an issue with the media from which you were installing. Please try creating the USB stick you were installing from again or try installing from a different USB stick.")
+ raise StopIteration
+ if 'SQUASHFS error: Unable to read' in syslog:
+ ui.information("The system log from your installation contains an error. The specific error commonly occurs when there is an issue with the media from which you were installing. This can happen when your media is dirty or damaged or when you've burned the media at a high speed. Please try cleaning the media and or burning new media at a lower speed. In the event that you continue to encounter these errors it may be an issue with your CD / DVD drive.")
+ raise StopIteration
+
+ if 'Kernel command line' in syslog:
+ install_cmdline = re.search('Kernel command line: (.*)', syslog).group(1)
+ else:
+ install_cmdline = None
+ if install_cmdline:
+ report['InstallCmdLine'] = install_cmdline
+
+ if not 'Traceback' in report:
+ collect_grub = False
+ collect_trace = False
+ if not 'grub-installer: Installation finished. No error reported' in syslog and 'grub-installer:' in syslog:
+ collect_grub = True
+ if 'Traceback' in syslog:
+ collect_trace = True
+ if report['ProblemType'] != 'Bug' and collect_grub or \
+ report['ProblemType'] != 'Bug' and collect_trace:
+ duplicate_signature = prepare_duplicate_signature(syslog,
+ collect_grub, collect_trace)
+ if duplicate_signature:
+ report['DuplicateSignature'] = duplicate_signature
+ if collect_grub:
+ report['SourcePackage'] = 'grub-installer'
+
+ match = re.search('ubiquity.*Ubiquity (.*)\n', report['UbiquitySyslog'])
+ if match:
+ match = match.group(1)
+ report.setdefault('Tags', '')
+ if match:
+ report['Tags'] += ' ubiquity-%s' % match.split()[0]
+
+ # tag bug reports where people choose to "upgrade" their install of Ubuntu
+ if re.search('UpgradeSystem\(\) was called with safe mode', report['UbiquitySyslog']):
+ report['Tags'] += ' ubiquity-upgrade'
+
+ add_installation_log(report, 'UbiquityPartman', 'partman')
+ if os.path.exists('/var/log/installer/debug'):
+ response = ui.yesno("The debug log file from your installation would help us a lot but includes the password you used for your user when installing Ubuntu. Do you want to include this log file?")
+ if response is None:
+ raise StopIteration
+ if response:
+ add_installation_log(report, 'UbiquityDebug', 'debug')
+ add_installation_log(report, 'UbiquityDm', 'dm')
+ add_installation_log(report, 'Casper', 'casper.log')
+ add_installation_log(report, 'OemConfigLog', 'oem-config.log')
+ if 'OemConfigLog' in report:
+ report['Tags'] += ' oem-config'
--- apport-2.0.1.orig/data/package-hooks/source_debian-installer.py
+++ apport-2.0.1/data/package-hooks/source_debian-installer.py
@@ -0,0 +1,58 @@
+'''Apport package hook for the Debian installer.
+
+Copyright (C) 2011 Canonical Ltd.
+Authors: Colin Watson ,
+ Brian Murray '''
+
+import os
+from apport.hookutils import attach_hardware, command_available, command_output, attach_root_command_outputs
+
+
+def add_installation_log(report, ident, name):
+ if os.path.exists('/var/log/installer/%s' % name):
+ f = '/var/log/installer/%s' % name
+ elif os.path.exists('/var/log/%s' % name):
+ f = '/var/log/%s' % name
+ else:
+ return
+
+ if os.access(f, os.R_OK):
+ report[ident] = (f,)
+ else:
+ attach_root_command_outputs(report,
+ {ident: "cat '%s'" % f})
+
+
+def add_info(report):
+ attach_hardware(report)
+
+ report['DiskUsage'] = command_output(['df'])
+ report['MemoryUsage'] = command_output(['free'])
+
+ if command_available('dmraid'):
+ attach_root_command_outputs(report, {'DmraidSets': 'dmraid -s',
+ 'DmraidDevices': 'dmraid -r'})
+ if command_available('dmsetup'):
+ attach_root_command_outputs(report,
+ {'DeviceMapperTables': 'dmsetup table'})
+
+ try:
+ installer_version = open('/var/log/installer/version')
+ for line in installer_version:
+ if line.startswith('ubiquity '):
+ # File these reports on the ubiquity package instead
+ report['SourcePackage'] = 'ubiquity'
+ break
+ installer_version.close()
+ except IOError:
+ pass
+
+ add_installation_log(report, 'DIPartman', 'partman')
+ add_installation_log(report, 'DISyslog', 'syslog')
+
+
+if __name__ == '__main__':
+ report = {}
+ add_info(report)
+ for key in report:
+ print '%s: %s' % (key, report[key].split('\n', 1)[0])
--- apport-2.0.1.orig/debian/dh-apport.manpages
+++ apport-2.0.1/debian/dh-apport.manpages
@@ -0,0 +1 @@
+debhelper/dh_apport.1
--- apport-2.0.1.orig/debian/apport.links
+++ apport-2.0.1/debian/apport.links
@@ -0,0 +1,6 @@
+/usr/share/apport/package-hooks/source_linux.py /usr/share/apport/package-hooks/source_linux-meta.py
+/usr/share/apport/package-hooks/source_linux.py /usr/share/apport/package-hooks/source_linux-lts-quantal.py
+/usr/share/apport/package-hooks/source_linux.py /usr/share/apport/package-hooks/source_linux-meta-lts-quantal.py
+/usr/bin/apport-bug /usr/bin/ubuntu-bug
+/usr/share/man/man1/apport-bug.1.gz /usr/share/man/man1/ubuntu-bug.1.gz
+/usr/share/man/man1/apport-bug.1.gz /usr/share/man/man1/apport-collect.1.gz
--- apport-2.0.1.orig/debian/apport-kde.install
+++ apport-2.0.1/debian/apport-kde.install
@@ -0,0 +1,8 @@
+usr/share/apport/*kde*
+usr/share/apport/progress.ui
+usr/share/apport/error.ui
+usr/share/apport/bugreport.ui
+usr/share/apport/choices.ui
+usr/share/apport/spinner.gif
+usr/share/applications/apport-kde-mime.desktop
+usr/share/applications/apport-kde-mimelnk.desktop usr/share/mimelnk/text
--- apport-2.0.1.orig/debian/watch
+++ apport-2.0.1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://launchpad.net/apport/+download .*/apport-([0-9.]+)\.tar\.gz
--- apport-2.0.1.orig/debian/apport-gtk.install
+++ apport-2.0.1/debian/apport-gtk.install
@@ -0,0 +1,2 @@
+usr/share/apport/*gtk*
+usr/share/applications/*gtk-mime*
--- apport-2.0.1.orig/debian/clean
+++ apport-2.0.1/debian/clean
@@ -0,0 +1,2 @@
+debhelper/dh_apport.1
+apport/packaging_impl.py
--- apport-2.0.1.orig/debian/python-apport.install
+++ apport-2.0.1/debian/python-apport.install
@@ -0,0 +1,3 @@
+usr/lib/python*/*-packages/apport/*
+usr/lib/python*/*-packages/apport_python_hook.py
+etc/apport/crashdb*
--- apport-2.0.1.orig/debian/apport.logrotate
+++ apport-2.0.1/debian/apport.logrotate
@@ -0,0 +1,9 @@
+/var/log/apport.log {
+ daily
+ rotate 7
+ delaycompress
+ compress
+ notifempty
+ missingok
+}
+
--- apport-2.0.1.orig/debian/apport-retrace.install
+++ apport-2.0.1/debian/apport-retrace.install
@@ -0,0 +1,3 @@
+usr/bin/apport-retrace
+usr/bin/dupdb-admin
+usr/bin/crash-digger
--- apport-2.0.1.orig/debian/compat
+++ apport-2.0.1/debian/compat
@@ -0,0 +1 @@
+7
--- apport-2.0.1.orig/debian/rules
+++ apport-2.0.1/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+%:
+ dh "$@" --with python2,translations
+
+override_dh_auto_test:
+ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+ -env -u LD_PRELOAD sh test/run
+endif
+
+override_dh_installinit:
+ dh_installinit --error-handler=true
+
+override_dh_install:
+ dh_install
+ pod2man -c Debhelper -r "$(DEB_VERSION)" debhelper/dh_apport debhelper/dh_apport.1
--- apport-2.0.1.orig/debian/control
+++ apport-2.0.1/debian/control
@@ -0,0 +1,150 @@
+Source: apport
+Section: utils
+Priority: optional
+Build-Depends: debhelper (>= 7.3.15ubuntu2),
+ dh-translations,
+ gdb,
+ python-twisted-core,
+ python-gi,
+ gir1.2-glib-2.0 (>= 1.29.17),
+ lsb-release,
+ net-tools,
+ python-all
+Build-Depends-Indep: python-distutils-extra (>= 2.24~),
+ python-apt (>= 0.7.9),
+ intltool,
+ xvfb,
+ python-mock,
+ procps,
+ psmisc,
+ gir1.2-gtk-3.0 (>= 3.1.90),
+ python-launchpadlib (>= 1.5.7),
+ default-jdk | java-sdk
+Maintainer: Martin Pitt
+Standards-Version: 3.9.3
+X-Python-Version: >= 2.7
+Vcs-Bzr: https://code.launchpad.net/~ubuntu-core-dev/ubuntu/precise/apport/ubuntu
+Homepage: https://wiki.ubuntu.com/Apport
+
+Package: apport
+Architecture: all
+Depends: python (>= 2.6),
+ python-apport (>= ${source:Version}),
+ lsb-base (>= 3.0-6),
+ python-gi,
+ gir1.2-glib-2.0 (>= 1.29.17),
+ sysv-rc (>= 2.86.ds1-14.1ubuntu2),
+ ${misc:Depends}
+Replaces: ubiquity, python-apport (<< 1.17.2-0ubuntu3)
+Recommends: apport-symptoms
+Suggests: apport-gtk | apport-kde
+Description: automatically generate crash reports for debugging
+ apport automatically collects data from crashed processes and
+ compiles a problem report in /var/crash/. This utilizes the crashdump
+ helper hook provided by the Ubuntu kernel.
+ .
+ This package also provides a command line frontend for browsing and
+ handling the crash reports. For desktops, you should consider
+ installing the GTK+ or Qt user interface (apport-gtk or apport-kde).
+
+Package: python-problem-report
+Section: python
+Architecture: all
+Depends: ${python:Depends},
+ ${misc:Depends}
+Description: Python library to handle problem reports
+ This Python library provides an interface for creating, modifying,
+ and accessing standardized problem reports for program and kernel
+ crashes and packaging bugs.
+ .
+ These problem reports use standard Debian control format syntax
+ (RFC822).
+
+Package: python-apport
+Section: python
+Architecture: all
+Depends: ${python:Depends},
+ python-apt (>= 0.7.9),
+ python-problem-report (>= 0.94),
+ python-launchpadlib (>= 1.5.7),
+ lsb-release,
+ ${misc:Depends}
+Description: apport crash report handling library
+ This Python package provides high-level functions for creating and
+ handling apport crash reports:
+ .
+ * Query available and new reports.
+ * Add OS, packaging, and process runtime information to a report.
+ * Various frontend utility functions.
+ * Python hook to generate crash reports when Python scripts fail.
+
+Package: apport-retrace
+Section: devel
+Architecture: all
+Depends: python (>= 2.4),
+ python-apport (>= ${source:Version}),
+ python-apt (>= 0.7.9),
+ apt,
+ binutils,
+ dpkg-dev,
+ gdb,
+ ${misc:Depends}
+Description: tools for reprocessing Apport crash reports
+ apport-retrace recombines an Apport crash report (either a file or a
+ Launchpad bug) and debug symbol packages (.ddebs) into fully symbolic
+ stack traces. This can optionally use a sandbox for installing debug symbol
+ packages and doing the processing, so that entire process of retracing crashes
+ can happen with normal user privileges without changing the system.
+
+Package: apport-gtk
+Section: gnome
+Architecture: all
+Depends: python (>= 2.4),
+ python-apport (>= ${source:Version}),
+ gir1.2-gtk-3.0 (>= 3.1.90),
+ python-gi,
+ python-xdg,
+ apport (>= 0.41),
+ procps,
+ ${misc:Depends}
+Recommends: update-notifier, gdb
+Description: GTK+ frontend for the apport crash report system
+ apport automatically collects data from crashed processes and
+ compiles a problem report in /var/crash/. This utilizes the crashdump
+ helper hook provided by the Ubuntu kernel.
+ .
+ This package provides a GTK+ frontend for browsing and handling the
+ crash reports.
+
+Package: apport-kde
+Section: kde
+Architecture: all
+Depends: python (>= 2.4),
+ python-apport (>= ${source:Version}),
+ python-kde4,
+ python-xdg,
+ apport (>= 0.41),
+ procps,
+ ${misc:Depends}
+Recommends: kubuntu-notification-helper, gdb
+Description: KDE frontend for the apport crash report system
+ apport automatically collects data from crashed processes and
+ compiles a problem report in /var/crash/. This utilizes the crashdump
+ helper hook provided by the Ubuntu kernel.
+ .
+ This package provides a KDE frontend for browsing and handling the
+ crash reports.
+
+Package: dh-apport
+Section: devel
+Architecture: all
+Multi-Arch: foreign
+Depends: ${perl:Depends},
+ ${misc:Depends}
+Description: debhelper extension for the apport crash report system
+ apport automatically collects data from crashed processes and
+ compiles a problem report in /var/crash/. This utilizes the crashdump
+ helper hook provided by the Ubuntu kernel.
+ .
+ This package provides a debhelper extension to make it easier for other
+ packages to include apport hooks.
--- apport-2.0.1.orig/debian/dh-apport.install
+++ apport-2.0.1/debian/dh-apport.install
@@ -0,0 +1,2 @@
+../../debhelper/dh_apport usr/bin
+../../debhelper/apport.pm usr/share/perl5/Debian/Debhelper/Sequence
--- apport-2.0.1.orig/debian/changelog
+++ apport-2.0.1/debian/changelog
@@ -0,0 +1,6532 @@
+apport (2.0.1-0ubuntu16) precise-proposed; urgency=low
+
+ * Ignore implausibly low addresses when computing
+ StacktraceAddressSignature. These are usually artifacts from gdb when not
+ having debug symbols, and having too many of them prevents proper
+ client-side duplicate detection and proper bucketing in daisy.
+ Backported from trunk r2541. (LP: #1084996)
+ * mark_report_upload(): Refresh the .upload stamps if a previous version of
+ the report was already uploaded, but another instance of the problem
+ happened since then. Thanks Brian Murray. Backported from trunk r2540.
+ (LP: #1084296)
+
+ -- Martin Pitt Tue, 04 Dec 2012 10:51:30 +0000
+
+apport (2.0.1-0ubuntu15) precise-proposed; urgency=low
+
+ * apport/ui.py: create a MarkForUpload field and set that to false for
+ binaries that changed since the crash happened thereby preventing uploads
+ to the crash database (LP: #1039220)
+
+ -- Brian Murray Fri, 26 Oct 2012 15:17:13 -0700
+
+apport (2.0.1-0ubuntu14) precise-proposed; urgency=low
+
+ [ Brian Murray ]
+ * data/general/ubuntu.py: check to see if a package installation duplicate
+ signature has been encountered previously and if so prevent bug reporting
+ (LP: #1007637)
+
+ [ Martin Pitt ]
+ * data/general-hooks/ubuntu.py: Add "package-from-proposed" tag if the
+ installed package version is available from -proposed, but not from
+ -security and -updates. Backported from Ubuntu branch r2088.
+ (LP: #1050853)
+
+ -- Martin Pitt Thu, 20 Sep 2012 21:45:51 +0200
+
+apport (2.0.1-0ubuntu13) precise-proposed; urgency=low
+
+ * apport_python_hook: Backport filtering of DBus NoReply errors from trunk.
+ (LP: #1042970)
+
+ -- Brian Murray Tue, 28 Aug 2012 14:42:35 -0700
+
+apport (2.0.1-0ubuntu12) precise-proposed; urgency=low
+
+ [ Martin Pitt ]
+ * apport_python_hook: Fix UnicodeEncodeError crash with Python 2 for
+ exceptions with non-ASCII characters. Backported from trunk r2426.
+ (LP: #972436)
+
+ [ Brian Murray ]
+ * data/general-hooks/ubuntu.py: collect /etc/default/grub on systems where a
+ package failed to install during when updating grub (LP: #1006633)
+
+ -- Brian Murray Thu, 19 Jul 2012 10:53:25 -0700
+
+apport (2.0.1-0ubuntu11) precise-proposed; urgency=low
+
+ * data/package-hooks/source_linux.py: If we report against an -lts-quantal
+ source package, move the source to "linux" and add a qa-kernel-lts-testing
+ tag, as per kernel team request in LP: #1004101 . Add source package hook
+ symlinks for source_linux-{,meta-}lts-quantal.py to source_linux.py.
+ * data/apport: apport: Also treat a binary as modified if the /proc/pid/exe
+ symlink does not point to an existing file any more. Backported from trunk
+ r2406. (LP: #984944)
+
+ -- Martin Pitt Thu, 28 Jun 2012 09:01:41 +0200
+
+apport (2.0.1-0ubuntu10) precise-proposed; urgency=low
+
+ * debian/apport.install: Actually ship the native-origins.d directory, so
+ that the previous bug fix for LP: #1004101 actually works.
+
+ -- Martin Pitt Tue, 12 Jun 2012 09:52:27 +0200
+
+apport (2.0.1-0ubuntu9) precise-proposed; urgency=low
+
+ [ Martin Pitt ]
+ * data/apport: Ignore a crash if the executable was modified after the
+ process started. This often happens if the package is upgraded and a
+ long-running process is not stopped before. Patch cherry-picked from trunk
+ r2296. (LP: #984944)
+ * Add etc/apport/native-origins.d/lts-q-backports: Accept
+ ppa:ubuntu-x-swat/q-lts-backport as official Ubuntu package repository, so
+ that users can report bugs and crashes against the backported kernel and
+ X.org stack. (LP: #1004101)
+ * data/general-hooks/ubuntu.py: Do not assume that all reports have a
+ ProblemType field. This will not be the case for updating a bug with
+ "apport-collect". (LP: #1004029)
+ * report.py: Do not change the SourcePackage: field if the binary package is
+ not installed and does not exist. This fixes source package hooks to
+ actually work in some cases where source and binary package names overlap.
+ Patch cherry-picked from trunk r2332. (part of LP: #993810)
+ * apport-gtk, apport-kde: Avoid collecting information twice in "bug update"
+ mode. This caused a crash in cases where the source package in a bug
+ report does not correspond to an installed binary package. Patch
+ cherry-picked from trunk r2334. (LP: #993810)
+
+ [ Brian Murray ]
+ * data/general-hooks/ubuntu.py: block reporting of package install failures
+ with error regarding 'not a debian format archive'. (LP: #1002535)
+
+ -- Martin Pitt Wed, 30 May 2012 09:26:08 +0200
+
+apport (2.0.1-0ubuntu8) precise-proposed; urgency=low
+
+ * apport-{gtk,kde}: Do not show the information collection progress dialog
+ if the crash database does not accept this kind of report. In that case
+ whoopsie will upload it in the background and the dialog is not necessary.
+ Patch cherry-picked from trunk. (LP: #989698)
+
+ -- Martin Pitt Fri, 18 May 2012 17:37:46 +0200
+
+apport (2.0.1-0ubuntu7) precise-proposed; urgency=low
+
+ * Fix (LP: #989779). Don't show the duplicate warning when we're just
+ reporting to daisy.ubuntu.com.
+
+ -- Evan Dandrea Fri, 27 Apr 2012 16:53:11 +0100
+
+apport (2.0.1-0ubuntu6) precise-proposed; urgency=low
+
+ * Cherry-pick from trunk:
+ - hookutils.py, recent_logfile(): Use a default limit of 10000 lines and
+ call "tail" instead of reading the whole file. This protects against
+ using up all memory when there are massive repeated log messages.
+ (LP: #984256)
+ - apport-gtk: Do not assume that an icon requested for size 42 actually
+ delivers size 42; some themes do not have this available and deliver a
+ smaller one instead, causing overflows. Also, copy the image as
+ gtk_icon_theme_load_icon() returns a readonly result which we must not
+ modify. Fixes crashes when using themes other than the standard Ubuntu
+ ones. (LP: #937249)
+
+ -- Martin Pitt Fri, 20 Apr 2012 18:53:24 +0200
+
+apport (2.0.1-0ubuntu5) precise-proposed; urgency=low
+
+ * etc/apport/crashdb.conf: Disable Launchpad crash/kernel reports for the
+ final release. Leave Apport running for whoopsie, though, so use the new
+ mechanism for selective problem types.
+ * Cherry-pick from trunk:
+ - data/general-hooks/generic.py: Bump minimum free space requirement from
+ 10 to 50 MB. 10 is not nearly enough particularly for /tmp.
+ (LP: #979928)
+
+ -- Martin Pitt Wed, 18 Apr 2012 10:08:28 +0200
+
+apport (2.0.1-0ubuntu4) precise; urgency=low
+
+ * Cherry-pick from trunk:
+ - data/dump_acpi_tables.py: Fix crash on undefined variable with
+ non-standard tables. (LP: #982267)
+ - backends/packaging-apt-dpkg.py: Fix crash if a package is installed, but
+ has no candidates in apt. (LP: #980094)
+ - Launchpad automatic translations update.
+ * debian/control: Drop duplicated python-gi build dependency, thanks
+ lintian.
+
+ -- Martin Pitt Mon, 16 Apr 2012 16:29:04 +0200
+
+apport (2.0.1-0ubuntu3) precise; urgency=low
+
+ * Cherry-pick from trunk:
+ - GTK UI tests: Ensure that there are no GLib/GTK warnings or criticals.
+ - apport-gtk: Work around GTK crash when trying to set pixmap on an
+ already destroyed parent window. (LP: #938090)
+
+ -- Martin Pitt Fri, 13 Apr 2012 19:42:02 +0200
+
+apport (2.0.1-0ubuntu2) precise; urgency=low
+
+ * debian/general-hooks/ubuntu.py: if the package installation failure is
+ from live media check to see that /cdrom, the real root filesystem, has
+ enough free space
+
+ -- Brian Murray Wed, 11 Apr 2012 15:41:01 -0700
+
+apport (2.0.1-0ubuntu1) precise; urgency=low
+
+ * New upstream bug fix release. Changes since our previous snapshot:
+ - problem_report.py, write_mime(): Fix regression from version 1.95: Add a
+ value as attachment if it is bigger than 1000 bytes, not if it is bigger
+ than 100. (LP: #977882)
+ - packaging-apt-dpkg.py: Avoid constructing and updating the apt.Cache()
+ objects multiple times, to speed up retracing. Thanks Evan Dandrea.
+ (LP: #973494)
+
+ -- Martin Pitt Tue, 10 Apr 2012 15:38:11 +0200
+
+apport (2.0-0ubuntu5) precise; urgency=low
+
+ * Merge from trunk:
+ - generic package hook: Also check /tmp for enough space. Thanks Brian
+ Murray. (LP: #972933)
+ - Automatic Launchpad translation updates.
+
+ -- Martin Pitt Tue, 10 Apr 2012 07:34:08 +0200
+
+apport (2.0-0ubuntu4) precise; urgency=low
+
+ * debian/tests/upstream-system: Drop dead code.
+ * debian/tests/upstream-system: Work around LP #972324 by unsetting TMPDIR
+ for the tests.
+ * Merge test fixes from trunk:
+ - test_backend_apt_dpkg.py: Fix checks for the installation of -dbgsym
+ packages. This should always happen, as the sandboxes have a ddeb apt
+ source. Only make it conditional on the system apt sources in the "use
+ system config" test.
+ - test_report.py: Sleep a bit after calling our test crash script, to
+ ensure the kernel has time to finish writing the core file.
+
+ -- Martin Pitt Tue, 03 Apr 2012 14:17:38 +0200
+
+apport (2.0-0ubuntu3) precise; urgency=low
+
+ [ Martin Pitt ]
+ * data/general-hooks/ubuntu.py: Do not capture stderr of lsb_release.
+ (LP: #955111)
+
+ [ Scott Moser ]
+ * data/general-hooks/ubuntu.py: timeout on attempts to contact ec2 metadata
+ service (LP: #855651)
+
+ -- Martin Pitt Tue, 03 Apr 2012 06:58:07 +0200
+
+apport (2.0-0ubuntu2) precise; urgency=low
+
+ * debian/control: Make dh-apport Multi-Arch: foreign, so that it can
+ satisfy cross-build-dependencies.
+
+ -- Colin Watson Sat, 31 Mar 2012 02:29:55 +0100
+
+apport (2.0-0ubuntu1) precise; urgency=low
+
+ * New upstream release: This is the final 2.0 release, featuring the
+ overhauled and simplified GUI, support for whoopsie-daemon, and
+ client-side duplicate checking.
+ - report.py, anonymize(): Only replace whole words, not substrings.
+ (LP: #966562)
+ - apport_python_hook.py: Fix filtering of
+ org.freedesktop.DBus.Error.NoReply exceptions. (LP: #958575)
+ - crashdb.py: When publishing the crash database, cut hash file names
+ after quoting, to avoid that the quoting causes them to become too long.
+ (LP: #968070) This also uncovered that known() did not actually find any
+ signature which contained an URL-quoted character, therefore breaking
+ client-side duplicate checking in a lot of cases. Double-quote the file
+ name now, as urlopen() unquotes it.
+ - Add a new crash database option "problem_types" and a CrashDatabase
+ method "accepts(report)". This can be used to stop uploading particular
+ problem report types to that database. E. g. a distribution might decide
+ to not get "Crash" reports any more after release. Document the new
+ option in doc/crashdb-conf.txt.
+ - ui.py: Do not upload a report if the crash database does not accept the
+ report's type. This behaviour is not really correct, but necessary as
+ long as we only support a single crashdb and have whoopsie hardcoded.
+ Once we have multiple crash dbs, we need to not even present the data if
+ none of the DBs wants the report. See LP #957177 for details.
+ (LP: #968121)
+ - ui.py: Do not short-circuit information collection if report already has
+ a "DistroRelease" field, as the GUIs add that in some cases. Check for
+ "Dependencies" instead. This fixes information collection for kernel
+ problems (which now has a full GTK GUI test case). (LP: #968488)
+ * Merge from trunk:
+ - test_ui_gtk.py: Disable package hooks for the tests, as they might ask
+ for sudo passwords and other interactive bits, and thus make the tests
+ hang.
+
+ -- Martin Pitt Fri, 30 Mar 2012 12:38:02 +0200
+
+apport (1.95-0ubuntu1) precise; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream release:
+ - apport-gtk, apport-kde: When reporting a "system crash", don't say "...
+ of this program version", but "...of this type", as we don't show a
+ program version in the initial dialog
+ (https://wiki.ubuntu.com/ErrorTracker#error) (LP: #961065)
+ - problem_report.py, write_mime(): Do not put a key inline if it is bigger
+ than 1 kB, to guard against very long lines. (LP: #957326)
+ - etc/cron.daily/apport: Do not remove whoopsie's *.upload* stamps every
+ day, only if they are older than a week. whoopsie comes with its own
+ cron job which deals with them. Thanks Steve Langasek. (LP: #957102)
+ - report.py, mark_ignore(): Fix crash if executable went away underneath
+ us. (LP: #961410)
+ - apport-gtk: Do not compare current continue button label against a
+ translated string. Instead just remember whether or not we can restart
+ the application. (LP: #960439)
+ - hookutils.py, command_output(): Add option to keep the locale instead of
+ disabling it.
+ - hookutils.py, command_output(): Actually make the "input" parameter
+ work, instead of causing an eternal hang. Add tests for all possible
+ modes of operation.
+ - hooktuils.py: Change root_command_output() and
+ attach_root_command_outputs() to disable translated messages
+ (LC_MESSAGES=C) only as part of the command to be run, not already for
+ the root prefix command. This will keep the latter (gksu, kdesudo, etc.)
+ translated. (LP: #961659)
+ - apport-gtk: Cut off text values after 4000 characters, as Gtk's TreeView
+ does not get along well with huge values. KDE's copes fine, so continue
+ to display the complete value there. (LP: #957062)
+ - apport-gtk: Make details window resizable in bug reporting mode.
+ - crashdb.py, known(): Check the address signature duplicate database if
+ the symbolic signature exists, but did not find any result. (LP: #103083)
+ - ui.py: Run anonymization after checking for duplicates, to prevent host
+ or user names which look like hex numbers to corrupt the stack trace.
+ (LP: #953104)
+ - apport-gtk: Require an application to both have TERM and SHELL in its
+ environment to consider it a command line application that was started
+ by the user. (LP: #962130)
+ - backends/packaging-apt-dpkg.py, _check_files_md5(): Fix double encoding,
+ which caused UnicodeDecodeErrors on non-ASCII characters in an md5sum
+ file. (LP: #953682)
+ - apport-kde, apport-gtk: Only show "Relaunch" if the report has a
+ ProcCmdline, otherwise we cannot restart it. (LP: #956173)
+ - apport-gtk, apport-kde: Show the ExecutablePath while we're collecting
+ data for the crash report. Thanks Evan Dandrea. (LP: #938707).
+ * debian/copyright: Change to copyright format 1.0.
+ * debian/control: Bump Standards-Version to 3.9.3.
+
+ [ Brian Murray ]
+ * data/general-hooks/ubuntu.py: use main.log to determine UpgradeStatus not
+ apt.log (LP: #886111)
+
+ -- Martin Pitt Thu, 22 Mar 2012 18:55:17 +0100
+
+apport (1.94.1-0ubuntu2) precise; urgency=low
+
+ * Merge from trunk:
+ - ui.py: Ensure that the report file is readable by the crash reporting
+ daemon after running through collect_info(). Thanks Evan Dandrea.
+ - apport-gtk, apport-kde: Set the window title to the distribution name, as
+ per http://wiki.ubuntu.com/ErrorTracker#error . Thanks Evan Dandrea.
+ (LP: #948015)
+ - test/run: Ignore obsolete packages on the system, to avoid breaking the
+ GUI tests due to them.
+ - hookutils.py, attach_alsa(): Add the full "pacmd list" output instead of
+ just sinks and sources. Thanks David Henningsson.
+ - apport-gtk: Fix handling of non-ASCII strings in message dialogs.
+ (LP: #865394)
+
+ -- Martin Pitt Fri, 09 Mar 2012 16:52:53 +0100
+
+apport (1.94.1-0ubuntu1) precise; urgency=low
+
+ * New upstream bug fix release. Changes since our previous snapshot:
+ - apport-cli: Consistently handle unicode vs. byte arrays. (LP: #946207)
+ - report.py, anonymize(): Fix crash when the hostname or user name contain
+ non-ASCII characters. (LP: #945230)
+ - packaging-apt-dpkg.py: Fix UnicodeDecodeError on unexpected md5sum output.
+ (LP: #921037)
+ - apport-gtk: Fix handling of non-ASCII strings in message dialogs.
+ (LP: #865394)
+
+ -- Martin Pitt Wed, 07 Mar 2012 14:47:31 +0100
+
+apport (1.94-0ubuntu2) precise; urgency=low
+
+ * Merge from trunk:
+ - collect_info(): Do not assume that reports have a "ProblemType" field.
+ This is not the case when updating a bug. (LP: #947519)
+ - Re-enable inadvertently disabled "bug report for uninstalled package"
+ test.
+ - Update translations from Launchpad.
+
+ -- Martin Pitt Tue, 06 Mar 2012 11:37:17 +0100
+
+apport (1.94-0ubuntu1) precise; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream release:
+ - apport: Set the group of written reports to "whoopsie" if that group
+ exists.
+ - Fix tests to run properly against the system-installed modules and
+ binaries.
+ - test/run: Run under LC_MESSAGES=C to avoid test failures due to
+ translated strings.
+ - general-hooks/generic.py: Also attach xsession-errors for programs that
+ link to libgtk-3.
+ - launchpad.py: Properly handle "Expired" status, to avoid marking new
+ bugs as duplicates of expired ones. (LP: #941854)
+ - apport: Fix crash if the "whoopsie" group does not exist. (LP: #942326)
+ - report.py, crash_signature(): Do not put "" frames into Python
+ crash signatures that happen outside of function/method calls. Fall back
+ to the file/line number as a frame description instead. This will do a
+ much better job at disambiguating e. g. different ImportError crashes.
+ (LP: #920403)
+ - Make "binary changed since the time of the crash" error message more
+ comprehensible, thanks Paolo Rotolo. (LP: #942830)
+ - crashdb.py, check_duplicate(): It can happen that a bug gets identified
+ as being a duplicate of bug S by symbolic signatures and a duplicate of
+ bug A by address signatures. Empirical evidence shows that this is due
+ to the unavoidable jitter in stack traces (A and S not being identified
+ as duplicates as their signatures differ slightly) and not a logic
+ error. So instead of erroring out, duplicate all three bugs and keep the
+ lowest number as the master ID. (LP: #943117)
+ - Revert the usage of multiple nested threads during data collection, and
+ switch back to only using one UI thread. The UI implementations can, and
+ now do, decide between showing a spinner and showing a progress dialog
+ in the ui_*_info_collection_progress() methods. This fixes libX11
+ crashes when multiple UI threads do changes concurrently (LP: #901675),
+ and also avoids multi-thread induced crashes in Pango (LP: #943661). The
+ removal of the collect() method also fixes the new crashes in it.
+ (LP: #942098, #939803)
+ - ui.py, get_desktop_entry(): Fix crash on uninstalled package.
+ (LP: #940984)
+ - data/unkillable_shutdown: Fix crash on race condition when PID goes away
+ while the report is created. (LP: #546369)
+ - apport/hookutils.py, pci_devices(): Fix crash on unexpected lines from
+ lspci. (LP: #904489)
+ - Drop hardcoded "Ubuntu" words again which crept in with the whoopsie
+ support merge. Use the DistroRelease: field.
+ - apport-kde: Fix Home page URL in KApplication metadata.
+ - apport-gtk: Fix resizability and size after hiding details.
+ (LP: #405418)
+ - test/run: Drop "local" argument. This now tests against the source tree
+ when run in the source tree root, and against the system
+ libraries/programs when run from anywhere else.
+ - test/run: Consider command line arguments as test names and only run
+ those when given. Also support just running a single test.
+ - testsuite: Force the skipping of online tests when $SKIP_ONLINE_TESTS is
+ set.
+ - hookutils.py, xsession_errors(): Add a reasonable default pattern which
+ matches glib-style warnings, errors, criticals etc. and X window errors.
+ In data/general-hooks/generic.py, call it with that default instead of
+ the rather incomplete custom pattern. (LP: #932660)
+ - packaging.py: Add get_package_origin() method, and implement it for
+ apt-dpkg.
+ - report.py, add_package_info(): Add "[origin: ...]" tag to "Package" and
+ "Dependencies" fields for any package which is not native to the
+ distribution. If any such package is present, tag the report with
+ "third-party-packages" in data/general-hooks/generic.py. (LP: #927912)
+ - apport/packaging.py: Add get_uninstalled_package() method as a helper
+ method for the test suite. Use it instead of a hardcoded Debian/Ubuntu
+ specific name in test/test_hooks.py.
+ - test/test_ui_{gtk,kde}.py: Add test cases for complete UI workflow runs
+ for reporting a bug against an installed/uninstalled package, and
+ reporting a crash with and without showing details. This reproduces the
+ recent crashes like LP #901675 or LP #943661.
+ - test_ui.py: Add a test case for reporting a complete report on
+ uninstalled package. This happens when reporting a problem from a
+ different machine through copying a .crash file.
+ - test/run: Add a test that there are no hardcoded "Ubuntu" words in the
+ source. The code should use the DistroRelease: field or lsb_release.
+ * debian/apport-retrace.install: Ship crash-digger. There is no reason any
+ more not to, as it's now very easy to set up a retracer bot environment.
+ * debian/apport.install: Install crash.{class,jar} into test suite
+ directory, so that the test_java_crashes.py test can run.
+ * debian/control: Tighten dependencies to ensure that we don't run a newer
+ UI package against an older python-apport, which would cause crashes due
+ to API mismatches. (LP: #939702)
+ * Drop test/test_backend_rpm.py, as we also drop the RPM backend in the
+ Ubuntu branch.
+ * debian/rules: Update test suite invocation, the "local" argument is
+ obsolete.
+
+ [ Brian Murray ]
+ * data/package-hooks/source_linux.py: add in ProcFB
+
+ -- Martin Pitt Fri, 02 Mar 2012 15:32:07 +0100
+
+apport (1.93-0ubuntu2) precise; urgency=low
+
+ [ Martin Pitt ]
+ * debian/control: Add python-launchpadlib and psmisc build dependencies for
+ the test suite.
+ * Merge from trunk:
+ - apport: Set the group of written reports to "whoopsie" if that group
+ exists.
+
+ [ Brian Murray ]
+ * data/package-hooks/source_ubiquity.py: prevent reporting of bugs where
+ there was an I/O error with the disk being installed to or from
+ (LP: #874727)
+
+ -- Martin Pitt Thu, 23 Feb 2012 17:54:54 +0100
+
+apport (1.93-0ubuntu1) precise; urgency=low
+
+ * New upstream bug fix release:
+ - apport-gtk: Fix crash on nonexisting icon. Thanks Evan Dandrea.
+ (LP: #937354)
+ - ui.py, open_url(): Revert back to calling sudo instead of dropping
+ privileges ourselves; with the latter, calling firefox as the sudo'ing
+ user fails. (LP: #916810, #938128)
+ - ui.py: Fix aborting with "AssertionError" if the report is already
+ known, but without an URL. (LP: #938778)
+ - launchpad.py: If a bug is already known, but the report is private, do
+ not send the report. There is little sense piling up lots of duplicates.
+ (LP: #938700)
+ - test/crash: Fix regression of test_crash_apport(), consider $TERM a
+ non-sensitive variable.
+ - ui.py: Fix test failures for data collection progress, they are not
+ expected to happen for "ProblemType: Crash" any more (happens in the
+ background during sending, or if user clicks on "Show Details").
+ - test/hooks: Use a package from Debian/Ubuntu main, so that this works
+ better during package builds on build servers.
+ - test/python: Do not assume that /var/crash/ exists. Use /var/tmp/ for
+ the fake binaries instead.
+ - data/general-hooks/parse_segv.py: Fix test case name.
+ - ui.py: Fix crash on invalid core dumps. (LP: #937215)
+ - launchpad.py: Fix crash on unicode report titles. (LP: #896626)
+ - apport-gtk: Show the most interesting fields first in the details view.
+ - do-release: Call pyflakes and abort on errors other than unused imports.
+ - Move all test suites out of the code modules into test/test_.py.
+ This avoids having to load it every time the program runs, and also
+ allows running the tests against the installed version of Apport.
+ - Clean up the other executable test script in test/* and change them to
+ the same structure as the module tests.
+ * debian/control: Add python-mock and GTK gir build dependencies for the
+ gtk/kde tests.
+ * debian/control: Add procps dependency to avoid a "command not found" error
+ for killall in the ubuntu.py general hook during the test suite.
+ * debian/control: Add missing python-gi dependency to apport-gtk.
+
+ -- Martin Pitt Thu, 23 Feb 2012 16:22:37 +0100
+
+apport (1.92-0ubuntu1) precise; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream release:
+ - man/apport-bug.1: Mention where crash files are stored. Thanks David
+ Kastrup.
+ - hookutils.py, attach_hardware(): Sort ProcModules, thanks Brian Murray.
+ - launchpad.py: Keep "Dependencies" attachment in duplicates. Thanks Brian
+ Murray.
+ - Reorganize the GNOME and KDE user interface to do the crash
+ notifications and detail browser in a single dialog. Add test/gtk and
+ test/kde tests to check expected dialog layout for different cases.
+ Thanks Evan Dandrea!
+ - Add support for the whoopsie-daisy crash reporting daemon by creating
+ zero-byte .upload file stamps for crash reports. Thanks Evan Dandrea!
+ - ui.py: Fix wrong creation of "~" folder instead of expanding it to home
+ directory when using "Examine locally". Thanks Jason Conti!
+ (LP: #909149)
+ - Replace file() calls with open() for Python 3 compatibility. Thanks
+ Colin Watson!
+ - launchpad.py: Avoid sending tag names with upper case. (LP: #924181)
+ - report.py, crash_signature_addresses(): Fix crash if report does not
+ have "Signal".
+ - apport-gtk: Fix resize handling of expander in details window. Thanks
+ Thomas Bechtold! (LP: #930562)
+ - Clean up unnecessary imports. Thanks Evan Dandrea!
+ * debian/apport-kde.install: Ship new spinner.gif.
+
+ [ Brian Murray ]
+ * data/package-hooks/source_ubiquity.py: include kernel command line from
+ ubiquity syslog in the report as InstallCmdLine
+ * data/package-hooks/source_ubiquity.py: move apport-bug failures due to
+ grub-installer to that package (LP: #878335)
+ * debian/control: Add xvfb dependency so that the test suite can run the GUI
+ tests.
+
+ -- Martin Pitt Mon, 20 Feb 2012 16:55:29 +0100
+
+apport (1.91-0ubuntu1) precise; urgency=low
+
+ * New upstream release:
+ - crashdb.py, check_duplicate(): If a crash has a signature but no
+ existing duplicate in the DB, also check for an existing address
+ signature duplicate in the DB.
+ - apport-retrace: Use DistroRelease specific subdirectory of the cache dir
+ for mapping a file to a package, as these maps are release specific.
+ - packaging-apt-dpkg.py: Refresh Contents.gz cache if it is older than one
+ day.
+ - crashdb.py: Ensure that address_signature duplicate db table does not
+ have multiple identical signatures by making it a primary key. Bump the
+ db format to "3". Existing databases need to be migrated manually as
+ SQLite does not allow adding a "PRIMARY KEY" constraint to existing
+ tables.
+ - crashdb.py: Do not add a new address signature entry if one already
+ exists.
+ - apport-cli: Fix UnicodeDecodeError on unicode report values.
+ (LP: #275972)
+ - launchpad.py: Only set bug task importance if it is undecided.
+ - apport-retrace: Fix "an useful" typo. (LP: #911437)
+ - report.py: Filter out frames which are internal kernel/glibc
+ implementation details and not stable across duplicates. In particular,
+ filter out __kernel-syscall() and the SSE stubs.
+ - crashdb.py: Remove debugging leftover which completely disabled bug
+ pattern checking.
+ - report.py: Update reading AssertionMessage. Current (e)glibc turned
+ __abort_msg from a simple static string into a struct.
+ - Change permissions of .crash files from 0600 to 0640, so that /var/crash
+ can be made g+s and crash handling daemons can access those.
+ - Python exceptions: Blacklist DBus.Error.NoReply. It does not help to get
+ these traces from the client-side application, you need the actual
+ exception in the D-Bus server backend instead. (LP: #914220)
+ - Support /etc/apport/whitelist.d/ similarly to /etc/apport/blacklist.d/,
+ for cases like installer environments where only crashes of a few selected
+ programs should be reported.
+
+ -- Martin Pitt Wed, 18 Jan 2012 09:56:00 +0100
+
+apport (1.90-0ubuntu2) precise; urgency=low
+
+ [ Martin Pitt ]
+ * debian/control: Move from transitional python-gobject to python-gi.
+ * debian/control: Add gdb dependency to apport-retrace.
+ * apport/crashdb.py: Remove debugging leftover which completely disabled bug
+ pattern checking. Cherrypicked from trunk r2120.
+
+ [ Brian Murray ]
+ * data/general-hooks/ubuntu.py: improve match for hard disk errors
+ * data/package-hooks/source_ubiquity.py: tag ubiquity bugs ubiquity-upgrade
+ * data/package-hooks/source_linux.py: disable question regarding uploading
+ oops to kerneloops.org
+
+ -- Martin Pitt Fri, 13 Jan 2012 16:58:28 +0100
+
+apport (1.90-0ubuntu1) precise; urgency=low
+
+ * New upstream release: First beta release of 2.0 which introduces
+ client-side duplicate checking.
+ - report.py: Break out new method stacktrace_top_function() from
+ standard_title(), so that other parts of the code can use this as well.
+ - launchpad.net: When sending retraced results back to the bug report,
+ update the topmost function in the bug title. (LP: #869970)
+ - report.py, add_gdb_info(): Add a new field "StacktraceAddressSignature"
+ which is a heuristic signature for signal crashes. This should be used
+ if crash_signature() fails, i. e. the Stacktrace field does not have
+ enough symbols. This can be used to check for duplicates on the client
+ side, provided that the crash database server supports querying for
+ these. Do not expose this field when uploading to crash databases
+ though, as it can be recomputed from the already existing information
+ (ProcMaps and Stacktrace) and thus would just clutter the reports.
+ - crashdb.py: Add a table "version" with the database format version. Add
+ automatic upgrading to the most current format.
+ - crashdb.py: Put address signatures from reports checked with
+ check_duplicate() into the duplicate database, so that implementations
+ of known() can check for these.
+ - dupdb-admin: Add "publish" dupdb-admin command which exports the
+ duplicate database into a set of text files suitable for WWW publishing.
+ - crashdb.py: Add new method "known(report)" which can be implemented to
+ check if the crash db already knows about the crash signature. If so,
+ the report will not be uploaded, and instead the user will be directed
+ to the existing report URL (if available), similar to bug patterns. The
+ default implementation checks this format, if the crash database is
+ initialized with a "dupdb_url" option pointing to the exported database.
+ - launchpad.py: Override known() to check if the master bug is actually
+ accessible by the reporter, and is not tagged with "apport-failed-retrace"
+ or "apport-request-retrace"; otherwise file it anyway.
+ - crash-digger: Add --publish-db option to conveniently integrate
+ duplicate DB publication (similar to dupdb-admin publish) into retracer
+ setups.
+ - launchpad.py: Attach updated stack traces from a duplicate to the master
+ bug if it failed retracing previously or has an "apport-request-retrace"
+ tag. (LP: #869982)
+ - apport-kde, apport-gtk: Support the "Annotation" field for custom dialog
+ titles for "Crash" and "Package" problem types as well, not just for
+ "Kernel". (LP: #664378)
+ - backends/packaging-apt-dpkg.py: Fix another test case failure when ddeb
+ repository is not enabled.
+ - backends/packaging-apt-dpkg.py: Fix handling of explicit cache directory
+ name when it is a relative path.
+ - launchpad.py: Only query for bugs after 2011-08-01, to avoid timeouts.
+ - ui.py: Also anonymize standard bug title. (LP: #893863)
+ - launchpad.py: Current Launchpad cannot have private bugs which affect
+ multiple projects. Fix test suite accordingly.
+ * data/general-hooks/ubuntu.py: Fix crash if "apport" package is not
+ installed, which might happen on local installs or running the test suite.
+ * etc/default/apport: Re-enable Apport by default; we want reports early in
+ Precise, and we also do not have unstable GNOME versions this time which
+ have known problems. We also have client-side duplicate detection now
+ which should mitigate the noise.
+ * Drop debian/pyversions, debian/pycompat: Obsolete with dh_python2.
+
+ -- Martin Pitt Thu, 24 Nov 2011 16:17:16 +0100
+
+apport (1.26-0ubuntu1) precise; urgency=low
+
+ * New upstream release:
+ - backends/packaging-apt-dpkg.py: Port to current python-apt API.
+ - hookutils.py: Fix path_to_key() to also work with unicode arguments.
+ - test/crash: Exit successfully if apport is not enabled in the system.
+ This allows packages to run the test suite during build.
+ - report.py, add_proc_info(): Correctly handle "python -m "
+ programs as being interpreted and determine the appropriate module path.
+ - Fix some import statements to also work for the system-installed test
+ suite.
+ - test/run: Fix testing data/general-hooks/parse_segv.py when called in
+ system-installed mode.
+ - apport/ui.py: Clean up test .crash file after test cases.
+ - Fix tests when running as root.
+ - setup.py: Fix crash when "javac -version" fails.
+ - README: Update command for one-time enablement.
+ - backends/packaging-apt-dpkg.py: Fix interleaving usage of
+ install_packages() with other operations such as get_version(), by
+ resetting the apt status after building and using the sandbox.
+ - report.py test suite: Remove requirement that $USER is set, which makes
+ it easier to run this from package build environments.
+ - apport/ui.py, test/crash: Use "yes" as test process instead of "cat".
+ The former is less likely to run already, and does not depend on having
+ a stdin, so it runs better in test environments like autopkgtest.
+ - backends/packaging-apt-dpkg.py: Fix tests if system does not have a
+ dbgsym apt source.
+ - Ignore a crash if gnome-session is running and says that the session is
+ being shut down. These often die because X.org or other services are
+ going away, are usually harmless, and just cause a lot of clutter in bug
+ trackers. (LP: #460932)
+ - test/crash: Rewrite using Python's unittest, to be in line with other
+ tests, and be easier to maintain and extend.
+ * Add debian/tests/control and debian/tests/upstream-system:
+ DEP-8/autopkgtest control file for running the upstream tests.
+ * debian/control: Bump minimal Python version to 2.7, as the upstream trunk
+ is now moving to Python 3 compatibility; some of the new syntax does not
+ work with 2.6 yet.
+ * debian/control: Update apport-retrace package description, apport-chroot
+ is gone. Also drop the now obsolete Suggests.
+ * debian/rules: Run tests during package build, but do not let them fail the
+ build just yet. It will still take a while until all test suceed in the
+ buildd environment.
+ * debian/control: Add gdb and python-twisted-core build dependencies, so
+ that the test suite can succeed.
+ * debian/control: Move python-gobject and gir1.2-glib-2.0 dependencies from
+ apport-gtk to apport, as our generic.py hook needs it. Also add them to
+ build depends for the test suite.
+ * debian/control: Add missing lsb-release dependency, used by
+ Report.add_os_info().
+ * debian/control: Add net-books build dependency, test suite uses "route" to
+ determine whether or not to run the online tests.
+
+ -- Martin Pitt Fri, 11 Nov 2011 11:32:49 +0100
+
+apport (1.25-0ubuntu1) precise; urgency=low
+
+ * New upstream release:
+ - Add new response "Examine locally" to presenting the report details,
+ which runs apport-retrace in the chosen mode in a terminal. This should
+ be made available for crash reports if apport-retrace and a Terminal
+ application are installed; add an abstrace UI method for this.
+ (LP: #75901)
+ - apport-gtk: Add "Examine locally..." button, and implement
+ ui_run_terminal().
+ - apport-cli: Add "Examine locally..." responses, and implement
+ ui_run_terminal().
+ - apport-cli: Greatly speed up displaying large reports. This also changes
+ the format to avoid indenting each line with a space, and visually set
+ apart the keys in a better way.
+ - apport_python_hook.py: Move tests out of this file into test/python, to
+ avoid having to parse the unit tests at each Python startup.
+ - test/python: Also make tests work if Python hook is not installed in
+ system's sitecustomize.py.
+ - packaging.py: Add get_modified_conffiles() API, and implement it in
+ packaging-apt-dpkg.py.
+ - hookutils.py: Add attach_conffiles().
+ - hookutils.py: Add attach_upstart_overrides().
+ - launchpad.py: Remove "Ubuntu" in bug response, replace with "this
+ software". (LP: #883234)
+ - apport-kde: Rearrange order of imports to get intended error message if
+ PyKDE is not installed.
+ - packaging-apt-dpkg.py: Ignore hardening-wrapper diversions, to make
+ gcc_ice_hook work if hardening-wrapper is installed.
+ - apport_python_hook: Respect $APPORT_REPORT_DIR.
+ - apport_python_hook: Limit successive crashes per program and user to 3
+ per day, just like signal crashes. (LP: #603503)
+ - packaging-apt-dpkg.py: Skip online tests when there is no default route.
+ - ui.py: Fix test suite to not fail if system has some obsolete or
+ non-distro packages.
+
+ -- Martin Pitt Wed, 02 Nov 2011 20:45:08 -0400
+
+apport (1.24-0ubuntu1) precise; urgency=low
+
+ * New upstream release 1.23.1:
+ - apport/crashdb.py: Ensure that duplicate table only has one entry per
+ report ID.
+ - apport-retrace: Pass correct executable path to gdb in --gdb with
+ --sandbox mode.
+ - apport-retrace: Do not leave behind temporary directories on errors.
+ - apport-retrace: Drop assertion failure for existance of "Stacktrace".
+ This isn't present in the case of gdb crashing, and there is not much we
+ can do about it. This should not break the retracer.
+ - apport/report.py: Unwind XError() from stack traces for the
+ "StacktraceTop" field, as they take a significant part of the trace.
+ This causes bugs to be duplicated which really have different causes.
+ * New upstream release 1.24:
+ - apport-retrace: Add --timestamp option to prepend a timestamp to log
+ messages. This is useful for batch operations.
+ - crash-digger: Call apport-retrace with --timestamps, to get consistent
+ timestamps in log output.
+ - hookutils.py: Add two new functions attach_gsettings_package() and
+ attach_gsettings_schema() for adding user-modified gsettings keys to a
+ report. (LP: #836489)
+ - hookutils.py: Add new function in_session_of_problem() which returns
+ whether the given report happened in the currently running XDG session.
+ This can be used to determine if e. g. ~/.xsession-errors is relevant and
+ should be attached.
+ - backends/packaging-apt-dpkg.py, install_packages(): Also copy
+ apt/sources.list.d/ into sandbox.
+ - backends/packaging-apt-dpkg.py, install_packages(): Install apt keyrings
+ from config dir or from system into sandbox. (LP: #856216)
+ - packaging.py, backends/packaging-apt-dpkg.py: Define that
+ install_packages() should return a SystemError for broken
+ configs/unreachable servers etc., and fix the apt/dpkg implementation
+ accordingly.
+ - apport-retrace: Don't crash, just give a proper error message if servers
+ are unreachable, or configuration files are broken. (LP: #859248)
+ - backends/packaging-apt-dpkg.py: Fix crash when
+ /etc/apport/native-origins.d contains any files. (LP: #865199)
+ - hookutils, recent_logfile(): Fix invalid return value if log file is not
+ readable. (LP: #819357)
+ - test/crash: Fix race condition in the "second instance terminates
+ immediately" check.
+ - hookutils.py: Replace attach_gconf() with a no-op stub. It used static
+ python modules like "gconf" which broke the PyGI GTK user interface, and
+ gconf is rather obsolete these days.
+ - ui.py, open_url(): Greatly simply and robustify by just using xdg-open.
+ This already does the right thing wrt. reading the default browser from
+ GNOME, KDE, XCE, and other desktops. (LP: #198449)
+ - data/general-hooks/generic.py: Only attach ~/.xsession_errors if the bug
+ is reported in the same XDG session as the crash happened. (LP: #869974)
+ - Ignore crashes for programs which got updated in between the crash and
+ reporting. (LP: #132904)
+ - Special-case crashes of 'twistd': Try to determine the client program and
+ assign the report to that, or fail with an UnreportableReason.
+ (LP: #755025)
+ - apport-gtk: In bug update mode, make details dialog resizable and fix
+ default size. (LP: #865754)
+ - apport-gtk: Fix crash if report does not have ProcCmdline. (LP: #854452)
+ - hookutils.py, attach_wifi(): Anonymize ESSID and AP MAC from "iwconfig"
+ output. (LP: #746900)
+ - test/crash: Fix test failure if user is not in any system groups.
+ - test/crash: Change to /tmp/ for test crash process, to fix failure if the
+ user that runs the test suite cannot write into the current directory.
+ (LP: #868695)
+ - ui.py: Improve error message if package is not a genuine distro package.
+ Thanks to Ronan Jouchet. (LP: #559345)
+ * debhelper/dh_apport: Install debian/source.apport into the first binary
+ package only, as per documentation. (LP: #687584)
+ * debian/apport.upstart: Exit pre-start with 0 if apport is disabled, to
+ avoid warning message about failed startup. (LP: #857086)
+ * debian/control: Update Vcs-Bzr: for precise branch.
+
+ -- Martin Pitt Wed, 19 Oct 2011 09:39:41 +0200
+
+apport (1.23-0ubuntu3) oneiric; urgency=low
+
+ * etc/default/apport: Disable for final Oneiric release.
+
+ -- Martin Pitt Wed, 05 Oct 2011 16:41:07 +0200
+
+apport (1.23-0ubuntu2) oneiric; urgency=low
+
+ [ Martin Pitt ]
+ * debian/control: Bump GIR dependencies to ensure that we don't run this
+ against older versions against gir1.2-glib-2.0, which still have a wrong
+ API for markup_escape_text(). (LP: #851450)
+
+ [ Brian Murray ]
+ * data/general-hooks/ubuntu.py: also check CurrentDmesg for disk errors
+ as some package hooks add it
+ * data/package-hooks/source_debian-installer.py: for dmraid collection use
+ attach_root_command_outputs (LP: #856826)
+
+ -- Martin Pitt Wed, 28 Sep 2011 07:12:19 +0200
+
+apport (1.23-0ubuntu1) oneiric; urgency=low
+
+ [ Brian Murray ]
+ * data/package-hooks/source_ubiquity.py: Do not create a DuplicateSignature
+ for bugs with a Traceback included as it is redundant
+
+ [ Martin Pitt ]
+ * New upstream release:
+ - crashdb.py, crash-digger, dupdb-admin: Drop the concept of "duplicate DB
+ consolidation". Such massive queries cause timeouts with e. g.
+ Launchpad. Instead, update the status of potential master bugs in the
+ crash DB whenever check_duplicate() is called. Note that this does not
+ affect Ubuntu itself, just the retracers in the data center.
+ - launchpad.py: Fix crash in close_duplicate() if master bug was already
+ marked as a duplicate of the examined bug.
+ - problem_report.py, load(): Fix missing last character if the last line
+ in a multi-line field is not terminated with a newline.
+ - launchpad.py: Fix test_marking_python_task_mangle() check to work with
+ current Launchpad.
+ - apport-retrace: If the user did not specify a --cache directory, create
+ a shared one instead of letting the two install_packages() calls create
+ their own. This ensures that the apt and dpkg status is up to date, and
+ avoids downloading the package indexes multiple times. (LP: #847951)
+ - apport-retrace: Give proper error mesage instead of AssertionError crash
+ if a report does not contain standard Apport format data. (LP: #843221)
+ - fileutils.py, get_new_reports(): Fix crash if report file disappears in
+ the middle of the operation. (LP: #640216)
+ - apport/ui.py, load_report(): Intercept another case of broken report
+ files. (LP: #445142)
+ - apport/report.py, standard_title(): Escape regular expression control
+ characters in custom exception names. (LP: #762998)
+ * data/package-hooks/source_ubiquity.py: Fix crash if
+ prepare_duplicate_signature() does not return anything. (LP: #843911)
+ * debian/control: Bump Standards-Version to 3.9.2 (no changes necessary).
+
+ -- Martin Pitt Wed, 14 Sep 2011 08:29:03 +0200
+
+apport (1.22.1-0ubuntu2) oneiric; urgency=low
+
+ * data/general-hooks/ubuntu.py: include apport version in bug reports since
+ apport contains code for blocking bug reports and source package hooks
+
+ -- Brian Murray Thu, 08 Sep 2011 20:09:57 +0200
+
+apport (1.22.1-0ubuntu1) oneiric; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream release:
+ - dupdb-admin: Add "removeid" command.
+ - dupdb-admin: Use the in-memory CrashDB implementation for simple
+ operations like dump or changeid, which do not require an actual
+ backend. This makes the command work in checkouts without a
+ /etc/apport/crashdb.conf.
+ - dupdb-admin: Fix UnicodeEncodeError crash.
+ - launchpad.py: Fix crash if a crash report does not have a DistroRelease.
+ - Set the default "Apport" title for choice dialogs instead of the default
+ apport-gtk title. Thanks Robert Roth. (LP: #608222)
+ - apport-gtk: Update markup_escape_text() call to current glib.
+ (LP: #829635)
+ * data/package-hooks/source_ubiquity.py: Only set a DuplicateSignature and
+ change the source package if we are reporting a package or program crash,
+ not for ProblemType == 'Bug'.
+
+ [ Brian Murray ]
+ * data/general-hooks/ubuntu.py: check the device holding /, /var and /usr
+ partitions for I/O errors and if they exist make the bug unreportable
+ * data/package-hooks/source_ubiquity.py: Use attachment OemConfigLog to
+ determine whether or not to tag the bug oem-config not information in
+ syslog
+
+ -- Martin Pitt Tue, 06 Sep 2011 08:16:46 +0200
+
+apport (1.22-0ubuntu3) oneiric; urgency=low
+
+ * data/package-hooks/source_ubiquity.py: Fix crash on undefined 'version'.
+ (LP: #837048)
+
+ -- Martin Pitt Tue, 30 Aug 2011 06:35:43 +0200
+
+apport (1.22-0ubuntu2) oneiric; urgency=low
+
+ * data/package-hooks/source_ubiquity.py: create a duplicate signature for
+ ubiquity bug reports using data in syslog
+
+ -- Brian Murray Fri, 26 Aug 2011 13:17:38 -0400
+
+apport (1.22-0ubuntu1) oneiric; urgency=low
+
+ [ Brian Murray ]
+ * data/general-hooks/ubuntu.py: generate a DuplicateSignature tag for
+ distribution upgrades too.
+
+ [ Martin Pitt ]
+ * New upstream release:
+ - Completely rework apport-retrace to use gdb's "debug-file-directory" and
+ "solib-absolute-prefix" settings and only unpack the necessary packages
+ in a temporary directory. This makes it possible to use it in a running
+ system without actually touching installed packages, does not need any
+ root privileges, and stops the requirement of using chroots with
+ fakechroot and fakeroot. This is a lot easier to maintain and use, and a
+ lot faster, too. As a consequence, drop the chroot module, and update
+ crash-digger accordingly. See "man apport-retrace" for the new usage.
+ It is now also easier to port to other packaging backends, as a lot of
+ the common logic moved out of the packaging API;
+ packaging.install_retracing_packages() got dropped in favor of the
+ simpler packaging.install_packages(). (LP: #832740)
+ - launchpad.py: When searchTasks() times out, exit with 99 as this is a
+ transient error.
+ - crash-digger: Intercept OverflowError from downloaded compressed
+ attachments.
+ - crash-digger: Show how many bugs are left in the pool with each new
+ retrace.
+ * Drop debian/local/apport-chroot and manpage, and ubuntu-fat-chroot. These
+ are obsolete now with the new apport-retrace.
+ * Drop debian/local/setup-apport-retracer: Most of it is obsolete now,
+ setting up a retracer merely needs an lp:apport checkout and creating an
+ apt sources file, we don't need a script for that any more.
+ * data/general-hooks/ubuntu.py: Fix invalid "continue" statement in
+ DuplicateSignature code. (LP: #828037)
+
+ -- Martin Pitt Thu, 25 Aug 2011 16:31:37 +0200
+
+apport (1.21.3-0ubuntu4) oneiric; urgency=low
+
+ * data/package-hooks/source_ubiquity.py: remove use of continue when not in
+ a loop (LP: #828037)
+
+ -- Brian Murray Wed, 17 Aug 2011 07:34:21 -0700
+
+apport (1.21.3-0ubuntu3) oneiric; urgency=low
+
+ * Fix crash in GLib.markup_escape_text() call. Patch cherrypicked from
+ trunk. (LP: #828010)
+
+ -- Martin Pitt Wed, 17 Aug 2011 15:52:22 +0200
+
+apport (1.21.3-0ubuntu2) oneiric; urgency=low
+
+ * data/package-hooks/source_ubiquity.py:
+ - attach the contents of syslog in the case where it is readable by the
+ user (LP: #824799)
+ - prevent reporting of bugs due to I/O error with installation media
+
+ -- Brian Murray Wed, 17 Aug 2011 14:43:21 +0200
+
+apport (1.21.3-0ubuntu1) oneiric; urgency=low
+
+ * New upstream bug fix release. Changes since our previous snapshot:
+ - Add apport.packaging.get_library_paths() interface and implement it for
+ backends/packaging-apt-dpkg.py using dpkg multiarch directories. Use it
+ in chroot.py. This unbreaks apport-chroot for oneiric.
+ - hookutils.py: Don't attach empty values. Thanks Bryce Harrington.
+ (LP: #813798)
+ - apport-gtk: Correctly pass message dialog type.
+ - apport-gtk: Fix GLib and GObject imports to be compatible with the future
+ pygobject 3.0.
+ - hookutils.py, attach_alsa(): Get a list of outputs/inputs that PulseAudio
+ knows about, which also shows the currently selected output/input, as well
+ as volumes. This should help with "no sound" bug troubleshooting. Thanks
+ Luke Yelavich.
+ * data/general-hooks/ubuntu.py: Fix crash if report doesn't have a Package
+ field (caught by test suite).
+ * data/general-hooks/ubuntu.py: Fix crash if report doesn't have a
+ DpkgTerminalLog field (caught by test suite).
+
+ -- Martin Pitt Wed, 17 Aug 2011 08:42:18 +0200
+
+apport (1.21.2-0ubuntu14) oneiric; urgency=low
+
+ * data/general-hooks/ubuntu.py: resolve issue with the contents of
+ DuplicateSignature being truncated
+
+ -- Brian Murray Sat, 13 Aug 2011 11:40:07 -0700
+
+apport (1.21.2-0ubuntu13) oneiric; urgency=low
+
+ * data/general-hooks/ubuntu.py: do not report package installation failures
+ where the conflicting package is not a genuine Ubuntu package
+
+ -- Brian Murray Thu, 11 Aug 2011 12:40:11 -0700
+
+apport (1.21.2-0ubuntu12) oneiric; urgency=low
+
+ * Merge change from trunk:
+ - apport/hookutils.py: properly detect as non-root when auditd is being
+ used, use egrep as we're using an extended regex.
+
+ -- Marc Deslauriers Wed, 10 Aug 2011 13:42:27 -0400
+
+apport (1.21.2-0ubuntu11) oneiric; urgency=low
+
+ * data/general-hooks/ubuntu.py:
+ - create a duplicate signature for package installation failures
+ - tag install failures due to a package conflict 'package-conflict'
+ (LP: #368435)
+
+ -- Brian Murray Wed, 10 Aug 2011 09:02:04 -0700
+
+apport (1.21.2-0ubuntu10) oneiric; urgency=low
+
+ * data/package-hooks/source_debian-installer.py:
+ - collect installation log files (LP: #820582)
+ * data/package-hooks/source_ubiquity.py:
+ - tag bug reports using the version of ubiquity and oem-config if
+ applicable
+
+ -- Brian Murray Thu, 04 Aug 2011 11:48:25 -0700
+
+apport (1.21.2-0ubuntu9) oneiric; urgency=low
+
+ * data/package-hooks/source_linux.py:
+ - kernel driver tag needs a space before it
+ - add grub-pc to related package version if an apport-package bug
+
+ -- Brian Murray Mon, 25 Jul 2011 12:36:54 -0700
+
+apport (1.21.2-0ubuntu8) oneiric; urgency=low
+
+ * data/package-hooks/source_linux.py:
+ - ensure Oops with RIP get tagged with the kernel-driver
+
+ -- Brian Murray Fri, 22 Jul 2011 09:34:46 -0700
+
+apport (1.21.2-0ubuntu7) oneiric; urgency=low
+
+ [ Martin Pitt ]
+ * data/general-hooks/ubuntu.py: Fix calling of add_info() in the __main__
+ test code.
+
+ [ Brian Murray ]
+ * data/package-hooks/source_ubiquity.py:
+ - collect all logs using root_command_outputs (LP: #812738)
+ * apport/hookutils.py:
+ - check to see if the package has any upstart override files
+ * data/general-hooks/ubuntu.py:
+ - when reporting a problem use the upstart override check (LP: #803977)
+
+ -- Martin Pitt Fri, 22 Jul 2011 16:51:22 +0200
+
+apport (1.21.2-0ubuntu6) oneiric; urgency=low
+
+ * data/general-hooks/ubuntu.py:
+ - In addition to DpkgTerminalLog also check VarLogDistupgradeApttermllog
+ for package installation failure messages
+ - Also move postrm.d/zz-update-grub errors to grub2
+ * apport/hookutils.py:
+ - raise a yes no dialog in the event a conffile has been modified
+ (LP: #811203)
+
+ -- Brian Murray Thu, 21 Jul 2011 06:36:04 +0200
+
+apport (1.21.2-0ubuntu5) oneiric; urgency=low
+
+ * data/general-hooks/ubuntu.py:
+ - Check DpkgTerminalLog for more cases that indicate the bug report should
+ be filed about grub2
+ * data/package-hooks/source_linux.py:
+ - kerneloops was a transitional package we want the version of
+ kerneloops-daemon
+
+ -- Brian Murray Tue, 19 Jul 2011 07:20:07 +0200
+
+apport (1.21.2-0ubuntu4) oneiric; urgency=low
+
+ [ Brian Murray ]
+ * data/package-hooks/source_linux.py:
+ - tag kerneloops reports with the driver the Oops occurred in
+ - include kerneloops package version in kerneloops reports
+
+ [ Martin Pitt ]
+ * Merge changes from trunk:
+ - gtk/apport-gtk.desktop.in: Also show in Unity. (LP: #803519)
+ - apport-unpack: Fix crash on file errors.
+ - hookutils.py: Add attach_mac_events() for reporting logs of MAC systems.
+ Looks for AppArmor messages for now. Thanks Marc Deslauriers!
+
+ -- Martin Pitt Thu, 14 Jul 2011 18:13:52 +0200
+
+apport (1.21.2-0ubuntu3) oneiric; urgency=low
+
+ * data/general-hooks/ubuntu.py: add in casper package version to bugs
+ reported from Live Media
+
+ -- Brian Murray Thu, 14 Jul 2011 06:30:51 +0200
+
+apport (1.21.2-0ubuntu2) oneiric; urgency=low
+
+ * data/package-hooks/source_ubiquity.py:
+ - Check syslog for squashfs errors and do not report
+ - Ask before adding installer debug log file (LP: #773766)
+
+ -- Brian Murray Thu, 07 Jul 2011 13:40:17 -0700
+
+apport (1.21.2-0ubuntu1) oneiric; urgency=low
+
+ * New upstream bug fix release. Changes since our trunk snapshot:
+ - generic hook: Don't report package installation failures due to
+ segfaulting maintainer scripts. We want the actual crash report only.
+ Thanks Brian Murray.
+ - hookutils.py, attach_wifi(): Also include wpasupplicant logs. Thanks
+ Mathieu Trudel-Lapierre!
+ - report.py: Fix bug patterns to correctly match against compressed report
+ fields.
+ * gtk/apport-gtk.desktop.in: Also show in Unity. Cherrypicked from trunk.
+ (LP: #803519)
+ * etc/default/apport: Turn Apport back on by default for Alpha 2.
+
+ -- Martin Pitt Fri, 01 Jul 2011 16:32:38 +0100
+
+apport (1.21.1-0ubuntu2) oneiric; urgency=low
+
+ * Merge from trunk:
+ - test/run: Check $PYTHON for using a different Python interpreter (such
+ as "python3") for the tests.
+ - backends/packaging-apt-dpkg.py: Fix crash introduced in 1.21.1's
+ multiarch fixes.
+
+ -- Martin Pitt Wed, 22 Jun 2011 10:42:15 +0200
+
+apport (1.21.1-0ubuntu1) oneiric; urgency=low
+
+ * New upstream release:
+ - data/general-hooks/generic.py: Also check for low space on /var. Thanks
+ Brian Murray.
+ - hookutils.py, attach_file() and attach_file_if_exists(): Add a new
+ "overwrite" flag option. If not given, now default to overwriting an
+ existing key, as this is usually what you need when attaching files
+ (instead of attaching it several times with '_' appended to the keys).
+ You can get the old behaviour by setting overwrite=False.
+ - When showing the size of the full report, take the compressed size of
+ binary values instead of their uncompressed size, as the crash db upload
+ will use the compressed values.
+ - backends/packaging-apt-dpkg.py: Fix for current dpkg with multiarch
+ support.
+ - test/run: Fix the test suite to run against the system installed
+ libraries with current Python versions (2.6, 2.7) where __file__ does
+ not work any more with imports.
+
+ -- Martin Pitt Mon, 20 Jun 2011 11:53:30 +0200
+
+apport (1.21-0ubuntu1) oneiric; urgency=low
+
+ * New upstream release. Changes since our previous trunk merge:
+ - Supply --desktop option to kdesudo to improve the description which
+ program is requesting administrative privileges.
+ - apport-checkreports: Exit with status 2 if there are new reports, but
+ apport is disabled. This helps crash notification GUIs to not display new
+ crash reports in that case. Thanks to Michael Vogt for the original patch.
+ - Add data/is-enabled: Shell script to check if apport is enabled.
+ Non-Python programs (which can't use apport.packaging.enabled() ) can
+ call this instead of having to parse /etc/default/apport themselves, and
+ just check the exit code. Inspired by original patch from Michael Vogt.
+
+ -- Martin Pitt Wed, 08 Jun 2011 11:19:01 +0200
+
+apport (1.20.1-0ubuntu6) oneiric; urgency=low
+
+ * debian/control: Update Vcs-Bzr: to oneiric branch.
+ * bin/apport-bug: Finally drop the long-deprecated -p/-P options.
+ * gtk/apport-gtk: Stop forcing GTK 2, we move to GTK 3 now. Update GIR
+ dependency accordingly.
+ * man/apport-bug.1: Revert change to explain $APPORT_STAGING, this has been
+ removed long ago.
+ * Convert packaging from cdbs+python-central to dh7+dh_python2.
+
+ -- Martin Pitt Tue, 17 May 2011 15:34:10 +0200
+
+apport (1.20.1-0ubuntu5) natty; urgency=low
+
+ [ Kees Cook ]
+ * debian/rules: really ignore "start" result at install (LP: #767829).
+
+ [ Brian Murray ]
+ * Only prepend linux bug titles with [STAGING] if a title exists
+ (LP: #767864).
+
+ -- Kees Cook Wed, 20 Apr 2011 16:27:06 -0700
+
+apport (1.20.1-0ubuntu4) natty; urgency=low
+
+ * Ignore return code on startup (LP: #767498)
+
+ -- Stéphane Graber Wed, 20 Apr 2011 16:55:58 -0400
+
+apport (1.20.1-0ubuntu3) natty; urgency=low
+
+ * Merge from trunk:
+ - Use kde-open instead of kfmclient to open URLs under KDE. Thanks Philip
+ Muškovac. (LP: #765808)
+ * etc/default/apport: Disable by default for the final release.
+
+ -- Martin Pitt Wed, 20 Apr 2011 18:57:27 +0200
+
+apport (1.20.1-0ubuntu2) natty; urgency=low
+
+ [ Brad Figg ]
+ * The kernel team has decided that asking the user for a bunch of
+ information which they may not be able to answer is the wrong thing to do.
+ Therefore, all the propmpting of the user for said information has been
+ removed. Also removed is the tagging of "needs-upstream-testing".
+
+ [ Martin Pitt ]
+ * Merge bug fixes from trunk:
+ - apport-gtk: HTML-escape text for dialogs with URLs. (LP: #750870)
+ - dump_acpi_tables.py: Check to see if acpi/tables dir is mounted first.
+ Thanks Brian Murray. (LP: #729622)
+ - man/apport-cli.1: Document recently added -w/--window option. Thanks
+ Abhinav Upadhyay. (LP: #765600)
+
+ -- Martin Pitt Tue, 19 Apr 2011 11:04:57 +0200
+
+apport (1.20.1-0ubuntu1) natty; urgency=low
+
+ * New upstream bug fix release:
+ - Add bash completion support for new -w/--window option that was
+ introduced in 1.20. Thanks Philip Muškovac.
+ - apport-unpack: Fix crash if target directory already exists.
+ - Fix crash if UnreportableReason is a non-ASCII string. (LP: #738632)
+ - Fix crash if application from desktop name is a non-ASCII string.
+ (LP: #737799)
+ - unkillable_shutdown: Fix rare crash if ExecutablePath does not exist
+ (any more). (LP: #537904)
+ - kernel_crashdump: Fix crash if the vmcore file disappeared underneath
+ us. (LP: #450295)
+ - unkillable_shutdown: Fix crash if the checked process terminated
+ underneath us. (LP: #540436)
+ - ui.py: Properly raise exceptions from the upload thread that happen at
+ its very end. (LP: #469943)
+ * data/package-hooks/source_ubiquity.py: Read root-only accessible log files
+ as root. (LP: #745455)
+
+ -- Martin Pitt Thu, 31 Mar 2011 17:37:16 +0200
+
+apport (1.20-0ubuntu1) natty; urgency=low
+
+ * New upstream release. Changes since our previous snapshot:
+ - Add support for -w/--window option which will enable user to select a
+ window as a target for filing a problem report. Thanks Abhinav Upadhyay.
+ (LP: #357847)
+ - Disable the filtering on SIGABRT without assertion messages. Turns out
+ that developers want these crash reports after all. (LP: #729223)
+ - Add support for a "DuplicateSignature" report fields. This allows
+ package hooks to implement custom duplicate problem handling which
+ doesn't need to be hardcoded in Apport itself. Update the launchpad
+ backend to tag such bugs as "need-duplicate-check".
+ - hookutils.py Update WifiSyslog regex to correctly catch application log
+ messages in syslog. Thanks Mathieu Trudel-Lapierre. (LP: #732917)
+ - hookutils.py, attach_hardware(): Avoid error message if machine does not
+ have a PCI bus. Thanks Marcin Juszkiewicz. (LP: #608449)
+ - backends/packaging-apt-dpkg.py: Replace deprecated getChanges() call
+ with get_changes().
+ - apport-gtk: Fix broken dialog heading if the name of the crashed program
+ contains an & or other markup specific characters.
+ - apport-gtk: Don't crash if GTK cannot be initialized. This usually
+ happens without a $DISPLAY or when the session is being shut down. Just
+ print an error message. If there are pending crashes, they will be shown
+ again the next time a session starts. (LP: #730569)
+ * debian/local/apport-chroot: In retracing mode, fix the passed --auth and
+ --duplicate-db arguments to be paths within the fakechroot.
+ * debian/local/apport-chroot: Apply the same absolute path fix to retracing
+ mode that we already applied to login mode in 1.19-0ubuntu1.
+
+ -- Martin Pitt Fri, 18 Mar 2011 16:39:07 +0100
+
+apport (1.19-0ubuntu3) natty; urgency=low
+
+ * Merge fixes from trunk:
+ - apport-retrace: Intercept SystemErrors from ill-formed gzip attachments
+ as well.
+ - Fix crash if crash database configuration does not specify a
+ bug_pattern_url. Just assume None. (LP: #731526)
+ - If a custom crash database does not specify a bug_pattern_url, fall back
+ to using the default database's. (LP: #731526)
+
+ -- Martin Pitt Wed, 09 Mar 2011 19:21:16 +0100
+
+apport (1.19-0ubuntu2) natty; urgency=low
+
+ * gtk/apport-gtk: Update require_version() call to current pygobject API.
+ Bump python-gobject dependency accordingly.
+ * Merge from trunk:
+ - report.py, add_hooks_info(): Properly report TypeErrors from hooks.
+
+ -- Martin Pitt Thu, 03 Mar 2011 17:20:41 +0100
+
+apport (1.19-0ubuntu1) natty; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream release:
+ - apt backend: Do not generate a warning if the opportunistically added -dbg
+ package does not exist.
+ - apt backend: Only add -dbg in --no-pkg mode, as there will be conflicts in
+ normal package mode.
+ - apt backend: Call tar with target cwd instead of using -C; the latter causes
+ an extra openat() call which breaks with current fakechroot.
+ - launchpad.py: Fix retracer crash if DistroRelease field does not exist.
+ - Convert deprecated failIf()/assert_() TestCase method calls to
+ assertFalse()/assertTrue().
+ - In apport-bug, if the user specifies a PID referring to a kernel thread,
+ do the right thing and file the bug against the kernel
+ - In hookutils.attach_dmesg, skip over an initial truncated message if one
+ is present (this happens when the ring buffer overflows)
+ - Change bug patterns to just use one central file instead of per-package
+ files. This allows bug patterns to be written which are not package
+ specific, and is easier to maintain as well. IMPORTANT: This changed the
+ format of crashdb.conf: bug_pattern_base is now obsolete, and the new
+ attribute bug_pattern_url now points to the full URL/path of the patterns
+ file. Thanks to Matt Zimmerman!
+ * debian/local/setup-apport-retracer: Drop local installation of packages,
+ we now just check that they are installed in the system.
+ * debian/local/apport-chroot: Convert --auth argument to absolute path, as
+ fakechroot needs that.
+
+ [ Steve Langasek ]
+ * data/general-hooks/ubuntu.py: don't collect bug reports on missing
+ menu.lst - this is a user error that they need to fix up on their side.
+ (LP: #668888)
+
+ [ Matt Zimmerman ]
+ * data/general-hooks/ubuntu.py: Add UpgradeStatus field to show if the
+ system was upgraded from a previous release (and when)
+ * debian/apport.install: actually install the java_uncaught_exception script
+
+ -- Martin Pitt Mon, 28 Feb 2011 12:16:22 +0100
+
+apport (1.18-0ubuntu2) natty; urgency=low
+
+ * Merge from trunk:
+ - Update stack unwind patterns for current glib (slightly changed function
+ names), and also ignore a preceding '*'. (LP: #716251)
+ - Fix crash_signature() to fail if there is an empty or too short
+ StacktraceTop.
+
+ -- Martin Pitt Sun, 20 Feb 2011 20:31:02 +0100
+
+apport (1.18-0ubuntu1) natty; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream release:
+ - Ensure that symptom scripts define a run() function, and don't show them
+ if not.
+ - Do not show symptom scripts which start with an underscore. These can be
+ used for private libraries for the actual symptom scripts.
+ - Update bash completion. Thanks Philip Muškovac.
+ - etc/default/apport: Remove obsolete "maxsize" setting. (LP: #719564)
+ - Remove explicit handling of KDE *.ui files in setup.py, as
+ python-distutils-extra 2.24 fixes this. Bump version check.
+ - hookutils.py: Add attach_root_command_outputs() to run several commands
+ at once. This avoids asking for the password several times.
+ (LP: #716595)
+ * debian/apport.postinst: Add missing debhelper token.
+ * debian/rules: Drop dump_acpi_tables.py chmod workaround, it's upstream now
+ and has the proper permissions.
+ * Add etc/apport/blacklist.d/apport and drop the creation of it in
+ /debian/rules. This is easier to maintain and more obvious. Also move
+ README.blacklist from python-apport to apport, it fits better there.
+ * etc/apport/blacklist.d/apport: Add the binaries of nspluginwrapper, as we
+ can't do anything about them anyway. (LP: #717468)
+
+ [ Brian Murray ]
+ * data/package-hooks/source_linux.py: Properly set regression-release tag if
+ the reporter chooses "I do not know".
+
+ -- Martin Pitt Wed, 16 Feb 2011 14:29:36 +0100
+
+apport (1.17.2-0ubuntu2) natty; urgency=low
+
+ * Merge from trunk:
+ - Ensure that symptom scripts define a run() function, and don't show them
+ if not.
+ - Do not show symptom scripts which start with an underscore. These can be
+ used for private libraries for the actual symptom scripts.
+
+ -- Martin Pitt Mon, 07 Feb 2011 12:23:57 +0100
+
+apport (1.17.2-0ubuntu1) natty; urgency=low
+
+ * New upstream bug fix release:
+ - Be more Python 3 compatible (not fully working with Python 3 yet,
+ though).
+ - apt/dpkg backend: Drop support for pre-0.7.9 python-apt API.
+ - Add --tag option to add extra tags to reports. (LP: #572504)
+ - hookutils.py, attach_dmesg(): Do not overwrite already existing dmesg.
+ - hookutils.py: Be more robust against file permission errors.
+ (LP: #444678)
+ - ui.py: Do not show all the options in --help when invoked as *-bug.
+ (LP: #665953)
+ - launchpad.py: Adapt test cases to current standard_title() behaviour.
+ * debian/control: Bump python-apt dependency to >= 0.7.9 to ensure that we
+ have the current API. Trunk dropped support for the old API.
+ * data/general-hooks/ubuntu.py: Ignore obsolete packages when filing bugs
+ against update-manager. (LP: #397519)
+ * data/general-hooks/ubuntu.py: Do not file a package install failure if
+ DpkgTerminalLog doesn't have any data. (LP: #695887)
+ * Add debian/apport.postinst: Create /var/crash. This directory is required
+ for package failures even if apport is disabled and thus the upstart job
+ does not run. (LP: #683367)
+
+ -- Martin Pitt Fri, 04 Feb 2011 15:46:40 +0100
+
+apport (1.17.1-0ubuntu3) natty; urgency=low
+
+ * data/general-hooks/ubuntu.py: Add some __main__ code for easy testing,
+ which will update a .crash file with that hook's data.
+ * data/general-hooks/ubuntu.py: Trim DpkgTerminaLog to the most recent
+ install session; not only is this much easier to read, but it also avoids
+ confusing the tests further down which check for particular strings in the
+ log. (LP: #580419)
+
+ -- Martin Pitt Wed, 26 Jan 2011 11:44:00 +0100
+
+apport (1.17.1-0ubuntu2) natty; urgency=low
+
+ * Merge from trunk:
+ - hookutils.py, attach_dmesg(): Do not overwrite already existing dmesg.
+ * etc/default/apport: Enable Apport by default for Alpha-2.
+
+ -- Martin Pitt Tue, 25 Jan 2011 07:28:48 +0100
+
+apport (1.17.1-0ubuntu1) natty; urgency=low
+
+ * New upstream release:
+ - Make the GTK frontend work with GTK 2.0 as well, and drop "3.0"
+ requirement.
+ * gtk/apport-gtk: Force GTK 2 for now, as we do not currently have a real
+ GTK 3 theme, and thus with GTK 3 the application looks very ugly.
+ * debian/control: Depend on gir1.2-gtk-2.0 instead of -3.0.
+
+ -- Martin Pitt Mon, 10 Jan 2011 22:26:10 -0600
+
+apport (1.17-0ubuntu2) natty; urgency=low
+
+ [ Brian Murray ]
+ * data/package-hooks/source_linux.py: Prevent regression-release bugs from
+ being tagged regression-updates. (LP: #692344). Additionally, reorder the
+ regression tags in likelyhood of greatest usage and clarify that
+ 'regression-release' applies to the dev release and a stable release but
+ not an updated package in the stable release.
+
+ -- Martin Pitt Wed, 05 Jan 2011 09:47:38 +0100
+
+apport (1.17-0ubuntu1) natty; urgency=low
+
+ * New upstream release:
+ - Better standard bug titles for Python crashes. Thanks Matt Zimmerman!
+ (LP: #681574)
+ - Add handler for uncaught Java exceptions. There is no integration for
+ automatically intercepting all Java crashes yet, see java/README.
+ Thanks Matt Zimmerman! (LP: #548877)
+ - GTK frontend: Require GTK 3.0.
+ - launchpad.py: Default to "production" instance, not "edge", since edge
+ is obsolete now.
+ - hookutils.py, attach_alsa(): Fix crash if /proc/asound/cards does not
+ exist. (LP: #626215)
+ - ui.py, format_filesize(): Fix to work with stricter locale.format() in
+ Python 2.7. (LP: #688535). While we are at it, also change it to use
+ base-10 units.
+ - hookutils.py, package_versions(): Always include all requested package
+ names even if they're unknown to us. Thanks Matt Zimmerman!
+ (LP: #695188)
+ - launchpad.py: When updating a bug, also add new tags. Thanks Brian
+ Murray!
+ * debian/apport.install: Install Java crash handler in
+ /usr/share/apport/apport.jar.
+ * debian/control: Add Java build dependency so that the Java crash handler
+ will be built.
+
+ -- Martin Pitt Fri, 31 Dec 2010 16:15:06 +0100
+
+apport (1.16-0ubuntu5) natty; urgency=low
+
+ * data/general-hooks/ubuntu.py: Add tag "running-unity" if Unity is running.
+
+ -- Martin Pitt Sat, 18 Dec 2010 20:50:20 +0100
+
+apport (1.16-0ubuntu4) natty; urgency=low
+
+ * Restore the python2.7 fix which was not in the vcs and dropped.
+
+ -- Sebastien Bacher Thu, 16 Dec 2010 23:40:12 +0100
+
+apport (1.16-0ubuntu3) natty; urgency=low
+
+ * debian/control:
+ - Update Depends for gir abi change
+
+ -- Michael Terry Thu, 16 Dec 2010 13:49:57 -0500
+
+apport (1.16-0ubuntu2) natty; urgency=low
+
+ * Cherrypick from trunk:
+ - ui.py, format_filesize(): Fix to work with stricter locale.format() in
+ Python 2.7. (LP: #688535). While we are at it, also change it to use
+ base-10 units.
+ * debian/rules: Fix python version check to also work with 2.7.
+
+ -- Martin Pitt Tue, 14 Dec 2010 12:23:31 +0100
+
+apport (1.16-0ubuntu1) natty; urgency=low
+
+ * New upstream release:
+ - Port GTK frontend from pygtk2 to GTK+3.0 and gobject-introspection.
+ - Fix symptoms again. Version 1.15 broke the default symptom directory.
+ - Fix memory test case to work with current Python versions, where the
+ SQLite integrity check throws a different exception.
+ * debian/control: Replace python-gtk2 dependency with python-gobject and
+ gir1.0-gtk-3.0.
+ * debian/control: Drop obsolete Conflicts/Replaces.
+ * debian/control: Consistently wrap dependencies.
+
+ -- Martin Pitt Fri, 19 Nov 2010 11:43:08 +0100
+
+apport (1.15-0ubuntu1) natty; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream release. Changes since to our previous trunk snapshot:
+ - Order symptom descriptions alphabetically. Thanks to Javier Collado.
+ - Check $APPORT_SYMPTOMS_DIR environment variable for overriding the
+ system default path. Thanks to Javier Collado.
+ - testsuite: Check that crashdb.conf can have dynamic code to determine DB
+ names and options.
+ - ui.py test suite: Rewrite _gen_test_crash() to have the test process
+ core dump itself, instead of using gdb to do it. The latter fails in
+ ptrace restricted environments, such as Ubuntu 10.10.
+ - launchpad.py: Use launchpadlib to file a bug instead of screen scraping.
+ The latter was completely broken with current Launchpad, so this makes
+ the test suite actually work again. Thanks to Diogo Matsubara!
+ - launchpad.py: Change $APPORT_STAGING to $APPORT_LAUNCHPAD_INSTANCE, so
+ that you can now specify "staging", "edge", or "dev" (for a local
+ http://launchpad.dev installation). Thanks to Diogo Matsubara!
+ - backends/packaging-apt-dpkg.py: Fix crash on empty lines in ProcMaps
+ attachment.
+ - doc/symptoms.txt: Fix typo, thanks Philip Muskovac. (LP: #590521)
+ - apport/hookutils.py: rename ProcCmdLine to ProcKernelCmdLine to not wipe
+ wipe out /proc/$pid/cmdline information. (LP: #657091)
+ - apport/hookutils.py: attach_file() will not overwrite existing report
+ keys, instead appending "_" until the key is unique.
+ - Fix --save option to recognise ~, thanks Philip Muškovac. (LP: #657278)
+ - Remove escalation_subscription from Ubuntu bug DB definition, turned out
+ to not be useful; thanks Brian Murray.
+ - launchpad.py: Fix APPORT_LAUNCHPAD_INSTANCE values with a https://
+ prefix.
+ - apt backend: Opportunistically try to install a -dbg package in addition
+ to -dbgsym, to increase the chance that at least one of it exists.
+ Thanks Daniel J Blueman!
+ * debian/control: Switch Vcs-Bzr: to natty branch.
+
+ [ Brian Murray ]
+ * data/package-hooks/source_linux.py: Drop regression-potential tag. We are
+ moving away from using regression-potential as a tag in the management of
+ regression bug reports. Instead we will tag bugs regression-release and
+ then create series, release, tasks for the release affected if the bug is
+ in fact a regression.
+
+ -- Martin Pitt Fri, 12 Nov 2010 14:59:01 +0100
+
+apport (1.14.1-0ubuntu8) maverick; urgency=low
+
+ * debian/local/ubuntu-fat-chroot: Divert gio-querymodules and
+ gdk-pixbuf-query-loaders, since they keep breaking the chroots.
+ * etc/default/apport: Disable Apport for final Maverick release.
+
+ -- Martin Pitt Tue, 28 Sep 2010 09:31:59 +0200
+
+apport (1.14.1-0ubuntu7) maverick; urgency=low
+
+ * In kde/apport-kde use correct translation catalogue, LP: #633483
+
+ -- Jonathan Riddell Wed, 08 Sep 2010 20:53:13 +0100
+
+apport (1.14.1-0ubuntu6) maverick; urgency=low
+
+ * backends/packaging-apt-dpkg.py: fix handling of
+ /etc/apport/native-origins.d to actually work. LP: #627777.
+
+ -- Steve Langasek Thu, 02 Sep 2010 22:28:48 +0000
+
+apport (1.14.1-0ubuntu5) maverick; urgency=low
+
+ * debian/control: Update Vcs-Bzr: to point to maverick branch.
+ * data/package-hooks/source_linux.py: Update to new-style kernel tags.
+ Patch by Brad Figg.
+ * debian/control: Bump Standards-Version to 3.9.1, no changes necessary.
+ * debian/compat: Bump to 7, since we are build depending on debhelper > 7.3
+ anyway.
+
+ -- Martin Pitt Wed, 25 Aug 2010 13:02:46 +0200
+
+apport (1.14.1-0ubuntu4) maverick; urgency=low
+
+ * debian/local/ubuntu-fat-chroot: Drop firefox and thunderbird, we will use
+ upstream crash reporting for those now.
+ * debian/rules: Make dump_acpi_tables.py executable. This is a workaround as
+ long as the script comes through the package diff.gz.
+
+ -- Martin Pitt Wed, 21 Jul 2010 08:43:32 +0200
+
+apport (1.14.1-0ubuntu3) maverick; urgency=low
+
+ * Merge from trunk:
+ - Add dump_acpi_tables.py script. This can be called by package hooks
+ which need ACPI table information (in particular, kernel bug reports).
+ Thanks to Brad Figg for the script!
+ - Fix test suite to work under ptrace restricted kernel.
+ * data/package-hooks/source_linux.py: Call dump_acpi_tables.py and save
+ output into "AcpiTables" field.
+
+ -- Martin Pitt Tue, 13 Jul 2010 08:14:10 +0200
+
+apport (1.14.1-0ubuntu2) maverick; urgency=low
+
+ * etc/apport/crashdb.conf: Add a new database "canonical-oem" which
+ checks for an Ubuntu Distribution Channel Descriptor (in
+ /var/lib/ubuntu_dist_channel), and parses out the OEM project name from
+ that. Now that we modify the file anyway, remove the Fedora stanza, which
+ is not relevant for Ubuntu and not working due to a nonexisting Bugzilla
+ backend.
+ * data/general-hooks/ubuntu.py: Report bug against the OEM project instead
+ of Ubuntu if we have a DCD and an OEM specific package version.
+ * etc/default/apport: Re-enable Apport by default for Maverick.
+
+ -- Martin Pitt Mon, 05 Jul 2010 10:53:10 +0200
+
+apport (1.14.1-0ubuntu1) maverick; urgency=low
+
+ * New upstream bug fix release:
+ - hookutils.py, attach_drm_info(): Sanitize connector names. Thanks Chris
+ Halse Rogers. (LP: #597558)
+ - bash completion: Complete all path names, apport-bug can be invoked with
+ a path to a program. Thanks Philip Muskovac.
+
+ -- Martin Pitt Thu, 24 Jun 2010 15:37:19 +0200
+
+apport (1.14-0ubuntu1) maverick; urgency=low
+
+ * New upstream release:
+ - hookutils.py: Add new method attach_drm_info() to read and format
+ /sys/class/drm/*. (desktop-maverick-xorg-gpu-freeze-reports)
+ - packaging-apt-dpkg.py: Fix deprecated python-apt variables, thanks David
+ Stansby. (LP: #591695)
+ - launchpad.py: Fix crash on attachments which are named *.gz, but
+ uncompressed. (LP: #574360)
+ - hookutils.py, attach_gconf(): Fix defaults parsing for boolean keys.
+ (LP: #583109)
+ * debian/control: Bump p-distutils-extra build-dependency to 2.19, to ensure
+ that we get a complete translation template. (LP: #533565)
+
+ -- Martin Pitt Wed, 16 Jun 2010 15:50:55 +0200
+
+apport (1.13.4-0ubuntu1) maverick; urgency=low
+
+ * New upstream bug fix release:
+ - bash completion: Fix error message if /usr/share/apport/symptoms does
+ not exist. Thanks Philip Muškovac! (LP: #562118)
+ - general-hooks/parse_segv.py: Report stack exhaustion more clearly and
+ correctly handle register dereferencing calls.
+ - Save/restore environment when calling hooks, in case they change the
+ locale, etc. (LP: #564422)
+ - hookutils.py, command_output(): Do not set $LC_MESSAGES for the calling
+ process/hook, just for the command to be called.
+ - ui.py: When displaying strings from system exceptions, decode them into
+ an unicode string, to avoid crashing the KDE UI. (LP: #567253)
+ - apport-retrace: Fix crash for retracing kernel vmcores, which do not
+ have an ExecutablePath.
+ - apport-bug manpage: Clarify when apport-collect may be used. Thanks
+ Brian Murray! (LP: #537273)
+ - generic hook: Check ProcMaps for unpackaged libraries, and ask the user
+ if he really wants to continue. If he does, tag the report as
+ "local-libs" and add a "LocalLibraries" field to the report with a list
+ of them. (LP: #545227)
+ * debian/control: Drop the now obsolete apport-qt transitional package.
+ * debian/control: We do not need python-dev, just python-all.
+ * Add debian/source/format: We keep 1.0, since 3.0 is a pain for
+ bzr-maintained packages.
+
+ -- Martin Pitt Sat, 08 May 2010 09:00:26 +0200
+
+apport (1.13.3-0ubuntu2) lucid; urgency=low
+
+ * etc/default/apport: Disable Apport for the final release.
+
+ -- Martin Pitt Mon, 19 Apr 2010 10:33:43 +0200
+
+apport (1.13.3-0ubuntu1) lucid; urgency=low
+
+ * New upstream bug fix release:
+ - data/general-hooks/parse_segv.py: suggest segv-in-kernel possibility.
+ - ui.py: When running as root, only show system crash reports, to avoid
+ restarting user programs as root. (LP: #445017)
+
+ -- Martin Pitt Wed, 14 Apr 2010 14:42:28 +0200
+
+apport (1.13.2-0ubuntu1) lucid; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream bug fix release:
+ - packaging-apt-dpkg.py, _install_debug_kernel(): Do not crash on an
+ outdated kernel, just return that it is outdated. (LP: #532923)
+ - launchpad.py test suite: Add "Referer" HTTP header, now required by
+ launchpad.
+ - launchpad.py: Fix crash if configuration does not have an
+ "escalated_tag" option.
+ - launchpad.py: Port to launchpadlib 1.0 API, thanks Michael Bienia for
+ the initial patch! (LP: #545009)
+ - gtk/apport-gtk-mime.desktop.in, kde/apport-kde-mime.desktop.in: Change
+ categories so that these do not ever appear in menu editors.
+ (LP: #449215)
+ - launchpad.py: Some LP bugs have broken attachments (this is a bug in
+ Launchpad itself). Ignore those instead of crashing.
+ - apport-gtk: Turn http:// and https:// links into clickable hyperlinks in
+ information and error dialogs. (LP: #516323)
+ - apport-retrace: Fix crash when trying to rebuild package info for
+ reports without an ExecutablePath. (LP: #436157)
+ - ui.py: Fix crash when package information cannot be determined due to
+ broken apt status. (LP: #362743)
+ - ui.py: Fix crash when /etc/apport/crashdb.conf is damaged; print an
+ appropriate error message instead. (LP: #528327)
+ - data/kernel_crashdump: Fix crash if log file disappeared underneath us.
+ (LP: #510327)
+ - data/apport: Fix IOError when apport is called with invalid number of
+ arguments, and stderr is not a valid fd. (LP: #467363)
+ - hookutils.py: Factor out the DMI collection code from attach_hardware()
+ into attach_dmi(), and call that in attach_alsa() as well. Thanks to
+ Brad Figg for the patch! (LP: #552091)
+ - apport/ui.py: Fix the help output if Apport is invoked under an
+ alternative name (like apport-collect). (LP: #539427)
+ * debian/local/apport-chroot: Fix crash if $APPORT_CRASHDB_CONF is not set.
+ (LP: #487700)
+ * debian/control: Bump python-launchpadlib dependency, to ensure that we
+ have a current version (LP: #407091), and the "1.0" protocol available.
+ * data/package-hooks/source_linux.py: Drop _() i18n, it's not available in
+ the hook and causes crashes. (LP: #538368)
+
+ [ Leann Ogasawara ]
+ * data/package-hooks/source_linux.py:
+ - Clean up some of the wording in the information dialogs for the
+ interactive kernel hook. Also add an additional "I don't know" option when
+ asked how frequently an issue occurs. (LP: #534638)
+ - Autodetect if running an upstream kernel. (LP: #532932)
+ - Attempt to categorize issue. Then add tag based on category.
+ (LP: #534745)
+
+ -- Martin Pitt Wed, 31 Mar 2010 16:32:39 +0200
+
+apport (1.13.1-0ubuntu2) lucid; urgency=low
+
+ * Merge bug fixes from trunk:
+ - problem_report.py, write_mime(): Add new optional argument
+ "priority_fields" for ordering report keys. Patch by Brian Murray,
+ thanks!
+ - launchpad.py: Put some interesting fields first in the report, with the
+ new priority_fields argument. Patch by Brian Murray, thanks!
+ - packaging-apt-dpkg.py, _install_debug_kernel(): Do not crash on an
+ outdated kernel, just return that it is outdated.
+
+ -- Martin Pitt Sat, 27 Mar 2010 11:48:34 +0100
+
+apport (1.13.1-0ubuntu1) lucid; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream bug fix release:
+ - Update parse-segv to handle gdb 7.1 output.
+ - Enhance test suite to work with gdb 7.1 as well, and catch future
+ outputs.
+ - UI: Add exception string to the "network error" dialog, to better tell
+ what the problem is.
+ - UI: Add back -p option to apport-collect/apport-update-bug (regression
+ from 1.13). (LP: #538944)
+ - launchpad.py: Add yet another workaround for LP#336866. (LP: #516381)
+ - launchpad.py, download(): Ignore attachments with invalid key names.
+ - Fix regression from 1.10 which made it impossible for a package hook to
+ set a third-party crash database for non-native packages. (LP: #517272)
+ - apport-cli: Create the 'details' string only if user wants to view
+ details, and do not show files larger than 1MB. Thanks Scott Moser!
+ (LP: #486122)
+ - packaging-apt-dpkg.py: Silence apt.Cache() spewage to stdout with newer
+ python-apt versions. (LP: #531518)
+ - unkillable_shutdown: Add list of running processes and blacklisted pids
+ to report. (LP: #537262)
+ - Sort the report by key in the details view. (LP: #519416)
+
+ [ Evan Dandrea ]
+ * Move ubiquity's package-hook into apport, so that it can be used
+ from the installed system to grab the logs in /var/log/installer.
+
+ -- Martin Pitt Sat, 20 Mar 2010 22:28:44 +0100
+
+apport (1.13-0ubuntu3) lucid; urgency=low
+
+ * Merge fixes from trunk:
+ - Update parse-segv to handle gdb 7.1 output.
+ - Enhance test suite to work with gdb 7.1 as well, and catch future outputs.
+ - unkillable_shutdown: Add list of running processes, blacklisted pids,
+ and "initctl list" to report. (LP: #537262)
+ - launchpad.py: Preserve the bug title written to the description by
+ apport as OriginalTitle for pattern matching. Thanks to Brian Murray!
+ (LP: #511310)
+
+ -- Martin Pitt Sat, 13 Mar 2010 15:55:47 +0100
+
+apport (1.13-0ubuntu2) lucid; urgency=low
+
+ * data/general-hooks/parse_segv.py: backport portion of upstream commit 1724
+ to handle new Disassembly output from gdb 7.1.
+
+ -- Kees Cook Thu, 11 Mar 2010 10:58:39 -0800
+
+apport (1.13-0ubuntu1) lucid; urgency=low
+
+ * New upstream release:
+ - Add "unkillable_shutdown" script to collect information about processes
+ which are still running after sending SIGTERM to them. This can be
+ hooked into e. g. /etc/init.d/sendsigs on Debian/Ubuntu systems.
+ - apport_python_hook.py: Directly check /etc/default/apport instead of
+ querying packaging.enabled(), to avoid importing lots of modules for
+ non-packaged scripts. Thanks Stuart Colville! (LP: #528355)
+ - Fix SegV parser to notice walking off the stack during "call" or "ret"
+ (LP: #531672).
+ - Fix --help output for bug updating mode (invocation as apport-collect or
+ apport-update-bug). (LP: #504116)
+ - Fix bug escalation tagging, thanks to Brian Murray.
+ - Fix option processing when being invoked as apport-bug. Thanks to Daniel
+ Hahler for the patch! (LP: #532944)
+ * debian/apport.install: Install unkillable_shutdown.
+
+ -- Martin Pitt Thu, 11 Mar 2010 08:42:05 +0100
+
+apport (1.12.1-0ubuntu5) lucid; urgency=low
+
+ * launchpad.py: Do not escalate a bug if its already been escalated and
+ dealt with.
+
+ -- Brian Murray Fri, 05 Mar 2010 13:05:10 -0800
+
+apport (1.12.1-0ubuntu4) lucid; urgency=low
+
+ [ Leann Ogasawara ]
+ * data/package-hooks/source_linux.py: When reporting a kernel oops the
+ reporter is presented with a dialog asking if they also want to report the
+ oops to kerneloops.org. Unfortunately there is no information regarding
+ the oops at the time this dialog is presented. Provide the reporter a
+ summary of the oops in question so they can make an educated decision
+ about reporting it to kerneloops.org. (LP: #528175)
+
+ -- Martin Pitt Thu, 04 Mar 2010 13:08:22 +0100
+
+apport (1.12.1-0ubuntu3) lucid; urgency=low
+
+ * data/general-hooks/parse_segv.py: add "call" and "ret" to list of insns
+ that check the stack pointer for VMA sanity (LP: #531672), backport of
+ upstream commit 1715.
+
+ -- Kees Cook Wed, 03 Mar 2010 18:07:46 -0800
+
+apport (1.12.1-0ubuntu2) lucid; urgency=low
+
+ [ Leann Ogasawara ]
+ * data/package-hooks/source_linux.py: Prevent filing bugs against
+ linux-meta. Use the linux package instead. (LP: #526787)
+
+ [ Scott Moser ]
+ * data/general-hooks/ubuntu.py: Update "is ec2 instance" logic for lucid uec
+ images. (LP: #525003)
+
+ -- Martin Pitt Thu, 25 Feb 2010 19:06:39 +0100
+
+apport (1.12.1-0ubuntu1) lucid; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream bug fix release:
+ - launchpad.py: Do not keep escalating bugs, just escalate at the 10th
+ duplicate.
+ - Improve error message if a symptom script did not determine a package
+ name. (LP: #503834)
+ - general-hooks/generic.py: Fix crash on libGL check with empty
+ StacktraceTop.
+ - Review and clean up usage of chmod(). This fixes a small race condition
+ in the Python exception hook where a local attacker could read the
+ information from another user's crash report. (LP: #516029)
+ - hookutils, package_versions(): Ignore "None" packages, for more robust
+ package hooks. (LP: #518295)
+ * debian/apport.install: Actually install the bash completion file.
+ (LP: #218933)
+ * Bump Standards-Version to 3.8.4 (no changes necessary).
+
+ [ Leann Ogasawara ]
+ * source_linux.py: Tag kernel bugs which utilize a driver from staging. Also
+ provide the list of staging drivers in use. Prefix suspend/resume bug
+ titles with "[STAGING]" if a staging driver was being used.
+ (LP: #524174, #524167)
+
+ -- Martin Pitt Mon, 22 Feb 2010 21:58:16 +0100
+
+apport (1.12-0ubuntu5) lucid; urgency=low
+
+ * Add a dh_apport debhelper program, and a sequence addon making it
+ possible to use 'dh --with apport'.
+
+ -- Colin Watson Wed, 10 Feb 2010 18:12:30 +0100
+
+apport (1.12-0ubuntu4) lucid; urgency=low
+
+ [ Martin Pitt ]
+ * Add X-Ubuntu-Gettext-Domain: to desktop files, thanks Sebastien Bacher for
+ spotting this.
+
+ [ Jonathan Thomas ]
+ * Make apport-kde recommend the new kubuntu-notification-helper package
+ rather than update-notifier-kde to prevent the latter, depreciated tool
+ from getting on the Live CD
+
+ -- Martin Pitt Mon, 01 Feb 2010 07:40:11 -0800
+
+apport (1.12-0ubuntu3) lucid; urgency=low
+
+ * data/general-hooks/ubuntu.py: also attach byte compilation logs for
+ xemacs21
+
+ -- Reinhard Tartler Sun, 24 Jan 2010 19:51:04 +0100
+
+apport (1.12-0ubuntu2) lucid; urgency=low
+
+ * launchpad.py: Do not keep escalating bugs, just escalate at the 10th
+ duplicate. (Merged from trunk)
+
+ -- Martin Pitt Fri, 22 Jan 2010 16:51:35 +0100
+
+apport (1.12-0ubuntu1) lucid; urgency=low
+
+ * New upstream release:
+ - launchpad.py: Add options 'escalation_subscription' and 'escalation_tag'
+ for handling bugs with more than 10 duplicates.
+ - crashdb.conf: For Ubuntu, escalate bugs with >= 10 duplicates to
+ "ubuntu-bugcontrol" and tag them with "bugpattern-needed".
+ (LP: #487900)
+ - general-hooks/generic.py: Filter out crashes on missing GLX
+ (LP: #327673)
+ - Add bash completion script. Thanks to Philip Muškovac. (LP: #218933)
+ - launchpad.py: Drop APPORT_FILES whitelist for download() and instead
+ just filter out file extensions that we know about (*.txt and *.gz).
+ (LP: #444975)
+ - launchpad.py: Do not put the Tags: field into the bug description, since
+ they are already proper tags. In download(), convert the real tags back
+ to the Tags: field. (LP: #505671)
+ - test/crash: Update expected core dump flags for changed rlimit behaviour
+ in Linux 2.6.32.
+ - launchpad.py: Fix marking of 'checked for duplicate' for bugs with
+ upstream tasks.
+ - launchpad.py, get_fixed_version(): Do not consider a bug as invalid just
+ because it has any invalid distro package task.
+ * debian/local/setup-apport-retracer: Switch to lucid.
+ * debian/local/setup-apport-retracer: Do not locally install python-apt and
+ friends, users can run apt-get install in DC dchroots now.
+ * debian/local/setup-apport-retracer: Don't add the retracer PPA for now,
+ everything we need is in lucid.
+
+ -- Martin Pitt Wed, 20 Jan 2010 13:51:15 +0100
+
+apport (1.11-0ubuntu5) lucid; urgency=low
+
+ * ubuntu.py: Avoid errors when running on ramdiskless EC2 images, by only
+ attaching available EC2 information. Patch from Scott Moser (LP: #494615)
+
+ -- Thierry Carrez Tue, 12 Jan 2010 12:19:32 +0100
+
+apport (1.11-0ubuntu4) lucid; urgency=low
+
+ * Merge from trunk:
+ - launchpad.py: Add options 'escalation_subscription' and 'escalation_tag'
+ for handling bugs with more than 10 duplicates.
+ - crashdb.conf: For Ubuntu, escalate bugs with >= 10 duplicates to
+ "ubuntu-bugcontrol" and tag them with "bugpattern-needed". (LP: #487900)
+ - launchpad.py: Drop APPORT_FILES whitelist for download() and instead
+ just filter out file extensions that we know about (*.txt and *.gz).
+ (LP: #444975)
+
+ -- Martin Pitt Mon, 11 Jan 2010 23:53:10 +0100
+
+apport (1.11-0ubuntu3) lucid; urgency=low
+
+ * Attach emacs compilation logs in order to assist bug triaging.
+ LP: #413110
+
+ -- Reinhard Tartler Thu, 07 Jan 2010 22:14:45 +0100
+
+apport (1.11-0ubuntu2) lucid; urgency=low
+
+ * launchpad.py: Remove a snippet of redundant code.
+ * Merge bug fixes from trunk:
+ - launchpad.py: Drop APPORT_FILES whitelist for download() and instead
+ just filter out file extensions that we know about (*.txt and *.gz).
+ (LP: #444975)
+ * Enable Apport by default again.
+
+ -- Martin Pitt Tue, 05 Jan 2010 18:30:19 +0100
+
+apport (1.11-0ubuntu1) lucid; urgency=low
+
+ * New upstream release:
+ - Add "--save" UI option to store the collected information into an
+ .apport file instead of sending it right away. The file can then later
+ be sent through apport-bug. Update manpages accordingly.
+ - Update all copyright and description headers and consistently format
+ them.
+ - Rename all TestCase classes to "_T", which makes it much easier to run
+ individual tests from the command line.
+ - Testsuite: Verify that report details are/are not shown. This uncovered
+ that details about package installation failures were not shown before
+ sending them, which is fixed now.
+ - test/hooks: Do not try to add hook information to kernel_crashdump test
+ case, since we do not have an UI here. This test case broke when the
+ system had an interactive package hook for the kernel.
+ - When reporting a bug from a saved .apport file, let the user
+ review/confirm the content before sending.
+
+ -- Martin Pitt Wed, 23 Dec 2009 13:09:55 +0100
+
+apport (1.10.1-0ubuntu1) lucid; urgency=low
+
+ * New upstream release:
+ - Install apport-collect symlink.
+ - Update translations from Launchpad.
+ - Move all remaining option/argument parsing from apport-bug into ui.py.
+ This allows the user to add options to apport-bug/apport-collect, and
+ also avoids unwieldy dissection of options/arguments in shell.
+ * debian/apport.links: Do not create apport-collect symlink, now done by
+ upstream build system. Install that in debian/apport.install.
+ * debian/local/setup-apport-retracer: Set up lazr.restfulclient.
+ * debian/control: Bump python-distutils-extra build dependency to >= 2.14 to
+ ensure correct symlink handling.
+
+ -- Martin Pitt Wed, 23 Dec 2009 00:54:37 +0100
+
+apport (1.10-0ubuntu1) lucid; urgency=low
+
+ * New upstream release:
+ - Add a mode for updating an existing problem report to ui.py
+ (-u/--update). This is similar to the Ubuntu specific "apport-collect"
+ tool, but implemented the right way now: In particular, this has access
+ to the UI and thus can use interactive hooks (LP: #385811) and show you
+ what is being sent for confirmation/cancelling (LP: #371827)
+
+ - apport-bug: If invoked as "apport-collect" or "apport-update-bug" (i. e.
+ through a symlink), run apport in update mode (-u ). This
+ provides a convenient no-options command line program. Please note that
+ setup.py does not currently install such a symlink. Update the
+ apport-bug manpage accordingly.
+
+ - launchpad.py: Use new login_with() to clean up code, and specify allowed
+ access levels (WRITE_PRIVATE is the only sensible one anyway).
+ (LP: #410205)
+
+ - New hookutils functions:
+ + xsession_errors (match lines from ~/.xsession-errors)
+ + shared_libraries (determine which libraries a binary links with)
+ + links_with_shared_library (test if a binary links with a particular
+ library)
+
+ - New CrashDatabase API: get_affected_packages(), can_update(), is_reporter()
+
+ - Rename CrashDatabase.update() to update_traces().
+
+ - Add CrashDatabase.update() for adding all new fields of a report. This is
+ primarily useful for collecting local standard and package hook data for an
+ already existing bug report which was not filed through Apport. This checks
+ can_update()/is_reporter() if the user is eligible for updating that
+ particular bug. (LP: #485880)
+
+ - Ignore SIGXCPU and SIGXFSZ; thanks to Kees Cook. (LP: #498074)
+
+ - launchpad.py: Do not mark non-Ubuntu bugs as needs-retrace, since there is
+ no retracer right now. (LP: #489794)
+
+ - packaging-apt-dpkg.py, install_retracing_packages(): Do not crash on
+ malformed Dependencies.txt lines. (LP: #441709)
+
+ - use-local: Fix for new source tree location of "apport" binary.
+
+ * Drop debian/local/apport-collect{,.1} and install symlinks for apport-bug
+ instead.
+ * data/general-hooks/ubuntu.py: Do not report "corrupted filesystem tarfile"
+ package errors. (LP: #320743)
+ * data/general-hooks/ubuntu.py: Report "package ... is already installed and
+ configured" errors against dpkg, not the package that failed. (LP: #467688)
+
+ -- Martin Pitt Sat, 19 Dec 2009 16:48:48 +0100
+
+apport (1.9.6-0ubuntu2) lucid; urgency=low
+
+ * Bump python-launchpadlib dependency to ensure that we have login_with()
+ with credentials_file argument.
+ * debian/local/apport-collect: Add short infos to description if the calling
+ person is the bug reporter. (LP: #348948)
+ * debian/local/apport-collect: Intercept lazr.restfulclient.errors.HTTPError
+ as well, and also cover the login process.
+ * debian/local/apport-collect: Improve error messages.
+ * debian/local/ubuntu-fat-chroot: Disable update-alternatives, it causes too
+ much breakage with fakechroot.
+
+ -- Martin Pitt Fri, 18 Dec 2009 13:09:26 +0100
+
+apport (1.9.6-0ubuntu1) lucid; urgency=low
+
+ [ Brian Murray ]
+ * debian/local/apport-collect: Strongly encourage collectors who are not
+ the bug reporter to file a new bug report.
+
+ [ Marco Rodrigues ]
+ * debian/control: Fix lintian warnings. Move python-distutils-extra
+ to b-d-i and add misc:Depends to apport-qt.
+
+ [ Martin Pitt ]
+ * New upstream version 1.9.5 and 1.9.6:
+ - apport-retrace: Fix crash if InterpreterPath/ExecutablePath do not
+ exist.
+ - hookutils.py, attach_alsa(): Attach /proc/cpuinfo too, for CPU flags.
+ - Fix crash if InterpreterPath does not exist any more at the time of
+ reporting. (LP: #428289)
+ - apport-gtk: Connect signals properly, to repair cancel/window close
+ buttons. (LP: #427814)
+ - Update German translations and fix "konnre" typo. (LP: #484119)
+ - launchpad.py: Ensure that text attachments on initial bug filing are
+ valid UTF-8. (LP: #453203)
+ - man/apport-retrace.1: Document -R option.
+ - Add pm-utils hook to record current operation, so that apportcheckresume
+ can check it. Before this was kept in Ubuntu's pm-utils package.
+ - general-hooks/generic.py: Check if using ecryptfs, and which directory.
+ (LP: #444656)
+ * data/general-hooks/ubuntu.py: Add distro release codename tag.
+ (LP: #404250)
+ * debian/local/apport-chroot: Fix last occurrence of "--no-dpkg" to be
+ "--no-pkg". (LP: #487056)
+ * debian/local/apport-collect: Use "apport-collect data" as comment for the
+ apport-collect attachments to enable bug mail filtering. Thanks to Bryce
+ Harrington for the suggestion.
+
+ -- Martin Pitt Wed, 02 Dec 2009 00:01:06 +0100
+
+apport (1.9.4-0ubuntu1) lucid; urgency=low
+
+ [ Marco Rodrigues ]
+ * etc/default/apport: Replace the old init.d force_start command by
+ the Upstart one.
+ * debian/apport.upstart: If $force_start=1 is given then run the job.
+ * debian/local/apport-collect: Don't collect information if bug is a
+ duplicate. (LP: #471429)
+
+ [ Martin Pitt ]
+ * New upstream bug fix release:
+ - Fix crash when ExecutablePath isn't part of a package. (LP: #424965)
+ - hookutils.py, attach_hardware(): Anonymize disk labels. Thanks to Marco
+ Rodrigues. (LP: #394411)
+ - hookutils.py, attach_wifi(): Anonymize encryption key (which appeared in
+ hex when being called as root). Thanks to Marco Rodrigues. (LP: #446299)
+ - launchpad.py: If unset, set bug task source package also for interpreter
+ crashes.
+ - apport-gtk: Give details window a minimize/maximize button, which were
+ missing in some window managers. Thanks to Marien Zwart. (LP: #447749)
+ - apport-kde: Properly terminate program after closing the last dialog.
+ (LP: #458662)
+ - hookutils.py, attach_alsa(): Attach /proc/asound/version. (LP: #467233)
+ - general-hooks/generic.py: Only collect ~/.xsession-errors bits when we
+ have an ExecutablePath linked to libgtk.
+ * debian/control: Update Vcs-Bzr: for lucid branch.
+ * data/package-hooks/source_linux.py: Add interactive questionaire, thanks
+ Leann Ogasawara! (LP: #444672)
+
+ -- Martin Pitt Fri, 06 Nov 2009 14:06:52 +0100
+
+apport (1.9.3-0ubuntu4) karmic; urgency=low
+
+ * etc/default/apport: Disable Apport for final Karmic.
+
+ -- Martin Pitt Thu, 22 Oct 2009 22:41:34 +0200
+
+apport (1.9.3-0ubuntu3) karmic; urgency=low
+
+ * apport/crash_db/launchpad.py: Increase the number of files available
+ for searching with bug patterns.
+
+ -- Brian Murray Sun, 18 Oct 2009 12:38:38 +0200
+
+apport (1.9.3-0ubuntu2) karmic; urgency=low
+
+ * debian/local/apport-collect: Instantiate Launchpad crash database with
+ "distro = ubuntu", to satisfy an assertion introduced in the previous
+ release. (LP: #451838)
+
+ -- Martin Pitt Thu, 15 Oct 2009 21:12:21 +0200
+
+apport (1.9.3-0ubuntu1) karmic; urgency=low
+
+ * New upstream bug fix release:
+ - hookutils.py: Fix error codes from "comm", thanks to Brian Murray.
+ (LP: #414194)
+ - general-hooks/generic.py: Catch xkbcomp error messages. (LP: #431807)
+ - launchpad.py: Assert that we have exactly one of "distro" or "project"
+ option.
+ - doc/crashdb-conf.txt: Improve documentation of crash database options.
+ - apport-gtk: Make Cancel/Send buttons focusable. Thanks to Marco
+ Rodrigues. (LP: #447780)
+ - Drop handling of the APPORT_REPORT_THIRDPARTY environment variable and
+ "thirdparty" configuration file option. This has never been documented,
+ and conceptually does not work. There is a proper mechanism for this in
+ place now, e. g. launchpad.py's "project" option.
+ * bin/apport-bug: Show deprecation warning for -p/-P. (LP: #431942)
+
+ -- Martin Pitt Wed, 14 Oct 2009 23:28:24 +0200
+
+apport (1.9.2-0ubuntu2) karmic; urgency=low
+
+ [ Matt Zimmerman ]
+ * general-hooks/ubuntu.py: Include in Ubuntu bug reports the version number
+ of the installation media used to install the system, via
+ /var/log/installer/media-info (cf. #364649)
+
+ [ Martin Pitt ]
+ * debian/local/apport-collect.1: Clarify that the launchpad.credentials
+ files needs to be removed in order to ask for privileges again.
+ * Merge bug fixes from trunk:
+ - general-hooks/generic.py: Catch xkbcomp error messages, too. (LP: #431807)
+ - apport-bug: Consider -h as "output help", too. (Marco Rodrigues)
+
+ [ Brian Murray ]
+ * debian/local/apport-collect:
+ - Resolve bug with specifying package for adding information.
+ - Let collector know if bug was not reported by them.
+ - Clarify potential failure causes.
+
+ -- Martin Pitt Thu, 08 Oct 2009 09:37:35 +0200
+
+apport (1.9.2-0ubuntu1) karmic; urgency=low
+
+ * New upstream bug fix release:
+ - apport-cli: Print the URL and ask whether to open a browser. In many
+ situations (such as usage on a server through ssh), it's preferable to not
+ open the browser on the reporting computer. Thanks to Matt Zimmerman for the
+ initial patch! (LP: #286415)
+ - general-hooks/generic.py: Collect important glib errors/assertions (which
+ should not have private data) from ~/.xsession-errors (LP: #431807)
+ - launchpad.py: Link hardware data submission key if it exists. (LP: #424382)
+ - apport-cli: Fix crash with non-ASCII characters in prompts.
+ - Fix "apport-bug symptomname" to actually work.
+ - launchpad.py: Fix crash on invalid credentials file. Thanks to Marco
+ Rodrigues for the initial patch! (LP: #414055)
+ * man/apport-bug.1: Document APPORT_IGNORE_OBSOLETE_PACKAGES (cherrypicked
+ from trunk), and APPORT_STAGING (Ubuntu specific change, since it's a
+ launchpad backend specific variable).
+ * bin/apport-bug: Ignore -p option when giving two arguments, to keep
+ compatibility with current bug filing instructions. (LP: #356755)
+ * debian/copyright: Update copyright year and fix GPL link, thanks Marco
+ Rodrigues!
+
+ -- Martin Pitt Fri, 02 Oct 2009 13:25:58 +0200
+
+apport (1.9.1-0ubuntu3) karmic; urgency=low
+
+ * Merge bug fixes from trunk:
+ - apport-cli: Print the URL and ask whether to open a browser. This makes
+ ubuntu-bug work much better for servers, now that ubuntu-bug is by and
+ large mandatory. (LP: #286415)
+ - launchpad.py: Consistently respect $APPORT_STAGING, so that it works
+ for bug filing as well. (LP: #435112)
+
+ [ Matt Zimmerman ]
+ * data/general-hooks/ubuntu.py: Add metadata and tags for bugs reported from
+ EC2 and UEC instances.
+
+ -- Martin Pitt Fri, 25 Sep 2009 18:51:44 +0200
+
+apport (1.9.1-0ubuntu2) karmic; urgency=low
+
+ * kde/bugreport.ui: Select "complete report" option by default, to actually
+ be able to file bugs if the options are not shown. Thanks to Yuriy Kozlov!
+ Fix cherrypicked from trunk. (LP: #405378)
+
+ -- Martin Pitt Wed, 23 Sep 2009 10:18:28 +0200
+
+apport (1.9.1-0ubuntu1) karmic; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream bug fix release:
+ - hookutils.py, attach_hardware(): Do not attach empty Pccardctl*.
+ - apport/report.py, add_gdb_info(): Do not throw away stderr from gdb.
+ - data/general-hooks/parse_segv.py:
+ + Handle arithmetic wrapping correctly.
+ + Handle empty base, scale, or index registers in disassembly.
+ + Handle in/out ioport faults.
+ - Various improvements to user-visible strings, thanks to Marco Rodrigues!
+ (LP: #178507)
+ - Various apport-retrace robustifications.
+ - setup.py: Fix DistUtilsExtra version check. (LP: #428337)
+ - hookutils.py, attach_gconf(): Do not overwrite previous values from
+ other packages, thanks Loïc Minier!
+ - hookutils.py, attach_gconf(): Fix crash with nonexisting tags.
+
+ [ Loïc Minier ]
+ * Upstream source is at https://launchpad.net/apport/+download not
+ archive.ubuntu.com.
+
+ -- Martin Pitt Tue, 22 Sep 2009 12:51:38 +0200
+
+apport (1.9-0ubuntu6) karmic; urgency=low
+
+ * debian/apport.upstart:
+ - Use "exit" in Upstart script rather than "return".
+ - Fix post-stop script to write to the correct file. LP: #430895.
+
+ -- Scott James Remnant Wed, 16 Sep 2009 20:33:49 +0100
+
+apport (1.9-0ubuntu5) karmic; urgency=low
+
+ * Merge bug fixes from trunk:
+ - hookutils.py, attach_hardware(): Do not attach empty Pccardctl*.
+ - apport/ui.py: Show a better message when failed connection to crash
+ database. Thanks to Marco Rodrigues! (LP: #178507)
+ - Do not throw away stderr from gdb.
+ - data/general-hooks/parse_segv.py: Handle arithmetic wrapping correctly.
+ - backends/packaging-apt-dpkg.py: More robust of missing ExecutablePath
+ due to outdated packages.
+ - setup.py: Fix DistUtilsExtra version check. (LP: #428337)
+ * data/general-hooks/ubuntu.py: Add distribution channel descriptor, as per
+ https://wiki.ubuntu.com/FoundationsTeam/Specs/OemTrackingId .
+ * data/general-hooks/ubuntu.py: Do not allow users to file bugs against
+ upgrade-system if the package isn't actually installed. Way too many
+ upgrade failures get wrongly reported against this. (LP: #404727)
+ * debian/rules: Entirely drop obsolete dh_installinit call.
+
+ -- Martin Pitt Tue, 15 Sep 2009 17:31:26 +0200
+
+apport (1.9-0ubuntu4) karmic; urgency=low
+
+ FFE LP: #427356.
+
+ * Replace init script with Upstart job.
+ * debian/control:
+ - Bump build-dependency on debhelper for Upstart-aware dh_installinit
+
+ -- Scott James Remnant Tue, 15 Sep 2009 03:33:57 +0100
+
+apport (1.9-0ubuntu3) karmic; urgency=low
+
+ * apport/report.py: add upstream bzr commit 1591:
+ - include stderr in gdb command output
+
+ -- Kees Cook Wed, 09 Sep 2009 19:32:05 -0700
+
+apport (1.9-0ubuntu2) karmic; urgency=low
+
+ * Add missing python-apt build dependency.
+
+ -- Martin Pitt Tue, 08 Sep 2009 17:41:04 +0200
+
+apport (1.9-0ubuntu1) karmic; urgency=low
+
+ * New upstream release:
+ - Add "do what I mean" mode to command line argument parsing (applies to
+ all interfaces: -cli, -gtk, -kde). When giving a single argument and no
+ options, determine the most likely mode, like reporting a bug against a
+ symptom, package, executable name, or PID.
+ - Add program "apport-bug" which determines the most appropriate user
+ interface (GTK, KDE, CLI) and files a bug through it, using the single
+ argument "do what I mean" mode. This is an improved version of Ubuntu's
+ "ubuntu-bug" script.
+ - Update apport-cli manpage to current set of options and behaviour. Also
+ point out that apport-gtk and apport-kde share the same CLI.
+ - setup.py now installs apport-{gtk,kde} into $prefix/share/apport/, they
+ are not supposed to be called directly. This also reflects the path
+ which the .desktop files expect.
+ - setup.py now installs the internal helper scripts like
+ "kernel_crashdump", "apport", or "apportcheckresume" into
+ $prefix/share/apport instead of $prefix/bin.
+ - Update usage of gettext to work around Python bug of gettext() not
+ returning unicodes, but str. Fixes UnicodeDecodeErrors on translated
+ --help output.
+ - Add missing gettext wrapping for user-visible strings in
+ apport-{retrace,unpack} and ui.py; thanks to Marco Rodrigues!
+ - backends/packaging-apt-dpkg.py: Robustify get_{source,architecture} for
+ uninstalled packages
+ - ui.py: Add --version option. Thanks Marco Rodrigues! (LP: #383694)
+ * debian/local/apport-collect: Fix KeyError crash on nonexisting LP bug
+ number. Thanks Marco Rodrigues! (LP: #424273)
+ * debian/control: Bump Standards-Version to 3.8.3 (no changes necessary).
+ * debian/local/apport-collect: Point out that you need to select "Change
+ anything" privileges. (LP: #373700)
+ * debian/control: Drop obsolete texlive-latex-recommended build dependency.
+ * debian/rules: Drop --install-scripts, upstream now installs the files and
+ binaries into the right place. Adapt debian/*.install accordingly.
+ * Drop debian/local/ubuntu-bug{,.1} and replace them with symlinks to
+ apport-bug{,.1}, which is a more robust version of ubuntu-bug.
+
+ -- Martin Pitt Tue, 08 Sep 2009 15:53:33 +0200
+
+apport (1.8.2-0ubuntu1) karmic; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream bug fix release:
+ - crashdb.py: Fix handling of non-ASCII crash signatures
+ - packaging-apt-dpkg.py: Run ExecutablePath/InterpreterPath check later,
+ so that it does not always have to be done
+ - crashdb.py: Never mark a bug as a duplicate of itself.
+ - launchpad.py, close_duplicate(): Add duplicate assertion
+ - Update Ubuntu bug pattern URL
+ - launchpad.py: Add "cache_dir" option and $APPORT_LAUNCHPAD_CACHE
+ environment variable to specify a non-temporary cache directory.
+ (LP: #416804)
+ - packaging-apt-dpkg.py, get_architecture(): Only use installed
+ architecture if package is actually installed
+ - launchpad.py: Drop explicit temporary cache dir, launchpadlib does that
+ automatically now. Thanks to Marco Rodriguez!
+
+ [ Marco Rodrigues ]
+ * debian/local/setup-apport-retracer: Switch to karmic.
+
+ -- Martin Pitt Sat, 05 Sep 2009 13:04:16 +0200
+
+apport (1.8.1-0ubuntu1) karmic; urgency=low
+
+ * New upstream bug fix release:
+ - data/general-hooks/generic.py: Check $HOME, not /home for enough space.
+ (LP: #422658)
+ - launchpad.py: Intercept httplib2.ServerNotFoundError as well, to avoid
+ crashes when being offline. (LP: #396276)
+ - apport-cli: Save reports with .apport extension instead of .txt. Thanks
+ to Steve Beattie! (LP: #401983)
+ - fileutils.py, likely_packaged(): Ignored crashes in /var, packages don't
+ ship executables there, and it creates false positives. (LP: #414368)
+ - packaging-apt-dpkg.py, get_modified_files(): Fix crash with empty lines.
+ (LP: #408280)
+ - packaging-apt-dpkg.py: Use installed version instead of candidate
+ version where appropriate. This also fixes a crash where an obsolete
+ package is not available any more. (LP: #423511)
+ - hookutils.py, attach_gconf(): Fix crash with keys which do not have a
+ schema default. (LP: #422277)
+ - launchpad.py: Remove LP #353805 workaround, seems fixed now.
+ - launchpad.py: Talk to staging if $APPORT_STAGING is set.
+ - launchpad.py: Explicitly supply content_type for addAttachment, current
+ wadllib requires it now.
+ - apport_python_hook.py: Paper over inexplicable import error.
+ (LP: #348250)
+ - apport_python_hook.py: Protect against nonexisting sys.argv.
+ (LP: #418051)
+ - apport/ui.py, load_report(): Check that report has ProblemType field.
+ (LP: #198543)
+ - ui.py: Fix handling of complete vs. reduced report size. (LP: #92653).
+ This also fixes a race condition crash with os.path.getsize().
+ (LP: #348137)
+ - fi.po: Fix mistranslation of "&Cancel". (LP: #355303)
+ - apport-{gtk,kde}: Check for having $DISPLAY at startup to avoid crashes.
+ (LP: #411276)
+ - report.py, add_gdb_info(): Fix race condition in unlink_core, thanks to
+ Tommi Komulainen! (LP: #397945)
+ - ui.py, load_report(): Robustify check whether program is still
+ installed. (LP: #329184)
+ - packaging-apt-dpkg.py, install_retracing_packages(): Install package for
+ ExecutablePath/InterpreterPath if missing; this can happen with package
+ hooks which reassing package
+ - launchpad.py: Add a comment when marking a bug as a duplicate.
+ (LP: #418871)
+ * Move gdb dependency from apport to GUI packages to avoid pulling in gdb on
+ Ubuntu server. Thanks to Steve Beattie! (LP: #354172)
+ * ubuntu-bug: Fix handling of .crash file arguments, thanks to Marco
+ Rodrigues for pointing this out! (LP: #422881)
+ * debian/local/apport-collect: Set content_type and description, wadllib
+ requires them now. (LP: #423512) Also drop the ASCII reencoding
+ workaround, this doesn't seem to be necessary any more.
+ * apport/hookutils.py, attach_conffiles(): Fix crash with obsolete
+ conffiles. (LP: #412132)
+ * debian/local/apport-collect: Do not upload data if the affected package
+ isn't installed and there is no source package hook available either.
+ (LP: #417277)
+ * debian/local/ubuntu-bug: Accept .apport extension, too; thanks to Steve
+ Beattie! (LP: #401983)
+ * debian/local/apport-collect: Drop $APPORT_STAGING check, it's done by
+ launchpad.py itself now.
+
+ -- Martin Pitt Thu, 03 Sep 2009 21:08:31 +0200
+
+apport (1.8-0ubuntu2) karmic; urgency=low
+
+ * apport/report.py: add upstream bzr 1538 commit:
+ - change to upstream glibc's __abort_msg variable name.
+ - filter out memory addresses when matching assert-bug duplicates.
+
+ -- Kees Cook Fri, 28 Aug 2009 12:47:14 -0700
+
+apport (1.8-0ubuntu1) karmic; urgency=low
+
+ * New upstream release:
+ - Do not generally ignore SIGABRT any more. Try to extract the assertion
+ message from the core dump, and add it as "AssertionMessage" field. Mark
+ reports as unreportable if they do not have an assertion message and crashed
+ with SIGABRT. This implements UbuntuSpec:security-karmic-apport-abort.
+ - report.py, add_hooks_info(): Add optional package/srcpackage argument. Hooks
+ can use that to change the affected package or call hooks from different
+ packages.
+ - KDE frontend implementation of ui_question_userpass(), for crash databases
+ which need to ask for credentials.
+ - hookutils.py: New funtion attach_wifi() to add wireless network related
+ information to reports.
+ - Fix the test suite on current kernels; test/crash previously often failed
+ with python segfaults, since it killed the test processes too early.
+
+ -- Martin Pitt Wed, 26 Aug 2009 13:19:51 +0200
+
+apport (1.7-0ubuntu4) karmic; urgency=low
+
+ [ Colin Watson ]
+ * data/package-hooks/source_debian-installer.py: Report Ubiquity bugs
+ against the ubiquity source package, rather than rejecting them.
+
+ [ James Westby ]
+ * data/package-hooks/source_linux.py: submit oopses back if the user
+ accepts. Use the new kerneloops-submit to do it.
+ * bin/kernel_oops: kerneloops will now pass the checksum, so if it does
+ then base the report path on that to uniquify the reports.
+ * apport/fileutils.py: allow uid to be a string so that we can use
+ the checksum in place of the uid.
+
+ -- James Westby Tue, 25 Aug 2009 21:15:24 +0100
+
+apport (1.7-0ubuntu3) karmic; urgency=low
+
+ [ Colin Watson ]
+ * data/general-hooks/ubuntu.py: File update-grub bugs on grub2 instead of
+ grub if appropriate.
+ * apport/hookutils.py: Add command_available method, and use it to add
+ prtconf and pccardctl output if those commands are available.
+ * data/package-hooks/source_debian-installer.py: New hook, providing
+ roughly the same information as is provided by the 'report-hw' tool in
+ installation-report.
+
+ [ Matt Zimmerman ]
+ * apport/hookutils.py: Include modem-manager syslog messages in WifiSyslog
+ * data/general-hooks/ubuntu.py: Exclude bugs already aimed at grub2 from the
+ update-grub test (in support of Colin's change above)
+ * data/general-hooks/ubuntu.py: Redirect failures in /etc/kernel/*.d to the
+ package owning the file which failed
+ * Make sure that kernel crash dumps are marked as private in Launchpad
+ (LP: #417059)
+
+ -- Kees Cook Fri, 21 Aug 2009 11:32:06 -0700
+
+apport (1.7-0ubuntu2) karmic; urgency=low
+
+ [ Matt Zimmerman ]
+ * data/general-hooks/ubuntu.py: Detect when a kernel upgrade failure is
+ caused by update-grub failing, and file the bug on grub instead of linux
+ * data/general-hooks/ubuntu.py: Detect when a kernel upgrade failure is
+ caused by update-initramfs failing, and file the bug on initramfs-tools
+ instead of linux
+ * data/package-hooks/source_linux.py: Per discussion with ogasawara, attach
+ ALSA details on kernel bug reports by default. About 9% of sampled kernel
+ bugs are audio-related.
+ * data/package-hooks/source_linux.py: Add linux-firmware version to kernel
+ bug reports
+ * apport/hookutils.py: Add attach_wifi function with wifi-related debug info
+ * data/package-hooks/source_linux.py: Attach wifi info by default to kernel
+ bugs
+
+ [ Martin Pitt ]
+ * Merge trunk:
+ - report.py, add_hooks_info(): Add optional package/srcpackage argument.
+ - Implemented ui_question_userpass [Caio Romão].
+
+ -- Martin Pitt Sat, 08 Aug 2009 12:20:39 +0200
+
+apport (1.7-0ubuntu1) karmic; urgency=low
+
+ * New upstream release:
+ - Add support for symptoms.
+ * debian/control: Recommend apport-symptoms.
+ * debian/local/ubuntu-bug: When called without arguments, run in "show
+ available symptoms" mode.
+
+ -- Martin Pitt Wed, 05 Aug 2009 19:32:39 +0100
+
+apport (1.6-0ubuntu3) karmic; urgency=low
+
+ * Merge trunk:
+ - apport-gtk: Fix ordering of choices
+ - bin/package_hook: Fix crash for subdirectories in log dir. (LP: #332350)
+ - doc/package-hooks.txt: Document allowed chars in report keys.
+ - Show precise error message for damaged reports.
+ * ubuntu-bug: Call apport-kde instead of apport-qt.
+
+ -- Martin Pitt Tue, 04 Aug 2009 18:50:26 +0100
+
+apport (1.6-0ubuntu2) karmic; urgency=low
+
+ * Re-enable Apport by default, for the alpha-3 release.
+
+ -- Martin Pitt Tue, 21 Jul 2009 00:44:50 +0200
+
+apport (1.6-0ubuntu1) karmic; urgency=low
+
+ * New upstream release:
+ - Add support for kernel crashes, thanks to Michael Vogt!
+ - apport/ui.py, run_crash(): Do not re-collect information if we already
+ have a Dependencies field. This happens when calling apport on an already
+ pre-processed .crash file with -c. (LP: #394497)
+ - apport/hookutils.py, pci_devices(): Deliver all matching devices, not
+ just the last one. (LP: #398906)
+ - hookutils.py, _get_module_license(): Return "invalid" if modinfo fails,
+ so that they do not count as "free". (LP: #341720)
+ - packaging-apt-dpkg.py: Support additional custom native origins in
+ /etc/apport/native-origins.d/ . (LP: #386052)
+ - packaging-apt-dpkg.py: Drop PPA origin hack, launchpad behaves properly
+ now
+ - apport-gtk: Avoid focus stealing when being called without arguments (i.
+ e. auto-launched). LP: #396243)
+ - apport-kde: Use standard gettext again
+ - Fix handling of PC lacking disassembly due to invalid memory location.
+ * debian/local/apport-collect: Tag bugs with "apport-collected" on success.
+ (LP: #391392)
+
+ -- Martin Pitt Wed, 15 Jul 2009 18:02:59 +0200
+
+apport (1.5-0ubuntu2) karmic; urgency=low
+
+ * Merge fixes from trunk:
+ - packaging-apt-dpkg.py: Fix install_retracing_packages() for pre-0.7.9
+ python-apt API.
+ - Sort the list of dependencies so it's easier to scan (LP: #391021)
+
+ -- Martin Pitt Tue, 30 Jun 2009 22:39:18 +0200
+
+apport (1.5-0ubuntu1) karmic; urgency=low
+
+ * New upstream release:
+ - Drop all Makefiles, po/POTFILES.in, and most code from setup.py, and use
+ DistUtilsExtras.auto which "just does the right thing" for most build
+ system tasks. This requires python-distutils-extra >= 2.2, see
+ https://launchpad.net/python-distutils-extra
+ - Move all test scripts into test/, to unclutter source tree.
+ - setup.py now auto-detects the required packaging backend if
+ apport/packaging_impl.py is not manually installed.
+ * debian/control: Add python-distutils-extra build dependency.
+ * debian/rules: Drop stuff which is now properly done by the upstream build
+ system.
+ * Drop debian/apport.examples, preloadlib died long ago.
+ * Adapt debian/apport-{gtk,kde}.install to new upstream build system, which
+ now installs the .desktop files itself.
+
+ -- Martin Pitt Mon, 29 Jun 2009 12:00:21 +0200
+
+apport (1.4-0ubuntu1) karmic; urgency=low
+
+ * New upstream release. Compared to our previous snapshot, this changes:
+ - Replace Qt4 frontend with KDE frontend, thanks to Richard Johnson!
+ - apport/ui.py, run_report_bug(): Clean up PID information collection.
+ - gtk/apport-gtk.ui: Drop invalid icon reference. (LP: #389064)
+ - ui.py: Do not reject non-distro package reports if report sets CrashDB
+ (for third-party destination). (LP: #391015)
+ - bin/kernel_crashdump: Use packaging API properly.
+ - apport-gtk.ui: Drop erroneous translatable flag from stock buttons.
+ - Update German translations.
+ * debian/*: qt → kde, add transitional package for apport-qt.
+ * Drop backends/packaging_rpm.py. We don't use it in the Ubuntu package at
+ all, and it's still in trunk.
+ * debian/rules: Drop some deprecated dh_* calls, cdbs's debhelper.mk has
+ done them for a long time.
+ * debian/control: Bump Standards-Version to 3.8.2 (no changes necessary).
+ * debian/control: Replace URLs in descriptions with proper Homepage: field.
+
+ -- Martin Pitt Fri, 26 Jun 2009 10:44:54 +0200
+
+apport (1.3-0ubuntu2) karmic; urgency=low
+
+ * debian/local/apport-collect: Pass None as HookUI object. This will crash
+ with interactive hooks, but is a good enough immediate bandaid.
+ (LP: #385811)
+ * Merge fixes from trunk:
+ - packaging-apt-dpkg.py: Add backwards compatibility code for python-apt <
+ 0.7.9 to not break backportability.
+ - hookutils.py, command_output(): Force LC_MESSAGES=C, to avoid translated
+ output in bug reports. (LP: #383230)
+ - apport-gtk.ui: Make details window resizable, and lower default size, so
+ that it will fit on small screens. (LP: #365517)
+
+ -- Martin Pitt Fri, 12 Jun 2009 12:47:59 +0200
+
+apport (1.3-0ubuntu1) karmic; urgency=low
+
+ * New upstream release. Compared to our bzr snapshot, this has:
+ - Interactive package hooks:
+ + Add apport.ui.HookUI class which provides GUI functionality such as
+ yes/no
+ questions or file dialogs to hooks.
+ + add_info() in package hooks now can (optionally) take a second argument
+ which is the HookUI instance.
+ + See doc/package-hooks.txt for details.
+ + See UbuntuSpec:desktop-karmic-symptom-based-bug-reporting
+ - New function apport.hookutils.root_command_output() to run a command as root,
+ through gksu/kdesudo/sudo, depending on the desktop environment.
+
+ -- Martin Pitt Wed, 10 Jun 2009 16:49:13 +0200
+
+apport (1.2.1-0ubuntu3) karmic; urgency=low
+
+ * debian/control: Bump Standards-Version to 3.8.1 (no changes necessary).
+ * debian/control: Bump debhelper dependency for dh_icons, to satisfy
+ lintian.
+ * general-hooks/ubuntu.py: Fix IndexError crash if report does not have a
+ Package field. Check whether we actually have attach_conffiles() (which is
+ not the case when running the upstream version).
+ * Merge trunk:
+ - launchpad.py: Fix crash for unset titles.
+ - Add segfault analysis hook for quick segv reviews. Thanks to Kees Cook!
+ - run-tests: Replace hardcoded Python path with dynamically detected path.
+
+ -- Martin Pitt Wed, 03 Jun 2009 09:52:03 +0200
+
+apport (1.2.1-0ubuntu2) karmic; urgency=low
+
+ * debian/control: Update Vcs-Bzr: for new location (moved from project
+ branch to package branch).
+ * Merge bug fixes from trunk:
+ - apport-cli: Fix report saving in "bug report" mode. (LP: #353253)
+ - Drop "UnsupportableReason" field, it is too similar to
+ UnreportableReason and just confusing.
+ - ui.py: Check UnreportableReason for run_report_bug() as well.
+ (LP: #361359)
+ - general-hooks/generic.py: Do not report problems with low free space on
+ / or /home. (LP: #381047)
+ - launchpad.py: Do not overwrite report['Title'].
+ - launchpad.py: Repair support for extra tags.
+ - New function apport.hookutils.root_command_output() to run a command as
+ root, through gksu/kdesudo/sudo, depending on the desktop environment.
+ (Part of UbuntuSpec:desktop-karmic-symptom-based-bug-reporting)
+ - launchpad.py: Fetch DpkgTerminalLog. (LP: #382589)
+ - launchpad.py: More robust download(), fixes other part of (LP: #382589)
+ - problem_report.py: Allow dashes and underscores in key names. Update
+ doc/data-format.tex accordingly. (LP: #380811)
+
+ -- Martin Pitt Tue, 02 Jun 2009 11:59:41 +0200
+
+apport (1.2.1-0ubuntu1) karmic; urgency=low
+
+ * New upstream release:
+ - Moving away from deprecated APIs:
+ + packaging-apt-dpkg.py: Use python-apt >= 0.7.9 official API and drop
+ usage of internal symbols.
+ + hookutils.py: Drop hal related functions and queries, replace with
+ udev database, udev log file, and DMI information from sysfs.
+ + gtk UI: Convert from libglade to gtk.Builder.
+ - Bug fixes:
+ + hookutils.py: Drop /proc/version_signature collection, it is Ubuntu
+ specific.
+ + apportcheckresume: Fix log collection from pm-utils.
+ + Fix various crashes and report properties for reporting against
+ uninstalled packages.
+ * debian/control: Drop python-glade2 dependency, bump python-gtk2 dependency
+ to ensure availability of gtk.Builder.
+ * hookutils, attach_conffiles(): Remove leftover debugging spew.
+ * debian/apport-qt.install: Install the individual Qt .ui files instead of
+ *.ui, since GTK's are now also called *.ui.
+
+ -- Martin Pitt Fri, 15 May 2009 11:28:34 +0200
+
+apport (1.1.1-0ubuntu2) karmic; urgency=low
+
+ [ Martin Pitt ]
+ * hookutils.py: Do not attach /proc/version_signature, it's Ubuntu specific.
+ (Merged from trunk). Instead, attach it in general-hooks/ubuntu.py.
+ * general-hooks/ubuntu.py: Attach package conffile information.
+ * debian/local/apport-collect: Add workaround for launchpadlib bug
+ LP#353805, to avoid crashing with non-UTF8 attachments. (LP: #368004)
+ * debian/local/apport-collect: Fix import of launchpadlib's HTTPError.
+ * apport/hookutils.py, attach_conffiles(): Ignore empty lines from
+ dpkg-query output.
+ * general-hooks/ubuntu.py: Strip off '/target' prefix from ExecutablePath
+ and InterpreterPath, to correctly process crash reports from the live
+ system installer.
+ * apport/hookutils.py, attach_conffiles(): Do not use command_output(),
+ since that causes error messages to get parsed as conffiles. Use
+ subprocess properly.
+ * backends/packaging-apt-dpkg.py: Replace deprecated python-apt properties
+ with current ones (merged from trunk). Update python-apt dependency to
+ >= 0.7.9.
+ * packaging-apt-dpkg.py, get_modified_files(): Do not show package list file
+ as modified if the package is not installed (merged from trunk).
+ (LP: #364533)
+ * backends/packaging-apt-dpkg.py, install_retracing_packages(): Fix syntax
+ error which broke the retracers.
+
+ [ Andy Whitcroft ]
+ * bin/apportcheckresume: the suspend _and_ hibernate logs are both in
+ pm-suspend.log.
+ * bin/apportcheckresume: remove redunant check for file before attaching
+ stress log.
+
+ -- Martin Pitt Wed, 13 May 2009 15:22:53 +0200
+
+apport (1.1.1-0ubuntu1) karmic; urgency=low
+
+ [ Martin Pitt ]
+ * New upstream security update:
+ - etc/cron.daily/apport: Only attempt to remove files and symlinks, do not
+ descend into subdirectories of /var/crash/. Doing so might be exploited by
+ a race condition between find traversing a huge directory tree, changing
+ an existing subdir into a symlink to e. g. /etc/, and finally getting
+ that piped to rm. This also changes the find command to not use GNU
+ extensions. Thanks to Stephane Chazelas for discovering this!
+ (LP: #357024, CVE-2009-1295)
+ - Other fixes were already cherrypicked in the previous upload.
+
+ [ Matt Zimmerman ]
+ * package-hooks/source_linux.py: Attach info for linux-restricted-modules
+ and linux-backports-modules
+
+ -- Martin Pitt Thu, 30 Apr 2009 09:08:29 +0200
+
+apport (1.1-0ubuntu1) karmic; urgency=low
+
+ * New upstream release:
+ - Drop some remaining distro specific pieces of code from non-backends.
+ - Add hookutils methods for attaching relevant packages, greatly improve
+ attach_alsa() for sound problem debugging.
+ - Move launchpad crash database implementation from ever-breaking
+ python-launchpad-bugs (screenscraping) to launchpadlib (official and
+ stable Launchpad API). (LP: #353879)
+ - Add new field Report.pid which gets set on add_proc_info() and can be
+ used by hooks.
+ - setup.py: Properly clean up all generated files, install missing
+ mimetypes/text-x-apport.svg icon symlink.
+ - Add README file.
+ - Add translations from Launchpad.
+ - Remove preloadlib/*; it's undermaintained, and not really useful any
+ more these days.
+ - Various bug fixes; most visible being the misnamed
+ etc/default/apport.default file (which should just be
+ etc/default/apport).
+ * Merge some bug fixes from trunk:
+ - launchpad.py: Send and read Date: field again, reverting r1128; it is
+ useful after all. (LP: #349139)
+ - report.py, add_proc_info(): Only add ProcAttrCurrent if it is not
+ "unconfined".
+ - ui.py: Detect invalid PIDs (such as for kernel processes) and give a
+ friendly error message. (LP: #360608)
+ - report.py, add_hooks_info(): Always run common hooks, and run source
+ package hooks if we do not have a binary package name. (LP: #350131)
+ - launchpad.py: Consider socket errors when connecting as transient, so
+ that crash-digger doesn't stop completely on them.
+ * Drop debian/apport.README.Debian, superseded by upstream README.
+ * Drop debian/apport.links, done by upstream setup.py now.
+ * debian/rules, debian/apport.preinst: Drop upgrade fix for misnamed default
+ file again, was only necessary for intra-Jaunty upgrades.
+ * debian/control: python-launchpad-bugs → python-launchpadlib dependencies.
+ * debian/local/apport-collect: Drop launchpadlib login code, just use the
+ CrashDatabase implementation from apport/crashdb_impl/launchpad.py.
+ * Make package backportable to hardy and intrepid:
+ - debian/control: Relax python-central buil-dependency to 0.5.6.
+ - debian/rules: Determine DH_PYCENTRAL value ("include-links" vs.
+ "nomove") based on the installed pycentral version.
+ - debian/rules: Only supply --install-layout=deb when Python version is
+ 2.6.
+ * apport/hookutils.py: Add docstring for attach_hardware, thanks Matt
+ Zimmerman! (Merged from lp:~mdz/apport/hookutils)
+ * apport/crashdb_impl/launchpad.py: Support older wadllib API
+ where bug.date_created was a string instead of a datetime object.
+ (Cherrypicked from trunk).
+ * debian/control: Drop apport dependency to python-xdg, it's not required.
+ (LP: #354172)
+ * debian/control: Drop gdb from Depends: to Recommends:. (LP: #354172)
+ * debian/local/apport-collect: Print a friendly error message instead of
+ crashing if the bug number is not an integer. (LP: #351050)
+ * debian/local/apport-collect: Change incomplete tasks back to "New" after
+ data collection. (LP: #363126)
+ * debian/apport.links: source_linux-meta.py -> source_linux.py package hook,
+ so that apport-collect works on "linux" source bug tasks. These get
+ opportunistically translated into binary packages, but the binary "linux"
+ is built by the source "linux-meta". (LP: #350131)
+ * debian/local/setup-apport-retracer:
+ - Use ports.ubuntu.com for non-{i386,amd64,lpia}.
+ - Set up Jaunty by default.
+ - Fix test for being in local unpackaged apport source tree.
+ - Drop installation of python-launchpad-bugs.
+ - Install bzr branches/packages necessary for launchpad, in a shared
+ ~/launchpadlib/ tree: launchpadlib, wadllib, oauth, lazr.uri, httplib2,
+ simplejson.
+ - Clean up apport-chroot calling for extra packages.
+
+ -- Martin Pitt Tue, 28 Apr 2009 10:50:49 +0200
+
+apport (1.0-0ubuntu5) jaunty; urgency=low
+
+ [ Martin Pitt ]
+ * Rename etc/default/apport.default to etc/default/apport (brown paperbag),
+ and add debian/apport.preinst to remove the apport.default file on
+ upgrades. (LP: #361543)
+ * debian/rules: Call dh_installinit with --onlyscripts, so that the package
+ calls update-rc.d again. This fixes the calling of init script again,
+ which got broken in 1.0-0ubuntu1. (LP: #361579)
+
+ [ Matt Zimmerman ]
+ * package-hooks/source_linux.py: Attach /etc/initramfs-tools/conf.d/resume to
+ show the resume device for hibernation
+
+ -- Martin Pitt Wed, 15 Apr 2009 22:36:33 +0200
+
+apport (1.0-0ubuntu4) jaunty; urgency=low
+
+ * etc/default/apport.default: Disable Apport by default for the final
+ release.
+
+ -- Martin Pitt Tue, 14 Apr 2009 11:47:29 +0200
+
+apport (1.0-0ubuntu3) jaunty; urgency=low
+
+ * apport/hookutils.py: Factor out package_versions() to generate a simple
+ text listing of relevant package versions and use it in attach_printing()
+ * apport/hookutils.py: Add new function attach_relevant_packages() to attach
+ version information (and perhaps eventually run hooks?) for related
+ packages
+ * apport/hookutils.py: Add glob matching to package_versions()
+ * apport/hookutils.py: Add fuser info and dmesg to attach_alsa
+ * apport/hookutils.py: Add codec info to attach_alsa
+
+ -- Matt Zimmerman Thu, 09 Apr 2009 07:36:45 -0700
+
+apport (1.0-0ubuntu2) jaunty; urgency=low
+
+ * backends/packaging-apt-dpkg.py: Add missing shutil import.
+ * debian/local/ubuntu-bug: Filter out -p and -P, for backwards calling
+ compatibility. (LP: #356755)
+
+ -- Martin Pitt Mon, 06 Apr 2009 23:04:39 -0700
+
+apport (1.0-0ubuntu1) jaunty; urgency=low
+
+ * Apport has a proper upstream trunk now (lp:apport) and made an 1.0
+ upstream release. Use this as an orig.tar.gz. This does not change any
+ code for Jaunty, just removes the Fedora/OpenSUSE specific .spec and init
+ scripts.
+ * Add bzr-builddeb configuration (merge mode).
+ * Add debian/watch for upstream releases on Launchpad.
+ * Drop debian/python-apport.postinst, obsolete for a long time.
+
+ -- Martin Pitt Mon, 06 Apr 2009 17:37:48 -0700
+
+apport (0.149) jaunty; urgency=low
+
+ Do some internal cleanup of distribution specific stuff:
+
+ * problem_report.py, man/apport-unpack.1: Fix description of .crash file
+ syntax (RFC822, not "Debian control").
+ * Move cron.daily, init script, and default file from debian/ to etc/, and
+ install them in setup.py. These files are appropriate for upstream
+ installation.
+ * Move crashdb.conf and doc/README.blacklist to etc/, to simplify setup.py.
+ * setup.py: Move *.mo generation/installation into my_install_data class,
+ for cleanliness.
+ * Move installation of missing packages for retracing from
+ bin/apport-retrace to new abstract interface apport/packaging.py,
+ install_retracing_packages() and remove_packages(), and move the apt/dpkg
+ code to backends/packaging-apt-dpkg.py. This removes a major piece of
+ apt/dpkg specific code from non-backends.
+ * bin/apport-retrace: Rename option --no-dpkg to --no-pkg and update
+ bin/apport-chroot accordingly.
+ * Move bin/apport-chroot and man/apport-chroot.1 to debian/local, since they
+ are totally Debian/Ubuntu specific.
+ * debian/local/setup-apport-retracer: Update apport-chroot and crashdb.conf
+ paths for above changes.
+ * apport/hookutils.py, files_in_package(): Replace dpkg-query call with
+ packaging.get_files(), to avoid Debianism.
+ * man/apport-retrace.1: Drop reference to "apt", simply talk about package
+ installation.
+
+ Bug fixes:
+
+ * setup.py: Fix homepage URL.
+ * debian/local/apport-chroot: If multiple distro IDs point to the same
+ chroot, do not upgrade them more than once with "upgrade all".
+
+ -- Martin Pitt Mon, 06 Apr 2009 16:06:33 -0700
+
+apport (0.148) jaunty; urgency=low
+
+ [ Matt Zimmerman ]
+ * apport/hookutils.py: add attach_media_build to include information about
+ the build of installation media in use (i.e. in a casper live CD
+ environment)
+ * general-hooks/ubuntu.py: use attach_media_build (LP: #351781)
+ * bin/apportcheckresume: Use attach_file_if_exists rather than attach_file to
+ avoid spurious error messages about non-existent log files (LP: #351973)
+
+ [ Martin Pitt ]
+ * debian/local/ubuntu-bug: Drop generic passthrough of apport-{cli,gtk,kde}
+ options since this leads to too much confusion. Instead just support a
+ single argument and check whether it is a pid, a package name, a .crash
+ file, or a program path. This does the right thing when calling it with a
+ .crash file (LP: #347392) and fixes the help output (LP: #344923) Update
+ manpage accordingly.
+ * apport/hookutils.py: Move attach_media_build() to
+ general-hooks/ubuntu.py, since it is Ubuntu specific.
+ * bin/apport-retrace: Fix KeyError crash on bugs with an ExecutablePath
+ which does not exist any more. Close the bug as invalid instead.
+ (LP: #352331)
+ * bin/kernel_oops: Add "kernel-oops" tag. Since both bin/kernel_oops and
+ bin/apportcheckresume use the "kerneloops" bug class, it previously was
+ hard to filter out the bug reports which were real oopses. (LP: #349621)
+
+ -- Martin Pitt Wed, 01 Apr 2009 18:10:01 +0200
+
+apport (0.147) jaunty; urgency=low
+
+ * bin/apportcheckresume: report the pm-suspend.log/pm-hibernate.log
+ from /var/lib.
+ * bin/apportcheckresume: only attempt to attach the stress log if its is
+ present.
+ * bin/apportcheckresume, debian/apport.init: add detection for late
+ resume hangs, those where the user thinks the system was working.
+ (LP: #335323)
+
+ -- Andy Whitcroft Mon, 30 Mar 2009 09:47:28 +0200
+
+apport (0.146) jaunty; urgency=low
+
+ * apport/report.py, _generate_sigsegv_report(): Turn into a class method, so
+ that it can be used by test cases in other modules as well. Also add
+ missing Signal field.
+ * apport/crashdb_impl/launchpad.py: Fully enable operation with
+ staging.launchpad.net.
+ * apport/crashdb_impl/launchpad.py: Add initial test suite, performing data
+ upload, Python and SEGV bug reporting, report download, report updating,
+ tag and duplicate handling. This happens on staging.launchpad.net.
+ * apport/crashdb.py: Add new interface duplicate_of(id) to return the master
+ bug of a duplicate. Also document that close_duplicate() with "None"
+ master bug will un-duplicate the bug.
+ * apport/crashdb_impl/{launchpad,memory}.py: Implement duplicate_of() and
+ add test cases. The Launchpad test case reproduces the
+ "duplicate-of-a-duplicate" regression, which now got fixed in
+ python-launchpad-bugs bzr head.
+ * apport/ui.py, open_url(): Also consider a sesssion as "GNOME" if gconfd-2
+ is running; some variants such as UNR do not have gnome-panel; this fixes
+ using the preferred browser for them. (LP: #322386)
+ * debian/local/apport-collect: Add new option -p to explicitly specify a
+ (binary) package name instead of guesstimating it from the bug's source
+ package tasks. Document new option in debian/local/apport-collect.1.
+ (LP: #333875)
+ * apport/crashdb.py, duplicate_db_consolidate(): Add logging about removing
+ invalidated bugs from the duplicate database, now that this actually
+ works.
+ * debian/local/ubuntu-bug.1: Update for the possibility to specify a package
+ name or PID without any options. Also document the "ubuntu-bug linux"
+ special case. (LP: #348985)
+ * debian/local/ubuntu-bug.1: Add missing documentation of the case of
+ specifying a path name.
+ * backends/packaging-apt-dpkg.py: When unpacking source trees, try
+ "debian/rules setup" last, since it is the least common variant.
+ * debian/local/ubuntu-fat-chroot: Divert away
+ /usr/lib/xulrunner-1.9.1b3/xulrunner-bin. It is called on debian/rules
+ patch in xulrunner-1.9.1 and hangs eternally in the fakechroots. This is
+ only a temporary kludge, though, until the next xulrunner version lands.
+ * apport/crashdb_impl/launchpad.py: Add test case: Update a bug report which
+ got marked as a duplicate during processing. This reproduces #349407.
+ * apport/crashdb_impl/launchpad.py, update(): Intercept and ignore IOErrors
+ when changing the bug priority. This happens if a bug gets duplicated
+ underneath us. (LP: #349407)
+ * apport/crashdb.py, get_crashdb(): Print syntax errors from parsing
+ conf.d/*.conf to stderr.
+ * apport/crashdb_impl/launchpad.py: Support new CrashDB option "project"
+ which can be set to a LP project name to file bugs against that project
+ instead of the distribution. Add test case for filing crash bug against a
+ project, updating it, duplicating/unduplicating it, and determining fixed
+ version. (LP: #338835)
+ * bin/crash-digger: If apport-retrace exits with 99, consider it a transient
+ error and just stop the retracer, but don't leave the lock file behind.
+ Add appropriate test case to test-crash-digger.
+ * bin/apport-retrace: If apt update fails due to a "hash sum mismatch", exit
+ with a "transient error" code, to stop (but not break) the retracing
+ cycle.
+
+ -- Martin Pitt Fri, 27 Mar 2009 17:01:08 +0100
+
+apport (0.145) jaunty; urgency=low
+
+ * apport/crashdb_impl/launchpad.py: Fix typo in previous upload.
+ * debian/local/apport-collect: Do not crash on
+ launchpadlib.errors.HTTPError, but give a proper error message and point
+ out that this script needs "change anything" privileges. (LP: #338201)
+ * apport_python_hook.py: Fix crash for already existing reports, and make
+ behaviour equivalent to bin/apport: Silently exit for existing unseen
+ crash report, and overwrite existing seen crash report. Add test cases.
+ (LP: #323714)
+ * general-hooks/automatix.py: Refuse to send bug reports when ultamatix is
+ installed.
+
+ -- Martin Pitt Tue, 10 Mar 2009 18:45:34 +0100
+
+apport (0.144) jaunty; urgency=low
+
+ * apport/crashdb_impl/launchpad.py, mark_retrace_failed(): If report is
+ invalid, remove CoreDump.gz and other attachments.
+ * bin/apport-retrace: If we didn't find the ExecutablePath on the system
+ because the package is out of date, don't crash, but close the bug as
+ invalid.
+
+ -- Martin Pitt Tue, 10 Mar 2009 10:45:56 +0100
+
+apport (0.143) jaunty; urgency=low
+
+ * debian/apport.README.Debian: Document how to temporarily and permanently
+ enable crash interception.
+ * backends/packaging-apt-dpkg.py, is_distro_package(): Do not consider a
+ package a native distro one if installed version is "None". This happens
+ with some PPA packages. (LP: #252734)
+ * apport/report.py, anonymize(): Move user name anonymization into the
+ "non-root" case as well; fixes uninitialized variable. (LP: #338847)
+
+ -- Martin Pitt Mon, 09 Mar 2009 12:16:49 +0100
+
+apport (0.142) jaunty; urgency=low
+
+ * apport/report.py: Do not include lsb_release's stderr in the
+ DistroRelease: output.
+ * apport/hookutils.py: Fix attach_printing():
+ - Correct spelling or "error_log".
+ - Do not call fgrep with no file names (if /etc/cups/ppd/ is empty), since
+ that hangs forever.
+ * apport/report.py, _gen_stacktrace_top(): Fix parsing of stacktraces
+ with some addresses missing. Add test cases. (LP: #269133)
+ * apport/ui.py, run_report_bug(): Show details of collected information and
+ give the user a chance to cancel. Previously, collected data was sent
+ directly to Launchpad. Nowadays lots of packages have hooks, so we cannot
+ guarantee any more that bug reports only have non-sensitive information.
+ (LP: #195514) This also allows the user to cancel if (s)he inadvertedly
+ clicked on "Report a problem". (LP: #279033)
+ * apport/ui.py: Fix crash in get_complete_size() for reports that are
+ constructed on the fly instead of loaded from a file (i. e. for bug
+ reports). Fixes displaying of report in apport-cli.
+ * apport/report.py: Slight robustification of test_add_gdb_info_script()
+ test case.
+ * debian/local/ubuntu-bug: Fix invocation with "--help". (LP: #305841)
+ * apport/ui.py, load_report(): Clearer error message if report file does not
+ exist. (LP: #204198)
+ * Remove redundant verbiage from test suite docstrings.
+ * apport/report.py, anonymize(): Fix crash when processing root-owned
+ reports. (LP: #338033)
+ * apport/report.py, anonymize(): Do not anonymize single-character user and
+ host names, since they create an utter mess in bug reports, and also are
+ very low-sensitive.
+ * debian/apport.init: Also start apport if force_start=1 is given. This
+ provides a convenient method of starting apport just for a session without
+ changing the default file. Add a comment to debian/apport.default about
+ this possibility. Thanks to Milan for the suggestion and the initial
+ patch! (LP: #320467)
+ * backends/packaging-apt-dpkg.py, _get_mirror(): Only consider http://
+ mirrors for fetching Contents.gz. (LP: #315797)
+
+ -- Martin Pitt Thu, 05 Mar 2009 17:01:05 +0100
+
+apport (0.141) jaunty; urgency=low
+
+ * apport/hookutils.py: Add cups error log to attach_printing()
+
+ -- Brian Murray Mon, 02 Mar 2009 10:55:53 -0800
+
+apport (0.140) jaunty; urgency=low
+
+ * debian/python-{apport,problem-report}.install: Fix site-packages →
+ *-packages.
+ * run-tests: Only check for local packaging_impl.py if running local tests.
+ This unbreaks running tests from /usr/share/apport/testsuite/.
+
+ -- Martin Pitt Mon, 02 Mar 2009 11:56:59 +0100
+
+apport (0.139) jaunty; urgency=low
+
+ * apport/report.py, anonymize(): Do not anonymize "root". (Side
+ issue in LP #333542)
+ * debian/rules: Supply --install-layout=deb to setup.py.
+ * debian/local/apport-collect: Attach new info to
+ staging.launchpad.net if $APPORT_STAGING is defined. This makes
+ testing easier. Describe in debian/local/apport-collect.1.
+ * debian/local/apport-collect: Ignore ValueErrors from
+ add_package_info(), which happens if the bug has a source package
+ task which does not have an identically named binary package name.
+ Slightly ugly, but it's nontrivial to do that in a sensible
+ manner; let's just fix the crash for now, since the focus of this
+ tool is to collect information from hooks. (LP: #334823)
+ * apport/hookutils.py, hal_dump_udi(): Filter out serial numbers.
+ (Mentioned in LP #107103)
+
+ -- Martin Pitt Mon, 02 Mar 2009 11:36:18 +0100
+
+apport (0.138) jaunty; urgency=low
+
+ * apport/crashdb_impl/launchpad.py: Consider an useful stack trace
+ sufficient for automatically removing the core dump, it doesn't
+ need to be perfect. This is in accordance with not setting the
+ apport-failed-retrace tag for useful, but non-perfect retraces any
+ more.
+ * apport/hookutils.py, backends/packaging_rpm.py: Convert usage of
+ md5 module (which is deprecated in 2.6) to hashlib.
+ * Replace all instances of using an exception's .message attribute
+ with str(exception), since message is deprecated in Python 2.6.
+ * apport/hookutils.py: Add attach_printing(). Thanks to Brian Murray
+ for the initial patch! (LP: #333582)
+
+ -- Martin Pitt Tue, 24 Feb 2009 22:24:31 +0100
+
+apport (0.137) jaunty; urgency=low
+
+ * Set python-version to all, include symlinks in the package.
+
+ -- Matthias Klose Tue, 24 Feb 2009 21:22:36 +0100
+
+apport (0.136) jaunty; urgency=low
+
+ [ Andy Whitcroft ]
+ * bin/apportcheckresume: remove originator in suspend/hibernate/resume
+ reporting. This was intended for debugging only and is now redundant.
+ * bin/apportcheckresume, apport/report.py: when collecting resume failures
+ in very early boot hal may not be running and we thus unable to obtain
+ the machine type information. Move title generation to the reporting
+ engine.
+
+ [ Martin Pitt ]
+ * debian/local/apport-collect: Add user environment information, too
+ (LANG, PATH, SHELL). (LP: #332578)
+
+ -- Martin Pitt Tue, 24 Feb 2009 14:25:21 +0100
+
+apport (0.135) jaunty; urgency=low
+
+ * problem_report.py, test_write_mime_text(): Add test cases for
+ single-line and two-line UTF-8 values, single-line and two-line
+ Unicode values and a single-line LF-terminated value. Fix handling
+ of the latter two.
+ * problem_report.py, test_write(): Add test cases for single-line
+ and two-line UTF-8 and Unicode values, and fix handling of these
+ in write().
+ * debian/local/apport-collect: Collect package, OS, and user
+ information as well. (LP: #332578)
+ * package-hooks/source_apport.py: Robustify by using hookutils, and
+ avoid stat errors if /var/crash/* does not exist.
+ * test-hooks: Update dodgy test for uninstalled package,
+ libdb4.3-tcl is not available in Jaunty any more.
+
+ -- Martin Pitt Mon, 23 Feb 2009 13:14:24 +0100
+
+apport (0.134) jaunty; urgency=low
+
+ * debian/local/apport-collect: Do not collect information for closed
+ tasks. Thanks for Brian Murray for the initial patch! (LP: #331839)
+ * apport/crashdb_impl/launchpad.py, download(): Download
+ DpkgTerminalLog.txt attachment as well.
+ * apport/report.py: If downloading a nonexisting bug pattern file
+ name succeeds and returns a HTML snippet with "404 Not Found",
+ consider this as failure. This repairs falling back to source
+ package names. (LP: #328751)
+ * apport/hookutils.py: Replace tabs with spaces.
+
+ -- Martin Pitt Fri, 20 Feb 2009 11:22:15 +0100
+
+apport (0.133) jaunty; urgency=low
+
+ [ Andy Whitcroft ]
+ * apport/hookutils.py: define and include a machine type from the hardware
+ information in the report, using HAL information where available.
+ * bin/apportcheckresume: include the machine type in the suspend/hibernate
+ report title. They are generally machine specific.
+
+ -- Martin Pitt Thu, 19 Feb 2009 17:49:03 +0100
+
+apport (0.132) jaunty; urgency=low
+
+ [ Martin Pitt ]
+ * Add debian/local/apport-collect: Download a Launchpad bug report,
+ get its source package, check if it has apport hooks, and if so,
+ run and upload them. Add manpage, too. (LP: #124338)
+ * debian/control: Add Suggests: python-launchpadlib; this is only
+ needed by apport-collect, thus we don't need to pull that into
+ every default installation; if it's not installed apport-collect
+ will detect and point this out.
+ * debian/control: Add ${misc:Depends} dependencies.
+
+ [ Jonathan Riddell ]
+ * Set window icon in apport-qt
+
+ -- Martin Pitt Thu, 19 Feb 2009 13:50:34 +0100
+
+apport (0.131) jaunty; urgency=low
+
+ [ Andy Whitcroft ]
+ * bin/apportcheckresume, bin/kernel_oops, cli/apport-cli, gtk/apport-gtk,
+ gtk/apport-gtk.glade, qt4/apport-qt: generalised the KernelOops
+ dialog and handling to allow suspend and hibernate failures present
+ more accurate reasons for the report. Also commonises all messages
+ in the three implementations to simplify internationalisation.
+
+ [ Martin Pitt ]
+ * po/Makefile: Fix merge-po rule to actually work again.
+ * cli/apport-cli, qt4/apport-qt: Unify string with apport-gtk.
+ * apport/ui.py: Drop some bogus translatable strings.
+ * Update German translations.
+
+ -- Martin Pitt Mon, 16 Feb 2009 19:31:41 +0100
+
+apport (0.130) jaunty; urgency=low
+
+ [ Martin Pitt ]
+ * bin/kernel_crashdump: Don't crash if vmcore.log does not exist.
+ * crashdb_impl/launchpad.py: Tag bugs with the architecture they are
+ being reported on.
+ * bin/crash-digger: Revert catching "database is locked" errors
+ during consolidation, since it just hides more fundamental errors.
+ * apport/crashdb_impl/memory.py: Improve docstrings of test suite.
+ * bin/apport-retrace: Do not try to install -dbgsym packages with
+ nonmatching versions, unless --unpack-only is used. Thanks to
+ hggdh for the initial patch! (LP: #309208)
+
+ [ Andy Whitcroft ]
+ * bin/apportcheckresume: modify the oops title and thereby the launchpad
+ bug title to say suspend or hibernate.
+ * bin/apportcheckresume: modify the tags to bin/apportcheckresume:
+ modify the oops title and thereby the launchpad be resume+suspend or
+ resume+hibernate as appropriate.
+ * bin/apportcheckresume: include any non-free modules in the bug title.
+
+ -- Martin Pitt Thu, 12 Feb 2009 22:09:35 +0100
+
+apport (0.129) jaunty; urgency=low
+
+ * bin/apport-retrace: Log broken reports.
+ * bin/apport-retrace: Do not mark bugs as invalid after they are
+ already marked as a duplicate, since that does not work in
+ Launchpad.
+ * debian/local/ubuntu-fat-chroot: Symlink /target -> /, to work
+ for crashes which appear in /target during installation.
+ * bin/apport: Move argv length/usage help before lock check, so that
+ it works if the user cannot lock /var/crash/.lock. Thanks to Kees
+ Cook!
+ * doc/package-hooks.txt: Point out apport.hookutils.
+ * apport/ui.py: Check environment variable APPORT_REPORT_THIRDPARTY
+ in addition to the 'thirdparty' configuration file option for
+ overriding the "genuine distro package" check. Thanks to Oumar
+ Aziz OUATTARA!
+ * apport/crashdb_impl/launchpad.py: In third-party mode, report bugs
+ against Launchpad projects. Thanks to Oumar
+ Aziz OUATTARA for his branch! (LP: #213454)
+ * bin/apportcheckresume: Include /var/lib/pm-utils/stress.log, too.
+ Thanks to Andy Whitcroft for the initial patch, rewrote to use
+ apport.hookutils.
+ * apport/crashdb.py, init_duplicate_db(): Run an integrity check and
+ raise exception if it fails, to avoid running the retracers on a
+ corrupt duplicate db. Add test case to
+ apport/crashdb_impl/memory.py.
+ * bin/crash-digger: Create a backup of the duplicates database right
+ after initializing it (which verifies integrity).
+ * dupdb-admin: Add new command "consolidate".
+ * apport/crashdb_impl/launchpad.py: Request bug lists with batch
+ size 300, for slight speedup of consolidation.
+ * apport/crashdb.py, duplicate_db_consolidate(): Warn about a bug
+ which is not yet fixed, but does not appear in get_unfixed(). In
+ Launchpad, this means that the bug does not have the
+ 'apport-crash' tag any more; if there are many, those would be a
+ huge time/bandwidth waste.
+
+ -- Martin Pitt Mon, 26 Jan 2009 16:04:16 +0100
+
+apport (0.128) jaunty; urgency=low
+
+ * apport/ui.py: Introduce new configuration option "thirdparty" and
+ ignore the is_distro_package() check if it is set to true.
+ * bin/apport-retrace: Call Cache.open() after Cache.update().
+ * bin/apport-retrace: If downloading a report fails (e. g. the
+ description was invalidly modified), mark the bug as invalid with
+ a proper explanation instead of crashing, unless we are in
+ "stdout" or "output file" mode.
+ * apport/crashdb_impl/launchpad.py: Apply some heuristics to attempt
+ recovering broken descriptions as in LP #315728 (intermediate
+ blank lines, and non-apport data append).
+
+ -- Martin Pitt Mon, 19 Jan 2009 17:49:55 +0100
+
+apport (0.127) jaunty; urgency=low
+
+ * bin/apportcheckresume, debian/apport.init: integrate with pm-utils to
+ detect suspend/resume failures. Thanks to Steve Conklin and Andy
+ Whitcroft. LP: #316419.
+
+ -- Steve Langasek Tue, 13 Jan 2009 12:54:12 -0800
+
+apport (0.126) jaunty; urgency=low
+
+ * bin/apport-chroot: If --auth is specified in "login" mode, symlink
+ the file into /tmp/auth in the fakechroot. This makes it much
+ easier to interactively debug retracing.
+ * bin/apport-retrace: Exit with zero for bugs which do not have a
+ core dump, so that it does not completely stop the retracers.
+
+ -- Martin Pitt Fri, 09 Jan 2009 22:49:48 +0100
+
+apport (0.125) jaunty; urgency=low
+
+ * bin/apport-chroot: Exit with apport-retraces' exit status, to
+ propagate errors upwards to crash-digger.
+ * bin/apport-retrace: Do not put outdated -dbgsym comments into the
+ bug comments.
+ * Rewrite bin/crash-digger to become much more robust and easier for
+ retracer maintainers:
+ - Now designed around cron-based maintenance: start, process all
+ pending bugs, exit. This makes memory leaks irrelevant, and gets
+ rid of all the logging, daemonizing, and looping code.
+ - Adapt stdout/stderr reporting to be suitable for cron and
+ redirecting stdout to a log file.
+ - Use lock files to avoid overlapping instances and avoid damaging
+ bugs with broken retracers after crash-digger failed.
+ - Handle chroot upgrading, so that this does not need separate
+ cronjobs any more.
+ - Drop old -i option, replace with -D/--dupcheck which is a mode
+ which *only* checks duplicates of Python crashes (no fakechroot
+ handling).
+ - Mark bug as retraced after apport-chroot retrace finished
+ successfully; the process is robust enough now to avoid enless
+ loops even if retracing fails.
+ - Adapt test-crash-digger accordingly.
+ - UbuntuSpec:apport-retracer-maintenance
+
+ -- Martin Pitt Fri, 09 Jan 2009 12:14:44 +0100
+
+apport (0.124) jaunty; urgency=low
+
+ * debian/local/ubuntu-fat-chroot: Divert touch to touch.real and
+ wrap it into a shell wrapper which ignores failures. Some packages
+ use "touch -m" which fails with EPERM on directories under
+ fakechroot. Also disable gconf-schemas and polkit-auth, since they
+ do not work in fakechroots.
+ * apport/crashdb_impl/launchpad.py: Allow using staging for testing.
+ * apport/crashdb.py, mark_retrace_failed(): Add new optional
+ argument "invalid_msg", intended for crashes which cannot be
+ retraced properly (e. g. due to outdated packages). Implement this
+ in apport/crashdb_impl/launchpad.py.
+ * bin/apport-retrace: If we do not have an usable stack trace, and
+ encounter outdated package versions in the crash, close the report
+ as invalid with an appropriate comment. (LP: #308917)
+ * bin/apport-retrace: Update the apt cache before looking for, and
+ installing packages. (Part of UbuntuSpec:apport-retracer-maintenance)
+ * debian/apport.default: Enable by default again for Jaunty. Let the
+ flood begin!
+
+ -- Martin Pitt Thu, 08 Jan 2009 14:05:07 +0100
+
+apport (0.123) jaunty; urgency=low
+
+ * bin/apport: Do not write the report into the log file if opening
+ the report file failed; just log the error.
+ * bin/apport: Remove a previously seen report file, so that the
+ following creation with O_EXCL actually works.
+ * apport/report.py, add_proc_info(): Only try to attach
+ /proc/pid/attr/current if we are root. This works around Python
+ segfaulting regression when encountering EPERM on read() (see
+ LP #314065).
+ * apport/report.py testsuite: Use "isofs" for module license check
+ testing instead of "usbcore", since the latter is more likely to
+ get built into the kernel.
+ * apport/report.py, add_proc_environ(): Use "PATH=(...)" instead of
+ "PATH: ..." notation, to be consistent with other environment
+ variables. Unbreaks the apport test suite.
+
+ -- Martin Pitt Mon, 05 Jan 2009 18:05:38 +0100
+
+apport (0.122) jaunty; urgency=low
+
+ * apport/crashdb_impl/launchpad.py: Support extra tags in the
+ report's "Tags:" field, and set them in the Launchpad bug.
+ Document this in doc/data-format.tex. Thanks to Steve Conklin for
+ the patch!
+
+ -- Martin Pitt Mon, 05 Jan 2009 10:06:49 +0100
+
+apport (0.121) jaunty; urgency=low
+
+ * debian/apport.init: Drop long obsolete setting of
+ /proc/sys/kernel/crashdump-size.
+ * debian/apport.init: Make restart actually work if the default file was
+ changed. (LP: #292402)
+ * apport/report.py, add_proc_environ(): Do not include verbatim $PATH, only
+ classify it as "default" (does not appear at all then), "custom,
+ user" (/home or /tmp in $PATH), or "custom, no user". Add appropriate test
+ case. Update the data format documentation accordingly. (LP: #245263)
+
+ -- Martin Pitt Mon, 08 Dec 2008 19:37:53 -0800
+
+apport (0.120) jaunty; urgency=low
+
+ * man/apport-cli.1: Fix "sytem" typo. (LP: #288977)
+ * apport/fileutils.py: Add new function get_options() to read
+ ~/.config/apport/settings. In the future, the apport-ignore.xml file will
+ move to this directory, too. Based on idea and initial patch from Nikolay
+ Derkach.
+ * bin/apport: Check config option "unpackaged", and if it is set to True,
+ create a crash dump for unpackaged programs, too. Bump apport package
+ dependency to python-apport for this.
+ * apport/ui.py: Fix regression introduced in in 0.115 for checking
+ successful package name determination.
+ * apport/report.py: Some distro portability fixes in the test suite, thanks
+ to Nikolay Derkach!
+ * Add OpenSUSE spec file, init script, and RPM packaging backend. Thanks to
+ Nikolay Derkach!
+ * apport_python_hook.py, bin/apport: Create files in a race free way to
+ avoid symlink attacks. Thanks to Sebastian Kramer for
+ finding them!
+ * problem_report.py test suite: Create debugging leftover which left /tmp/r
+ behind.
+ * apport/crashdb_impl/memory.py: Use example.com, not bug.net, since the
+ latter actually exists now.
+ * apport/hookutils.py: Add attach_network(), attach_alsa(), and
+ attach_hardware(), and add proper docstrings. Thanks to Matt Zimmerman for
+ the branch!
+ * source_linux.py hook: Use above tool functions, which greatly simplifies
+ the hook.
+ * apport/report.py: Also print exceptions from binary and source package
+ hooks, not just from common ones.
+ * apport/report.py, add_hooks_info(): Do not print an error if a source
+ package hook does not exist.
+ * apport/hookutils.py, _parse_gconf_schema(): Correctly handle bool values.
+
+ -- Martin Pitt Wed, 26 Nov 2008 19:24:23 +0100
+
+apport (0.119) intrepid; urgency=low
+
+ * debian/apport.default: Disable Apport by default for the final release.
+
+ -- Martin Pitt Thu, 23 Oct 2008 09:34:41 +0200
+
+apport (0.118) intrepid; urgency=low
+
+ * apport/hookutils.py: add attach_gconf() function to add non-default gconf
+ settings to a report
+
+ -- Matt Zimmerman Mon, 13 Oct 2008 20:10:33 +0100
+
+apport (0.117) intrepid; urgency=low
+
+ * backends/packaging-apt-dpkg.py, is_distro_package(): Fix crash if
+ apt.Cache()[pkg].origins is None. (LP: #279353)
+ * bin/apport: Log that we are ignoring SIGABRT, since it is a common cause
+ of confusion.
+ * test-apport, create_test_process(): Fix race condition: wait until the
+ child process has fully execve()ed, to avoid coredumping it while it is
+ still running as test-apport process.
+ * apport/crashdb_impl/launchpad.py, update(): Set source package of a bug if
+ the reporter removed it and the task is against 'Ubuntu'. (LP: #269045)
+
+ -- Martin Pitt Tue, 07 Oct 2008 16:38:06 +0200
+
+apport (0.116) intrepid; urgency=low
+
+ * Update AUTHORS and debian/copyright, Michael and Troy released their
+ copyright to Canonical. Properly attribute them as authors in the
+ respective files.
+ * debian/local/ubuntu-bug: Fix quoting of the command line arguments, so
+ that several options do not end up as one big argument when being passed
+ to apport-{cli,gtk,qt}. This also repairs launchpad-integration.
+ (LP: #260242)
+
+ -- Martin Pitt Fri, 26 Sep 2008 10:32:45 +0200
+
+apport (0.115) intrepid; urgency=low
+
+ [ Matt Zimmerman ]
+ * Add apport/hookutils.py with some convenience functions for writing hook
+ scripts (work in progress)
+ * Extend ubuntu-bug to accept a path as an argument and look up the package
+ name
+ * Rename kernel_hook to kernel_crashdump (there are other kernel hooks)
+ * Change kernel crash report type to KernelCrash
+ * Fix automatix.py to not crash when automatix isn't installed (LP: #267004)
+ * Add bin/kernel_oops hook to capture a kernel oops (eg. via kerneloops)
+
+ [ Martin Pitt ]
+ * Add AUTHORS file for collecting the list of major contributors and
+ copyright holders.
+ * apport/report.py: If we do not find a bug pattern file for the binary
+ package, fall back to looking for one with the source package name.
+ * run-tests: Provide a better error message if apport/packaging_impl.py does
+ not exist.
+
+ [ Brian Murray ]
+ * apport/crashdb_impl/launchpad.py: Add regression-retracer tag to bugs
+ which seem to be a regression (duplicate, and crash happens in a later
+ version than the fix). (LP: #271876)
+
+ -- Martin Pitt Thu, 18 Sep 2008 18:18:03 -0700
+
+apport (0.114) intrepid; urgency=low
+
+ [ Fabien Tassin ]
+ * apport/ui.py: Use preferred browser when it's recognized as a
+ Mozilla browser (firefox, seamonkey, flock) or Epiphany (LP: #131350)
+
+ [ Oumar Aziz OUATTARA ]
+ * apport/crashdb.py: Add support for /etc/apport/crashdb.conf.d/*.conf crash
+ database configuration files. Document it in doc/crashdb-conf.txt.
+ * apport/ui.py: Support a new field "CrashDB" in apport reports which select
+ a non-default crash database. Document this in doc/package-hooks.txt.
+
+ [ Martin Pitt ]
+ * apport/report.py: If a hook crashes with an exception, print it to
+ stderr, for easier debugging of hooks.
+ * apport/crashdb_impl/launchpad.py: If PackageArchitecture is 'all', fall
+ back to looking at Architecture instead of not adding a
+ needs-$ARCH-retrace tag at all. This prevented signal crashes originating
+ from e. g. Python packages from being automatically retraced.
+
+ -- Martin Pitt Thu, 04 Sep 2008 10:51:24 +0200
+
+apport (0.113) intrepid; urgency=low
+
+ * apport-qt recommends update-notifier-kde instead of adept-notifier
+
+ -- Anthony Mercatante Thu, 28 Aug 2008 15:02:20 +0200
+
+apport (0.112) intrepid; urgency=low
+
+ * apport/crashdb_impl/launchpad.py: Update attachment handling to current
+ python-launchpad-bugs API, thanks Markus Korn!
+ * apport/ui.py: Use gnome-panel as indicator for a running GNOME session;
+ 'gnome-session' now calls itself x-session-manager, which isn't useful
+ to tell apart session types.
+
+ -- Martin Pitt Thu, 07 Aug 2008 17:09:49 +0200
+
+apport (0.111) intrepid; urgency=low
+
+ The "(Kernel) OOPS, I dumped it again!" release.
+
+ * apport/ui.py: Fix test_run_report_bug_unpackaged_pid() to work with the
+ installed run-tests from the package as well.
+ * apport/crashdb_impl/launchpad.py: Ignore broken LP bug tasks instead of
+ crashing on them.
+ * apport/report.py, add_proc_info(): Report the AppArmor or SELinux context
+ in a new ProcAttrCurrent field, read from /proc/pid/attr/current.
+ Document it in doc/data-format.tex. The field will not be added if the
+ proc attribute cannot be read or isn't present. Thanks to Steve Beattie
+ for the patch and the suggestion!
+ * debian/local/setup-apport-retracer: Switch to intrepid.
+ * debian/local/setup-apport-retracer: Fix installation of python-apt. Also
+ install apt, to avoid library version mismatches to python-apt.
+ * debian/apport.default: Enable apport by default again, now that we have
+ working retracers.
+ * apport/report.py, test_add_gdb_info_script(): Use bash, not dash as test
+ program for core dumping; stack trace is awkwardly bad with dash, so that
+ the test case cannot really work any more.
+ * Add package-hooks/source_linux.py: Package hook for collecting kernel
+ related information. By Matt Zimmerman, thank you! (LP: #251441)
+ * debian/local/ubuntu-bug.1: Fix documentation of -p, it specifies the
+ binary package name, not the source.
+ * apport/packaging.py: Add get_kernel_package() to return the actual Linux
+ kernel package name; useful if the user reports a bug against just
+ "linux". Implement it in backends/packaging-apt-dpkg.py.
+ * apport/ui.py: "Do what I mean" when filing a bug against "linux" and
+ report it against the actual kernel package.
+ * debian/local/ubuntu-bug: If just one argument is given, infer -p/-P from
+ the type of the argument.
+ * apport/ui.py: Drop the PackageArchitecture field for the uploaded report
+ if it is equal to Architecture. Adapt apport/crashdb_impl/launchpad.py to
+ fall back to Architecture, and mention the change in doc/data-format.tex.
+ * problem_report.py, write_mime(): Add new "skip_keys" argument to filter
+ out keys. Add test cases.
+ * apport/crashdb_impl/launchpad.py: Do not write the "Date:" field on
+ upload(), and fetch it from the bug metadata in download().
+ * apport/crashdb_impl/launchpad.py, download(): Support reading bugs with
+ the "--- " separator instead of "ProblemType: ". Launchpad doesn't create
+ bugs that way ATM, but at least we have the reading part implemented now.
+ * package-hooks/source_linux.py: Drop Uname, ProcVersion, and
+ RunningKernelVersion fields, since they are all subsumed in the
+ ProcVersionSignature field.
+ * apport/ui.py, run_report_bug(): Strip spaces from package argument.
+ * apport/ui.py, add_hooks_info(): Collect OS info first, then call the
+ package hooks, so that the linux hook actually has a chance to delete the
+ Uname field.
+ * bin/kernel_hook, test-hooks: Throw away the original kernel hook which
+ we never used (and got superseded by the proper source_linux.py package
+ hook now). Replace it with the new logic of looking for
+ /var/crash/vmcore{,.log} and turning that into an apport report.
+ * debian/apport.init: Call kernel_hook if /var/crash/vmcore exists.
+ (LP: #241322)
+ * apport/ui.py: Collect information for "ProblemType: Kernel" as well, so
+ that we run the package hook. Adapt test suite to cover this.
+ * debian/control: Bump Standards-Version (no required changes).
+ * gtk/apport-gtk.glade, qt4/apport-qt: Generalize notification of kernel
+ crash, since it now happens after a boot, not right after the BUG/OOPS.
+ But in the future we want to cover both cases.
+
+ -- Martin Pitt Tue, 05 Aug 2008 18:13:24 +0200
+
+apport (0.110) intrepid; urgency=low
+
+ * apport/chroot.py: In the test suite, copy some system binaries/libraries
+ into a fakechroot and exercise a lot of standard shell commands (cp, ln
+ -s, rm, rm -r, mkdir, echo, chmod, chown, etc.) with absolute/relative
+ paths. This reproduces the total breakage of rm'ing, chmod'ing, and
+ chown'ing absolute paths in hardy fakechroots.
+ * bin/crash-digger: Intercept exceptions when downloading crash reports for
+ duplicate checking, so that the retracer does not crash on malformed bug
+ reports. (LP: #205178)
+ * apport/packaging.py: Introduce a new function enabled() which reports
+ whether Apport should create crash reports. Signal crashes are controlled
+ by /proc/sys/kernel/core_pattern, but we need that to control whether
+ reports for Python, package, or kernel crashes are generated.
+ * backends/packaging-apt-dpkg.py: Provide implementation for
+ PackageInfo.enabled() for Debian/Ubuntu by evaluating /etc/default/apport.
+ Add various test cases for different configuration files and absent files.
+ * apport_python_hook.py: Do not create reports if Apport is disabled (in
+ /etc/default/apport). (LP: #222260)
+
+ -- Martin Pitt Sat, 17 May 2008 12:44:21 +0200
+
+apport (0.109) intrepid; urgency=low
+
+ [ Martin Pitt ]
+ * debian/local/setup-apport-retracer: Update for some changes in Hardy.
+
+ [ Loic Minier ]
+ * apport/report.py, add_proc_info(): also strip pathnames starting with
+ 'cow', 'squashmnt', and 'persistmnt' to allow apport to locate the
+ executable pathname, additionally to 'rofs' added in 0.75. This fixes
+ apport for packages installed on the read-write part of the unionfs mounts
+ and under UME which uses different names for the mount points. Proper fix
+ is to rewrite the pathnames in the kernel. (LP: #224168)
+
+ -- Martin Pitt Wed, 23 Apr 2008 14:30:03 +0200
+
+apport (0.108) hardy; urgency=low
+
+ [ Martin Pitt ]
+ * apport-{gtk,qt,cli}: Fix handling of file references added by package
+ hooks. (LP: #205163)
+ * backends/packaging_rpm.py: Fix dependency resolution of uname(*) in the
+ RPM backend. Thanks to Patryk Zawadzki! (LP: #213018)
+ * backends/packaging_rpm.py: Fix RPM platform parsing, thanks to Patryk
+ Zawadzki! (LP: #213015)
+ * po/de.po: Fix typo (missing space).
+ * debian/apport.default: Disable Apport for the final Hardy release, since
+ it is less useful in stable releases, and drains a lot of CPU and I/O
+ power on crashes. Disabling it here instead of in update-notifier/adept is
+ more discoverable and more centralized.
+
+ [ Daniel Hahler ]
+ * bin/apport-retrace: catch the same exceptions from Report.load() like
+ ui.load_report() does (LP: #211899)
+ * Fix uncaught exceptions in apport itself (LP: #215929):
+ - apport/REThread.py: check if "sys" exists in the except block of
+ REThread.run()
+ - apport_python_hook.py: check if "sys" exists in the finally block of
+ apport_excepthook
+ * cli/apport-cli: Fix UnboundLocalError in ui_present_crash, which rendered
+ apport-cli useless (for reporting crashes) (LP: #216151)
+
+ -- Martin Pitt Wed, 16 Apr 2008 12:24:32 +0200
+
+apport (0.107) hardy; urgency=low
+
+ * cli/apport-cli: Add translator comment for difficult string. (LP: #210948)
+ * Update German translations.
+ * po/Make{vars,file}: Remove the --language=python option again, since it
+ breaks extracting strings from the glade. intltool-update currently does
+ not seem to have a way to tag a file as "language python", so add an ugly
+ workaround: Create temporary .py symlinks for gtk/apport-gtk & friends,
+ and have intltool extract them.
+ * apport/ui.py: Disallow filing a bug without specifying a package or a PID.
+ Update debian/local/ubuntu-bug.1 accordingly (apport-cli manpage was
+ already correct). (LP: #210348)
+
+ -- Martin Pitt Sun, 06 Apr 2008 11:44:38 -0600
+
+apport (0.106) hardy; urgency=low
+
+ [ Martin Pitt ]
+ * apport/crashdb_impl/launchpad.py: Fix spelling mistake in p-lp-bugs API
+ (now corrected there).
+ * apport_python_hook.py: Catch IndexError for invalid sys.argv[0], too.
+ (LP: #204940)
+ * apport/ui.py: Add test_run_report_bug_unpackaged_pid() test case which
+ reports a bug against a pid which belongs to an unpackaged program. This
+ reproduces LP #203764.
+ * apport/report.py: Drop add_hooks_info() assertion on nonexisting Package
+ field, return silently instead. This conforms to the behaviour of the
+ other add_*_info() functions and avoids nasty error handling.
+ * apport/ui.py: Generate proper error message when calling with -f -p PID
+ and PID belongs to an unpackaged program. (LP: #203764).
+
+ [ Sebastien Bacher ]
+ * po/Makevars: add the --language=python xgettext option so the translations
+ template is correctly updated on build since cdbs is using intltool-update
+ directly and not the corresponding makefile target
+
+ -- Martin Pitt Tue, 01 Apr 2008 16:02:46 +0200
+
+apport (0.105) hardy; urgency=low
+
+ * apport/crashdb_impl/launchpad.py: Ignore ValueErrors when subscribing a
+ team, since these are usually due to the team already being subscribed.
+ * apport/report.py, anonymize(): Be robust against empty user names and only
+ anonymize fields which can potentially contain user specific data.
+ (LP: #195706)
+ * backends/packaging-apt-dpkg.py, get_architecture(): Return 'unknown'
+ instead of None if package architecture cannot be determined.
+ (LP: #198548)
+ * apport/ui.py, run_crash(): Intercept other IOErrors, too (such as EISDIR)
+ and print out proper error message instead of crashing. (LP: #201819)
+ * apport_python_hook.py: If the Python script has mutilated sys.argv so that
+ even sys.argv[0] does not exist any more, fall back into readlink()ing
+ /proc/pid/exe and gracefully handle the failure of that, instead of
+ crashing in the crash handler (ugh). Add test case. (LP: #198183)
+
+ -- Martin Pitt Tue, 18 Mar 2008 23:04:57 +0100
+
+apport (0.104) hardy; urgency=low
+
+ [ Martin Pitt ]
+ * apport/crashdb_impl/launchpad.py, get_source_version(): re-escape the
+ package name so that it doesn't stumble over '+' and similar characters.
+ * apport/ui.py tests: assert that ProcEnviron is also included into bug
+ reports where we do not have a PID, since having the local information is
+ interesting and important (and acceptable in terms of personal
+ information).
+ * apport/report.py: Split out method add_proc_environ() for getting
+ ProcEnviron, so that we can call it separately.
+ * apport/ui.py, run_report_bug(): Add ProcEnviron if we do not have a pid to
+ file a bug against. This way, bugs filed against packages or distro also
+ get locale information. (LP: #198514)
+ * apport/fileutils.py, mark_report_seen(): Do not crash if the file does not
+ exist any more, because it was removed underneath us. (LP: #199932)
+ * apport/ui.py, test_collect_info_exepath(): Add a tuple argument and a
+ CompressedValue to the test report. This reproduces LP #199349.
+ * apport/report.py, anonymize(): Only work on string values. (LP: #199349)
+ * apport/ui.py: If a report has a field "Ignore", entirely ignore the report
+ without even presenting an explanatory error dialog (as
+ "UnsupportableReason" does). Document this in doc/package-hooks.txt.
+ (LP: #198863)
+ * debian/control: Bump Standards-Version (no changes necessary).
+ * debian/control: Fix wrongly spelt project names (Python and GTK+). Thanks
+ to lintian's scrutiny.
+ * gtk/apport-gtk-mime.desktop.in, qt4/apport-qt-mime.desktop.in: Add a main
+ category.
+
+ [ Kees Cook ]
+ * apport/report.py: fix module license checking logic (LP: #199927).
+ - nonfree_modules: being unable to find a module should not mean the
+ module is non-free.
+ - test_module_license_evaluation: check modinfo reporting.
+ * problem_report.py: Skip atime test case if file system is mounted noatime.
+
+ -- Martin Pitt Thu, 13 Mar 2008 14:01:30 +0100
+
+apport (0.103) hardy; urgency=low
+
+ * bin/apport-unpack: Print error messages instead of crashing for problems
+ like nonexisting file names passed as arguments. (LP: #185273)
+ * backends/packaging-apt-dpkg.py, is_distro_package(): Explicitly check site
+ for "ppa", so that we do not automatically file bugs for PPA packages.
+ This works around Soyuz bug LP #140412 for the time being.
+ * apport/report.py: Add standard_title() test cases for Python crashes with
+ a custom message, and a custom message with newlines. The latter
+ reproduces LP #190947.
+ * apport/report.py, standard_title(): Do not rely on a fixed position of the
+ topmost function; use iteration and regular expression matching instead.
+ (LP: #190947)
+ * apport/ui.py, parse_argv(): Specify that --pid/-P argument must be an
+ integer, to avoid exceptions when it's not. (LP: #193494)
+ * apport/report.py: Use uname -srm, not -a, to hide the hostname. (part of
+ LP #192786); also use os.uname() instead of calling the system program.
+ * problem_report.py(): Make write() work for reports with CompressedValues.
+ Add test case.
+ * apport/ui.py: Add test case test_run_crash_anonymity() which asserts that
+ the crash dump does not contain strings which can identify the user, such
+ as the user name, login name, host name, and current directory.
+ * apport/report.py: Add method anonymize() which replaces user specific
+ strings with generic ones.
+ * apport/ui.py, thread_collect_info(): Call anonymize() on the report.
+ (LP: #192786)
+ * bin/apport-retrace: Only update a bug report with new attachments if it is
+ not a duplicate. (LP: #172792)
+ * bin/apport-retrace: Print out proper error message instead of an exception
+ if trying to do write operations to the bug tracker without specifying
+ a cookie file. (LP: #146423)
+
+ -- Martin Pitt Mon, 25 Feb 2008 17:47:13 +0100
+
+apport (0.102) hardy; urgency=low
+
+ [ Martin Pitt ]
+ * problem_report.py: Support reading reports with legacy zlib
+ compression in 'retain compressed values' mode (as used nowadays by
+ apport when reporting a crash). Add a test case, too. (LP: #129616)
+ * debian/control, debian/rules: Switch from python-support to
+ python-central, and use 'nomove' option so that apport works during
+ upgrades, too. (LP: #121341)
+ * debian/rules: Use dh_icons instead of dh_iconcache.
+ * debian/apport.init: Do not stop apport in any runlevel (LSB header).
+ * apport/ui.py, run_crash(): Catch zlib.error on invalidly compressed core
+ dumps. (LP: #176977)
+ * apport/ui.py: Give a meaningful error message instead of crashing if the
+ package for a crash report is not installed any more. (LP: #149739)
+ * apport/ui.py: Do not include ProcCmdline in bug reports, since these are
+ not ack'ed by the user and might contain sensitive data. (LP: #132800)
+ * apport/ui.py: Add various test cases for crash reports whose packages have
+ been uninstalled between the crash and the report. This reproduces
+ LP #186684.
+ * apport/ui.py, load_report(): Produce proper error message if
+ executable/interpreter path do not exist any more. (LP: #186684)
+ * cli/apport-cli: Intercept SIGPIPE when calling sensible-pager, to avoid
+ crash when quitting it prematurely. (LP: #153872)
+ * bin/apport-checkreports: Print out a list of program names/packages which
+ have a pending crash report. (LP: #145117)
+ * apport/ui.py, run_argv(): Add return code which indicates whether any
+ report has been processed.
+ * cli/apport-cli: If no pending crash reports are present, say so and refer
+ to --help. (LP: #182985)
+ * apport/ui.py: Waive check for obsolete packages if environment defines
+ $APPORT_IGNORE_OBSOLETE_PACKAGES. Document this in the apport-cli manpage.
+ (LP: #148064)
+
+ [ Daniel Hahler ]
+ * .crash file integration for KDE3 (LP: #177055)
+ - debian/apport-qt.install: install added files qt4/apport-qt-mime.desktop
+ and qt4/apport-qt-mimelnk.desktop
+ * Fixed minor warnings/errors from desktop-file-validate in
+ gtk/apport-gtk-mime.desktop.in and qt4/apport-qt.desktop.in (LP: #146957)
+
+ -- Martin Pitt Wed, 06 Feb 2008 12:55:53 +0100
+
+apport (0.101) hardy; urgency=low
+
+ * debian/control: Add python-xdg dependency to apport, since apport-cli
+ needs it. (LP: #177095)
+ * apport/ui.py: Add test case for reporting a report which has been
+ preprocessed by apport-retrace, i. e. has a stack trace, but no core dump
+ any more (reproducing LP #185084).
+ * apport/ui.py, run_crash(): Do not reject reports which have a stack trace,
+ but no core dump. (LP: #185084)
+ * apport/report.py: Fix test_add_gdb_info_load() test case, the temporary
+ executable was already deleted when gdb ran the second time.
+
+ -- Martin Pitt Wed, 23 Jan 2008 17:48:06 +0000
+
+apport (0.100) hardy; urgency=low
+
+ * bin/crash-digger: Add option --log for logging to a file, and
+ --pidfile/--stop for daemonization. Add test cases to test-crash-digger.
+ * bin/apport: Do not re-raise exceptions about failure to create the lock
+ file, to avoid crashing in the case that another apport instance tries to
+ lock at exactly the same moment. (LP: #147237)
+ * apport/report.py testsuite: Check that our methods get along with binary
+ data which turn into CompressedValue objects after loading them from a
+ file. This reproduces LP #148305.
+ * problem_report.py, CompressedValue: Add method splitlines() since we need
+ it very often. Add test case to test_compressed_values(). (LP: #148305)
+ * problem_report.py: Add test case to check that update() works and does the
+ right thing with binary values and overwriting. This confirms that
+ importing a dictionary works.
+ * debian/local/setup-apport-retracer: Update for hardy.
+ * apport/crashdb_impl/launchpad.py: get_source_info() does not work any more
+ due to HTML changes in Launchpad, and not showing the component any more
+ on /distro/+source/package. Since we do not actually need component and
+ release name any more, rename it to get_source_version(), fix the regular
+ expression to just get the version, and adapt get_fixed_version()
+ accordingly.
+ * debian/local/setup-apport-retracer: Update default apt sources to
+ http://ddebs.ubuntu.com.
+ * apport/ui.py: Robostify cleanup of forked test processes.
+ * apport/ui.py: Sleep for 0.5 seconds after creating the test process in the
+ test suite to give /proc some time to settle down.
+ * bin/apport: Drop evaluation of CORE_* environment variables and mandate
+ calling with . Drop the now obsolete
+ apport/elfcore.py. Adapt test-apport accordingly.
+ * debian/apport.init, use-local: Now call apport with %p, %s, and %c kernel
+ macros (since 2.6.24). Drop Edgy support from init script.
+
+ -- Martin Pitt Fri, 21 Dec 2007 02:18:48 +0100
+
+apport (0.99) hardy; urgency=low
+
+ * cli/apport-cli, qt4/apport-qt: Fix typo 'send' -> 'sent'.
+ (LP: #139288)
+ * apport_python_hook.py: Add user info, too. Also add check for this to the
+ test suite. (LP: #145109)
+ * apport/ui.py, run_crash(): Show a proper UI error message instead of just
+ crashing with an exception if the crash report is inaccessible for the
+ invoking user. (LP: #146464)
+ * apport/crashdb_impl/memory.py: Implement mark_retraced(),
+ get_unretraced(), and get_dup_unchecked() for completeness, and define
+ _MemoryCrashDBTest also when not running file as __main__. This makes the
+ class useful for higher-level test suites. Add test cases for the new
+ functions.
+ * apport/crashdb_impl/memory.py: Support 'dummy_data' option which adds a
+ few dummy crashes by default. This is useful for external test suites
+ which cannot otherwise pre-fill the in-memory db. Add checks that this
+ works properly.
+ * bin/crash-digger: Use self.log() more consistently, and flush stdout in
+ log(), so that we do not lose logs on output redirection.
+ * Add test-crash-digger: Initial test suite for bin/crash-digger.
+ * apport/ui.py, run_crash(): Intercept CRC errors from the info collection
+ thread, which happens on broken core dumps. (LP: #132212)
+ * cli/apport-cli, ui_present_package_error(): Fix running of dialog, so that
+ reporting package problems with apport-cli actually works. (LP: #136369)
+ * apport/ui.py, run_crash(): Intercept ENOSPC and present a proper error
+ message. (LP: #145100)
+ * gtk/apport-gtk.glade: Fix title of upload progress window to comply to
+ HIG. Thanks, Bruce Cowan. (LP: #144782)
+ * qt4/apport-qt: Fix Unicode <-> UTF-8 conversion. Thanks, Daniel Hahler!
+ (LP: #148177)
+ * apport/ui.py: Only import xdg.DesktopEntry when a .desktop file has been
+ found in the affected package. This avoids the dependency on servers with
+ just apport-cli. Thanks, Matthias Gug! (LP: #130013)
+ * apport/fileutils.py: Do not fail if there are no packages installed which
+ have one or several .desktop files. Thanks, Matthias Gug!
+
+ -- Martin Pitt Sun, 28 Oct 2007 18:32:07 -0400
+
+apport (0.98) gutsy; urgency=low
+
+ [ Martin Pitt ]
+ * debian/local/setup-apport-retracer: launchpadBugs -> launchpadbugs
+ (recently renamed Python package in python-launchpad-bugs).
+ * apport/crashdb_impl/launchpad.py, test examples: Do not duplicate to bug
+ #1, that generates a huge amount of spam. Use another test bug.
+ * apport/crashdb_impl/launchpad.py, download(): Use Bug.description_raw,
+ since LP mangles spaces in .description. Bump p-lp-bugs dependency.
+ * apport/crashdb_impl/launchpad.py, close_duplicate(): Explicitly set the
+ duplicate after removing attachments, since the new LP does not allow any
+ modification of duplicate bugs.
+ * bin/crash-digger: Only consolidate the duplicate DB when -i is given (i.
+ e. usually only on one running instance).
+
+ [ Colin Watson ]
+ * Use bugs.launchpad.net for +filebug and +bugs requests. (LP: #138090)
+
+ -- Martin Pitt Mon, 01 Oct 2007 14:35:07 +0200
+
+apport (0.97) gutsy; urgency=low
+
+ [Martin Pitt]
+ * problem_report.py: Coerce CompressedValue.__len__() to return an int to
+ work on Python 2.4, too.
+ * debian/local/setup-apport-retracer: Adapt ddeb apt source for the move
+ from ~pitti to ~ubuntu-archive.
+
+ [Markus Korn]
+ * port to new python-launchpad-bugs API.
+
+ [Daniel Holbach]
+ * small fixes to the port.
+ * debian/control: bumped python-launchpad-bugs Depends to >= 0.2.2.
+
+ -- Daniel Holbach Tue, 04 Sep 2007 11:24:28 +0200
+
+apport (0.96) gutsy; urgency=low
+
+ * Create man pages for apport-cli, apport-chroot, and dupdb-admin.
+ * apport/fileutils.py, find_file_package(): Try to resolve symlinks in the
+ directory path. (LP: #125551)
+ * apport/crashdb_impl/launchpad.py, debian/local/setup-apport-retracer: Use
+ packaging.get_system_architecture() (which is dpkg --print-architecture on
+ Debian/Ubuntu) instead of uname, so that this does the right thing on lpia.
+ * problem_report.py, write_mime(): Use base64 encoding for gzipped
+ attachments, to not screw up mail servers. Thanks to Tim Yamin for this
+ patch!
+ * apport/crashdb.py: Drop the last argument (-1), since it is the default
+ anyway and did not yet exist on Python 2.4.
+
+ -- Martin Pitt Tue, 21 Aug 2007 14:11:48 +0200
+
+apport (0.95) gutsy; urgency=low
+
+ * general-hooks/automatix.py: Remove hashbang, it's not an executable
+ script.
+ * apport/report.py: Support system-wide blacklisting:
+ /etc/apport/blacklist.d/. Add test cases.
+ * Add doc/README.blacklist: Document blacklist.d/, install it there in
+ setup.py.
+ * debian/rules: Blacklist wine-preloader, so that we ignore wine crashes
+ until an appropriate way is found to deal with them. (Point 6 of
+ apport-better-retracing spec.)
+
+ -- Martin Pitt Sat, 11 Aug 2007 18:10:54 +0200
+
+apport (0.94) gutsy; urgency=low
+
+ * doc/data-format.tex: Some updates to incorporate feedback from Gnome
+ upstream:
+ - Do not talk about "Distributions" any more, but "Operating systems".
+ Gnome is used on non-Linux OSs, too.
+ - Split "DistroRelease:" field into "OS:" and "OSRelease:".
+ - Explicitly mention that CoreDump, StackTrace etc. can also contain
+ minidump output.
+ - Increase document version to 0.2.
+ * apport/report.py, obsolete_packages(): Fix crash when apt does not know an
+ available version of a package. (LP: #128176)
+ * test-apport: Add check that apport aborts immediately if another apport
+ instance is already running. Also test that a symlink attack on the lock
+ file is not possible.
+ * bin/apport: Abort running several apport instances at the same time, by
+ lockf()'ing /var/crashes/.lock and aborting on failure. (LP: #119622)
+ * Add bin/gcc_ice_hook: Script to create an apport report for a gcc ICE
+ (internal compiler exception). Add test cases to test-hooks, and ship it
+ in the 'apport' package. (LP: #125551)
+ * run-tests: In 'local' mode, only explicitly run the apt/dpkg
+ implementation instead of backends/*, since the RPM ones don't have tests
+ yet.
+ * apport/crashdb.py: Add a second optional parameter to upload() to specify
+ an upload progress callback function. Adapt the declarations in the
+ Launchpad and Memory implementations, too.
+ * apport/crashdb_impl/launchpad.py, upload(): Pass upload progress callback
+ handler to launchpadBugs.storeblob.upload(), which supports this since
+ version 0.2~39. Bump dependency to it accordingly.
+ * apport/ui.py, file_report(): Define an upload progress callback handler,
+ pass it to the crashdb upload(), and feed ui_set_upload_progress() with
+ some actual data. (LP: #91521)
+ * problem_report.py: Remove support for reading bz2 compressed binary data.
+ That was only relevant during edgy's development cycle.
+ * apport/report.py, test_add_proc_info(): Fix determination of /bin/zgrep
+ interpreter.
+ * problem_report.py: Switch encoding of binary values from bare zlib to
+ proper gzip format, since this is much more useful when reusing the
+ compressed value. Retain support for zlib-only reports. Add test cases for
+ both old and new encodings, and adapt the other test cases for the new
+ format. Update doc/data-format.tex accordingly.
+ * problem_report.py, write(): Add new permitted 'binary' argument value
+ 'compressed', which retains gzip compressed binary values instead of
+ unpacking them transparently. Add test cases.
+ * problem_report, write_mime(): Eliminate unnecessary usage of StringIO.
+ * problem_report, write_mime(): Make function work for compressed binary
+ values. Add test case.
+ * apport/report.py, add_gdb_info(): Make function work if CoreDump is a
+ compressed value.
+ * apport/ui.py: Load crash report with keeping compressed binaries. This
+ avoids loading the entire uncompressed core dump into memory, and avoids
+ recompressing it all over again for generating the crash database upload
+ MIME document. This greatly speeds up crash reporting, too. (LP: #98562)
+
+ -- Martin Pitt Tue, 31 Jul 2007 21:32:00 +0200
+
+apport (0.93) gutsy; urgency=low
+
+ * apport/crashdb.py: Set sqlite connect timeout to two hours, instead of the
+ default 5 seconds. Previously, one retracer always crashed when the other
+ was consolidating the database.
+ * bin/dupdb-admin, command_dump(): Correctly interpret empty version strings
+ as 'fixed in unknown verrsion', not 'unfixed'.
+ * apport/crashdb_impl/launchpad.py: Fix typo in bug comment string.
+ * apport/crashdb_impl/launchpad.py: Add function get_source_info() which
+ parses out release, version, and component from
+ https://launchpad.net/$DISTRO/+source/$PACKAGE.
+ * apport/crashdb_impl/launchpad.py, get_fixed_version(): If a bug is fixed,
+ return the current version (as approximation of the version where the bug
+ was fixed), instead of an empty string (which meant 'fixed in unknown
+ version'). [apport-crash-duplicates spec]
+
+ -- Martin Pitt