1
apport (0.148) jaunty; urgency=low
4
* apport/hookutils.py: add attach_media_build to include information about
5
the build of installation media in use (i.e. in a casper live CD
7
* general-hooks/ubuntu.py: use attach_media_build (LP: #351781)
8
* bin/apportcheckresume: Use attach_file_if_exists rather than attach_file to
9
avoid spurious error messages about non-existent log files (LP: #351973)
12
* debian/local/ubuntu-bug: Drop generic passthrough of apport-{cli,gtk,kde}
13
options since this leads to too much confusion. Instead just support a
14
single argument and check whether it is a pid, a package name, a .crash
15
file, or a program path. This does the right thing when calling it with a
16
.crash file (LP: #347392) and fixes the help output (LP: #344923) Update
18
* apport/hookutils.py: Move attach_media_build() to
19
general-hooks/ubuntu.py, since it is Ubuntu specific.
20
* bin/apport-retrace: Fix KeyError crash on bugs with an ExecutablePath
21
which does not exist any more. Close the bug as invalid instead.
23
* bin/kernel_oops: Add "kernel-oops" tag. Since both bin/kernel_oops and
24
bin/apportcheckresume use the "kerneloops" bug class, it previously was
25
hard to filter out the bug reports which were real oopses. (LP: #349621)
27
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 01 Apr 2009 18:10:01 +0200
29
apport (0.147) jaunty; urgency=low
31
* bin/apportcheckresume: report the pm-suspend.log/pm-hibernate.log
33
* bin/apportcheckresume: only attempt to attach the stress log if its is
35
* bin/apportcheckresume, debian/apport.init: add detection for late
36
resume hangs, those where the user thinks the system was working.
39
-- Andy Whitcroft <apw@canonical.com> Mon, 30 Mar 2009 09:47:28 +0200
41
apport (0.146) jaunty; urgency=low
43
* apport/report.py, _generate_sigsegv_report(): Turn into a class method, so
44
that it can be used by test cases in other modules as well. Also add
46
* apport/crashdb_impl/launchpad.py: Fully enable operation with
47
staging.launchpad.net.
48
* apport/crashdb_impl/launchpad.py: Add initial test suite, performing data
49
upload, Python and SEGV bug reporting, report download, report updating,
50
tag and duplicate handling. This happens on staging.launchpad.net.
51
* apport/crashdb.py: Add new interface duplicate_of(id) to return the master
52
bug of a duplicate. Also document that close_duplicate() with "None"
53
master bug will un-duplicate the bug.
54
* apport/crashdb_impl/{launchpad,memory}.py: Implement duplicate_of() and
55
add test cases. The Launchpad test case reproduces the
56
"duplicate-of-a-duplicate" regression, which now got fixed in
57
python-launchpad-bugs bzr head.
58
* apport/ui.py, open_url(): Also consider a sesssion as "GNOME" if gconfd-2
59
is running; some variants such as UNR do not have gnome-panel; this fixes
60
using the preferred browser for them. (LP: #322386)
61
* debian/local/apport-collect: Add new option -p to explicitly specify a
62
(binary) package name instead of guesstimating it from the bug's source
63
package tasks. Document new option in debian/local/apport-collect.1.
65
* apport/crashdb.py, duplicate_db_consolidate(): Add logging about removing
66
invalidated bugs from the duplicate database, now that this actually
68
* debian/local/ubuntu-bug.1: Update for the possibility to specify a package
69
name or PID without any options. Also document the "ubuntu-bug linux"
70
special case. (LP: #348985)
71
* debian/local/ubuntu-bug.1: Add missing documentation of the case of
72
specifying a path name.
73
* backends/packaging-apt-dpkg.py: When unpacking source trees, try
74
"debian/rules setup" last, since it is the least common variant.
75
* debian/local/ubuntu-fat-chroot: Divert away
76
/usr/lib/xulrunner-1.9.1b3/xulrunner-bin. It is called on debian/rules
77
patch in xulrunner-1.9.1 and hangs eternally in the fakechroots. This is
78
only a temporary kludge, though, until the next xulrunner version lands.
79
* apport/crashdb_impl/launchpad.py: Add test case: Update a bug report which
80
got marked as a duplicate during processing. This reproduces #349407.
81
* apport/crashdb_impl/launchpad.py, update(): Intercept and ignore IOErrors
82
when changing the bug priority. This happens if a bug gets duplicated
83
underneath us. (LP: #349407)
84
* apport/crashdb.py, get_crashdb(): Print syntax errors from parsing
85
conf.d/*.conf to stderr.
86
* apport/crashdb_impl/launchpad.py: Support new CrashDB option "project"
87
which can be set to a LP project name to file bugs against that project
88
instead of the distribution. Add test case for filing crash bug against a
89
project, updating it, duplicating/unduplicating it, and determining fixed
90
version. (LP: #338835)
91
* bin/crash-digger: If apport-retrace exits with 99, consider it a transient
92
error and just stop the retracer, but don't leave the lock file behind.
93
Add appropriate test case to test-crash-digger.
94
* bin/apport-retrace: If apt update fails due to a "hash sum mismatch", exit
95
with a "transient error" code, to stop (but not break) the retracing
98
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 27 Mar 2009 17:01:08 +0100
100
apport (0.145) jaunty; urgency=low
102
* apport/crashdb_impl/launchpad.py: Fix typo in previous upload.
103
* debian/local/apport-collect: Do not crash on
104
launchpadlib.errors.HTTPError, but give a proper error message and point
105
out that this script needs "change anything" privileges. (LP: #338201)
106
* apport_python_hook.py: Fix crash for already existing reports, and make
107
behaviour equivalent to bin/apport: Silently exit for existing unseen
108
crash report, and overwrite existing seen crash report. Add test cases.
110
* general-hooks/automatix.py: Refuse to send bug reports when ultamatix is
113
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 10 Mar 2009 18:45:34 +0100
115
apport (0.144) jaunty; urgency=low
117
* apport/crashdb_impl/launchpad.py, mark_retrace_failed(): If report is
118
invalid, remove CoreDump.gz and other attachments.
119
* bin/apport-retrace: If we didn't find the ExecutablePath on the system
120
because the package is out of date, don't crash, but close the bug as
123
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 10 Mar 2009 10:45:56 +0100
125
apport (0.143) jaunty; urgency=low
127
* debian/apport.README.Debian: Document how to temporarily and permanently
128
enable crash interception.
129
* backends/packaging-apt-dpkg.py, is_distro_package(): Do not consider a
130
package a native distro one if installed version is "None". This happens
131
with some PPA packages. (LP: #252734)
132
* apport/report.py, anonymize(): Move user name anonymization into the
133
"non-root" case as well; fixes uninitialized variable. (LP: #338847)
135
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 09 Mar 2009 12:16:49 +0100
137
apport (0.142) jaunty; urgency=low
139
* apport/report.py: Do not include lsb_release's stderr in the
140
DistroRelease: output.
141
* apport/hookutils.py: Fix attach_printing():
142
- Correct spelling or "error_log".
143
- Do not call fgrep with no file names (if /etc/cups/ppd/ is empty), since
145
* apport/report.py, _gen_stacktrace_top(): Fix parsing of stacktraces
146
with some addresses missing. Add test cases. (LP: #269133)
147
* apport/ui.py, run_report_bug(): Show details of collected information and
148
give the user a chance to cancel. Previously, collected data was sent
149
directly to Launchpad. Nowadays lots of packages have hooks, so we cannot
150
guarantee any more that bug reports only have non-sensitive information.
151
(LP: #195514) This also allows the user to cancel if (s)he inadvertedly
152
clicked on "Report a problem". (LP: #279033)
153
* apport/ui.py: Fix crash in get_complete_size() for reports that are
154
constructed on the fly instead of loaded from a file (i. e. for bug
155
reports). Fixes displaying of report in apport-cli.
156
* apport/report.py: Slight robustification of test_add_gdb_info_script()
158
* debian/local/ubuntu-bug: Fix invocation with "--help". (LP: #305841)
159
* apport/ui.py, load_report(): Clearer error message if report file does not
161
* Remove redundant verbiage from test suite docstrings.
162
* apport/report.py, anonymize(): Fix crash when processing root-owned
163
reports. (LP: #338033)
164
* apport/report.py, anonymize(): Do not anonymize single-character user and
165
host names, since they create an utter mess in bug reports, and also are
167
* debian/apport.init: Also start apport if force_start=1 is given. This
168
provides a convenient method of starting apport just for a session without
169
changing the default file. Add a comment to debian/apport.default about
170
this possibility. Thanks to Milan for the suggestion and the initial
172
* backends/packaging-apt-dpkg.py, _get_mirror(): Only consider http://
173
mirrors for fetching Contents.gz. (LP: #315797)
175
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 05 Mar 2009 17:01:05 +0100
177
apport (0.141) jaunty; urgency=low
179
* apport/hookutils.py: Add cups error log to attach_printing()
181
-- Brian Murray <brian@ubuntu.com> Mon, 02 Mar 2009 10:55:53 -0800
183
apport (0.140) jaunty; urgency=low
185
* debian/python-{apport,problem-report}.install: Fix site-packages →
187
* run-tests: Only check for local packaging_impl.py if running local tests.
188
This unbreaks running tests from /usr/share/apport/testsuite/.
190
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 02 Mar 2009 11:56:59 +0100
192
apport (0.139) jaunty; urgency=low
194
* apport/report.py, anonymize(): Do not anonymize "root". (Side
196
* debian/rules: Supply --install-layout=deb to setup.py.
197
* debian/local/apport-collect: Attach new info to
198
staging.launchpad.net if $APPORT_STAGING is defined. This makes
199
testing easier. Describe in debian/local/apport-collect.1.
200
* debian/local/apport-collect: Ignore ValueErrors from
201
add_package_info(), which happens if the bug has a source package
202
task which does not have an identically named binary package name.
203
Slightly ugly, but it's nontrivial to do that in a sensible
204
manner; let's just fix the crash for now, since the focus of this
205
tool is to collect information from hooks. (LP: #334823)
206
* apport/hookutils.py, hal_dump_udi(): Filter out serial numbers.
207
(Mentioned in LP #107103)
209
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 02 Mar 2009 11:36:18 +0100
211
apport (0.138) jaunty; urgency=low
213
* apport/crashdb_impl/launchpad.py: Consider an useful stack trace
214
sufficient for automatically removing the core dump, it doesn't
215
need to be perfect. This is in accordance with not setting the
216
apport-failed-retrace tag for useful, but non-perfect retraces any
218
* apport/hookutils.py, backends/packaging_rpm.py: Convert usage of
219
md5 module (which is deprecated in 2.6) to hashlib.
220
* Replace all instances of using an exception's .message attribute
221
with str(exception), since message is deprecated in Python 2.6.
222
* apport/hookutils.py: Add attach_printing(). Thanks to Brian Murray
223
for the initial patch! (LP: #333582)
225
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 24 Feb 2009 22:24:31 +0100
227
apport (0.137) jaunty; urgency=low
229
* Set python-version to all, include symlinks in the package.
231
-- Matthias Klose <doko@ubuntu.com> Tue, 24 Feb 2009 21:22:36 +0100
233
apport (0.136) jaunty; urgency=low
236
* bin/apportcheckresume: remove originator in suspend/hibernate/resume
237
reporting. This was intended for debugging only and is now redundant.
238
* bin/apportcheckresume, apport/report.py: when collecting resume failures
239
in very early boot hal may not be running and we thus unable to obtain
240
the machine type information. Move title generation to the reporting
244
* debian/local/apport-collect: Add user environment information, too
245
(LANG, PATH, SHELL). (LP: #332578)
247
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 24 Feb 2009 14:25:21 +0100
249
apport (0.135) jaunty; urgency=low
251
* problem_report.py, test_write_mime_text(): Add test cases for
252
single-line and two-line UTF-8 values, single-line and two-line
253
Unicode values and a single-line LF-terminated value. Fix handling
255
* problem_report.py, test_write(): Add test cases for single-line
256
and two-line UTF-8 and Unicode values, and fix handling of these
258
* debian/local/apport-collect: Collect package, OS, and user
259
information as well. (LP: #332578)
260
* package-hooks/source_apport.py: Robustify by using hookutils, and
261
avoid stat errors if /var/crash/* does not exist.
262
* test-hooks: Update dodgy test for uninstalled package,
263
libdb4.3-tcl is not available in Jaunty any more.
265
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 23 Feb 2009 13:14:24 +0100
267
apport (0.134) jaunty; urgency=low
269
* debian/local/apport-collect: Do not collect information for closed
270
tasks. Thanks for Brian Murray for the initial patch! (LP: #331839)
271
* apport/crashdb_impl/launchpad.py, download(): Download
272
DpkgTerminalLog.txt attachment as well.
273
* apport/report.py: If downloading a nonexisting bug pattern file
274
name succeeds and returns a HTML snippet with "404 Not Found",
275
consider this as failure. This repairs falling back to source
276
package names. (LP: #328751)
277
* apport/hookutils.py: Replace tabs with spaces.
279
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 20 Feb 2009 11:22:15 +0100
281
apport (0.133) jaunty; urgency=low
284
* apport/hookutils.py: define and include a machine type from the hardware
285
information in the report, using HAL information where available.
286
* bin/apportcheckresume: include the machine type in the suspend/hibernate
287
report title. They are generally machine specific.
289
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 19 Feb 2009 17:49:03 +0100
291
apport (0.132) jaunty; urgency=low
294
* Add debian/local/apport-collect: Download a Launchpad bug report,
295
get its source package, check if it has apport hooks, and if so,
296
run and upload them. Add manpage, too. (LP: #124338)
297
* debian/control: Add Suggests: python-launchpadlib; this is only
298
needed by apport-collect, thus we don't need to pull that into
299
every default installation; if it's not installed apport-collect
300
will detect and point this out.
301
* debian/control: Add ${misc:Depends} dependencies.
304
* Set window icon in apport-qt
306
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 19 Feb 2009 13:50:34 +0100
308
apport (0.131) jaunty; urgency=low
311
* bin/apportcheckresume, bin/kernel_oops, cli/apport-cli, gtk/apport-gtk,
312
gtk/apport-gtk.glade, qt4/apport-qt: generalised the KernelOops
313
dialog and handling to allow suspend and hibernate failures present
314
more accurate reasons for the report. Also commonises all messages
315
in the three implementations to simplify internationalisation.
318
* po/Makefile: Fix merge-po rule to actually work again.
319
* cli/apport-cli, qt4/apport-qt: Unify string with apport-gtk.
320
* apport/ui.py: Drop some bogus translatable strings.
321
* Update German translations.
323
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 16 Feb 2009 19:31:41 +0100
325
apport (0.130) jaunty; urgency=low
328
* bin/kernel_crashdump: Don't crash if vmcore.log does not exist.
329
* crashdb_impl/launchpad.py: Tag bugs with the architecture they are
331
* bin/crash-digger: Revert catching "database is locked" errors
332
during consolidation, since it just hides more fundamental errors.
333
* apport/crashdb_impl/memory.py: Improve docstrings of test suite.
334
* bin/apport-retrace: Do not try to install -dbgsym packages with
335
nonmatching versions, unless --unpack-only is used. Thanks to
336
hggdh for the initial patch! (LP: #309208)
339
* bin/apportcheckresume: modify the oops title and thereby the launchpad
340
bug title to say suspend or hibernate.
341
* bin/apportcheckresume: modify the tags to bin/apportcheckresume:
342
modify the oops title and thereby the launchpad be resume+suspend or
343
resume+hibernate as appropriate.
344
* bin/apportcheckresume: include any non-free modules in the bug title.
346
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 12 Feb 2009 22:09:35 +0100
348
apport (0.129) jaunty; urgency=low
350
* bin/apport-retrace: Log broken reports.
351
* bin/apport-retrace: Do not mark bugs as invalid after they are
352
already marked as a duplicate, since that does not work in
354
* debian/local/ubuntu-fat-chroot: Symlink /target -> /, to work
355
for crashes which appear in /target during installation.
356
* bin/apport: Move argv length/usage help before lock check, so that
357
it works if the user cannot lock /var/crash/.lock. Thanks to Kees
359
* doc/package-hooks.txt: Point out apport.hookutils.
360
* apport/ui.py: Check environment variable APPORT_REPORT_THIRDPARTY
361
in addition to the 'thirdparty' configuration file option for
362
overriding the "genuine distro package" check. Thanks to Oumar
364
* apport/crashdb_impl/launchpad.py: In third-party mode, report bugs
365
against Launchpad projects. Thanks to Oumar
366
Aziz OUATTARA for his branch! (LP: #213454)
367
* bin/apportcheckresume: Include /var/lib/pm-utils/stress.log, too.
368
Thanks to Andy Whitcroft for the initial patch, rewrote to use
370
* apport/crashdb.py, init_duplicate_db(): Run an integrity check and
371
raise exception if it fails, to avoid running the retracers on a
372
corrupt duplicate db. Add test case to
373
apport/crashdb_impl/memory.py.
374
* bin/crash-digger: Create a backup of the duplicates database right
375
after initializing it (which verifies integrity).
376
* dupdb-admin: Add new command "consolidate".
377
* apport/crashdb_impl/launchpad.py: Request bug lists with batch
378
size 300, for slight speedup of consolidation.
379
* apport/crashdb.py, duplicate_db_consolidate(): Warn about a bug
380
which is not yet fixed, but does not appear in get_unfixed(). In
381
Launchpad, this means that the bug does not have the
382
'apport-crash' tag any more; if there are many, those would be a
383
huge time/bandwidth waste.
385
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 26 Jan 2009 16:04:16 +0100
387
apport (0.128) jaunty; urgency=low
389
* apport/ui.py: Introduce new configuration option "thirdparty" and
390
ignore the is_distro_package() check if it is set to true.
391
* bin/apport-retrace: Call Cache.open() after Cache.update().
392
* bin/apport-retrace: If downloading a report fails (e. g. the
393
description was invalidly modified), mark the bug as invalid with
394
a proper explanation instead of crashing, unless we are in
395
"stdout" or "output file" mode.
396
* apport/crashdb_impl/launchpad.py: Apply some heuristics to attempt
397
recovering broken descriptions as in LP #315728 (intermediate
398
blank lines, and non-apport data append).
400
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 19 Jan 2009 17:49:55 +0100
402
apport (0.127) jaunty; urgency=low
404
* bin/apportcheckresume, debian/apport.init: integrate with pm-utils to
405
detect suspend/resume failures. Thanks to Steve Conklin and Andy
406
Whitcroft. LP: #316419.
408
-- Steve Langasek <steve.langasek@ubuntu.com> Tue, 13 Jan 2009 12:54:12 -0800
410
apport (0.126) jaunty; urgency=low
412
* bin/apport-chroot: If --auth is specified in "login" mode, symlink
413
the file into /tmp/auth in the fakechroot. This makes it much
414
easier to interactively debug retracing.
415
* bin/apport-retrace: Exit with zero for bugs which do not have a
416
core dump, so that it does not completely stop the retracers.
418
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 09 Jan 2009 22:49:48 +0100
420
apport (0.125) jaunty; urgency=low
422
* bin/apport-chroot: Exit with apport-retraces' exit status, to
423
propagate errors upwards to crash-digger.
424
* bin/apport-retrace: Do not put outdated -dbgsym comments into the
426
* Rewrite bin/crash-digger to become much more robust and easier for
427
retracer maintainers:
428
- Now designed around cron-based maintenance: start, process all
429
pending bugs, exit. This makes memory leaks irrelevant, and gets
430
rid of all the logging, daemonizing, and looping code.
431
- Adapt stdout/stderr reporting to be suitable for cron and
432
redirecting stdout to a log file.
433
- Use lock files to avoid overlapping instances and avoid damaging
434
bugs with broken retracers after crash-digger failed.
435
- Handle chroot upgrading, so that this does not need separate
437
- Drop old -i option, replace with -D/--dupcheck which is a mode
438
which *only* checks duplicates of Python crashes (no fakechroot
440
- Mark bug as retraced after apport-chroot retrace finished
441
successfully; the process is robust enough now to avoid enless
442
loops even if retracing fails.
443
- Adapt test-crash-digger accordingly.
444
- UbuntuSpec:apport-retracer-maintenance
446
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 09 Jan 2009 12:14:44 +0100
448
apport (0.124) jaunty; urgency=low
450
* debian/local/ubuntu-fat-chroot: Divert touch to touch.real and
451
wrap it into a shell wrapper which ignores failures. Some packages
452
use "touch -m" which fails with EPERM on directories under
453
fakechroot. Also disable gconf-schemas and polkit-auth, since they
454
do not work in fakechroots.
455
* apport/crashdb_impl/launchpad.py: Allow using staging for testing.
456
* apport/crashdb.py, mark_retrace_failed(): Add new optional
457
argument "invalid_msg", intended for crashes which cannot be
458
retraced properly (e. g. due to outdated packages). Implement this
459
in apport/crashdb_impl/launchpad.py.
460
* bin/apport-retrace: If we do not have an usable stack trace, and
461
encounter outdated package versions in the crash, close the report
462
as invalid with an appropriate comment. (LP: #308917)
463
* bin/apport-retrace: Update the apt cache before looking for, and
464
installing packages. (Part of UbuntuSpec:apport-retracer-maintenance)
465
* debian/apport.default: Enable by default again for Jaunty. Let the
468
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 08 Jan 2009 14:05:07 +0100
470
apport (0.123) jaunty; urgency=low
472
* bin/apport: Do not write the report into the log file if opening
473
the report file failed; just log the error.
474
* bin/apport: Remove a previously seen report file, so that the
475
following creation with O_EXCL actually works.
476
* apport/report.py, add_proc_info(): Only try to attach
477
/proc/pid/attr/current if we are root. This works around Python
478
segfaulting regression when encountering EPERM on read() (see
480
* apport/report.py testsuite: Use "isofs" for module license check
481
testing instead of "usbcore", since the latter is more likely to
482
get built into the kernel.
483
* apport/report.py, add_proc_environ(): Use "PATH=(...)" instead of
484
"PATH: ..." notation, to be consistent with other environment
485
variables. Unbreaks the apport test suite.
487
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 05 Jan 2009 18:05:38 +0100
489
apport (0.122) jaunty; urgency=low
491
* apport/crashdb_impl/launchpad.py: Support extra tags in the
492
report's "Tags:" field, and set them in the Launchpad bug.
493
Document this in doc/data-format.tex. Thanks to Steve Conklin for
496
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 05 Jan 2009 10:06:49 +0100
498
apport (0.121) jaunty; urgency=low
500
* debian/apport.init: Drop long obsolete setting of
501
/proc/sys/kernel/crashdump-size.
502
* debian/apport.init: Make restart actually work if the default file was
503
changed. (LP: #292402)
504
* apport/report.py, add_proc_environ(): Do not include verbatim $PATH, only
505
classify it as "default" (does not appear at all then), "custom,
506
user" (/home or /tmp in $PATH), or "custom, no user". Add appropriate test
507
case. Update the data format documentation accordingly. (LP: #245263)
509
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 08 Dec 2008 19:37:53 -0800
511
apport (0.120) jaunty; urgency=low
513
* man/apport-cli.1: Fix "sytem" typo. (LP: #288977)
514
* apport/fileutils.py: Add new function get_options() to read
515
~/.config/apport/settings. In the future, the apport-ignore.xml file will
516
move to this directory, too. Based on idea and initial patch from Nikolay
518
* bin/apport: Check config option "unpackaged", and if it is set to True,
519
create a crash dump for unpackaged programs, too. Bump apport package
520
dependency to python-apport for this.
521
* apport/ui.py: Fix regression introduced in in 0.115 for checking
522
successful package name determination.
523
* apport/report.py: Some distro portability fixes in the test suite, thanks
525
* Add OpenSUSE spec file, init script, and RPM packaging backend. Thanks to
527
* apport_python_hook.py, bin/apport: Create files in a race free way to
528
avoid symlink attacks. Thanks to Sebastian Kramer <krahmer@novell.com> for
530
* problem_report.py test suite: Create debugging leftover which left /tmp/r
532
* apport/crashdb_impl/memory.py: Use example.com, not bug.net, since the
533
latter actually exists now.
534
* apport/hookutils.py: Add attach_network(), attach_alsa(), and
535
attach_hardware(), and add proper docstrings. Thanks to Matt Zimmerman for
537
* source_linux.py hook: Use above tool functions, which greatly simplifies
539
* apport/report.py: Also print exceptions from binary and source package
540
hooks, not just from common ones.
541
* apport/report.py, add_hooks_info(): Do not print an error if a source
542
package hook does not exist.
543
* apport/hookutils.py, _parse_gconf_schema(): Correctly handle bool values.
545
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 26 Nov 2008 19:24:23 +0100
547
apport (0.119) intrepid; urgency=low
549
* debian/apport.default: Disable Apport by default for the final release.
551
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 23 Oct 2008 09:34:41 +0200
553
apport (0.118) intrepid; urgency=low
555
* apport/hookutils.py: add attach_gconf() function to add non-default gconf
558
-- Matt Zimmerman <mdz@ubuntu.com> Mon, 13 Oct 2008 20:10:33 +0100
560
apport (0.117) intrepid; urgency=low
562
* backends/packaging-apt-dpkg.py, is_distro_package(): Fix crash if
563
apt.Cache()[pkg].origins is None. (LP: #279353)
564
* bin/apport: Log that we are ignoring SIGABRT, since it is a common cause
566
* test-apport, create_test_process(): Fix race condition: wait until the
567
child process has fully execve()ed, to avoid coredumping it while it is
568
still running as test-apport process.
569
* apport/crashdb_impl/launchpad.py, update(): Set source package of a bug if
570
the reporter removed it and the task is against 'Ubuntu'. (LP: #269045)
572
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 07 Oct 2008 16:38:06 +0200
574
apport (0.116) intrepid; urgency=low
576
* Update AUTHORS and debian/copyright, Michael and Troy released their
577
copyright to Canonical. Properly attribute them as authors in the
579
* debian/local/ubuntu-bug: Fix quoting of the command line arguments, so
580
that several options do not end up as one big argument when being passed
581
to apport-{cli,gtk,qt}. This also repairs launchpad-integration.
584
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 26 Sep 2008 10:32:45 +0200
586
apport (0.115) intrepid; urgency=low
589
* Add apport/hookutils.py with some convenience functions for writing hook
590
scripts (work in progress)
591
* Extend ubuntu-bug to accept a path as an argument and look up the package
593
* Rename kernel_hook to kernel_crashdump (there are other kernel hooks)
594
* Change kernel crash report type to KernelCrash
595
* Fix automatix.py to not crash when automatix isn't installed (LP: #267004)
596
* Add bin/kernel_oops hook to capture a kernel oops (eg. via kerneloops)
599
* Add AUTHORS file for collecting the list of major contributors and
601
* apport/report.py: If we do not find a bug pattern file for the binary
602
package, fall back to looking for one with the source package name.
603
* run-tests: Provide a better error message if apport/packaging_impl.py does
607
* apport/crashdb_impl/launchpad.py: Add regression-retracer tag to bugs
608
which seem to be a regression (duplicate, and crash happens in a later
609
version than the fix). (LP: #271876)
611
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 18 Sep 2008 18:18:03 -0700
613
apport (0.114) intrepid; urgency=low
616
* apport/ui.py: Use preferred browser when it's recognized as a
617
Mozilla browser (firefox, seamonkey, flock) or Epiphany (LP: #131350)
619
[ Oumar Aziz OUATTARA ]
620
* apport/crashdb.py: Add support for /etc/apport/crashdb.conf.d/*.conf crash
621
database configuration files. Document it in doc/crashdb-conf.txt.
622
* apport/ui.py: Support a new field "CrashDB" in apport reports which select
623
a non-default crash database. Document this in doc/package-hooks.txt.
626
* apport/report.py: If a hook crashes with an exception, print it to
627
stderr, for easier debugging of hooks.
628
* apport/crashdb_impl/launchpad.py: If PackageArchitecture is 'all', fall
629
back to looking at Architecture instead of not adding a
630
needs-$ARCH-retrace tag at all. This prevented signal crashes originating
631
from e. g. Python packages from being automatically retraced.
633
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 04 Sep 2008 10:51:24 +0200
635
apport (0.113) intrepid; urgency=low
637
* apport-qt recommends update-notifier-kde instead of adept-notifier
639
-- Anthony Mercatante <tonio@ubuntu.com> Thu, 28 Aug 2008 15:02:20 +0200
641
apport (0.112) intrepid; urgency=low
643
* apport/crashdb_impl/launchpad.py: Update attachment handling to current
644
python-launchpad-bugs API, thanks Markus Korn!
645
* apport/ui.py: Use gnome-panel as indicator for a running GNOME session;
646
'gnome-session' now calls itself x-session-manager, which isn't useful
647
to tell apart session types.
649
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 07 Aug 2008 17:09:49 +0200
651
apport (0.111) intrepid; urgency=low
653
The "(Kernel) OOPS, I dumped it again!" release.
655
* apport/ui.py: Fix test_run_report_bug_unpackaged_pid() to work with the
656
installed run-tests from the package as well.
657
* apport/crashdb_impl/launchpad.py: Ignore broken LP bug tasks instead of
659
* apport/report.py, add_proc_info(): Report the AppArmor or SELinux context
660
in a new ProcAttrCurrent field, read from /proc/pid/attr/current.
661
Document it in doc/data-format.tex. The field will not be added if the
662
proc attribute cannot be read or isn't present. Thanks to Steve Beattie
663
for the patch and the suggestion!
664
* debian/local/setup-apport-retracer: Switch to intrepid.
665
* debian/local/setup-apport-retracer: Fix installation of python-apt. Also
666
install apt, to avoid library version mismatches to python-apt.
667
* debian/apport.default: Enable apport by default again, now that we have
669
* apport/report.py, test_add_gdb_info_script(): Use bash, not dash as test
670
program for core dumping; stack trace is awkwardly bad with dash, so that
671
the test case cannot really work any more.
672
* Add package-hooks/source_linux.py: Package hook for collecting kernel
673
related information. By Matt Zimmerman, thank you! (LP: #251441)
674
* debian/local/ubuntu-bug.1: Fix documentation of -p, it specifies the
675
binary package name, not the source.
676
* apport/packaging.py: Add get_kernel_package() to return the actual Linux
677
kernel package name; useful if the user reports a bug against just
678
"linux". Implement it in backends/packaging-apt-dpkg.py.
679
* apport/ui.py: "Do what I mean" when filing a bug against "linux" and
680
report it against the actual kernel package.
681
* debian/local/ubuntu-bug: If just one argument is given, infer -p/-P from
682
the type of the argument.
683
* apport/ui.py: Drop the PackageArchitecture field for the uploaded report
684
if it is equal to Architecture. Adapt apport/crashdb_impl/launchpad.py to
685
fall back to Architecture, and mention the change in doc/data-format.tex.
686
* problem_report.py, write_mime(): Add new "skip_keys" argument to filter
687
out keys. Add test cases.
688
* apport/crashdb_impl/launchpad.py: Do not write the "Date:" field on
689
upload(), and fetch it from the bug metadata in download().
690
* apport/crashdb_impl/launchpad.py, download(): Support reading bugs with
691
the "--- " separator instead of "ProblemType: ". Launchpad doesn't create
692
bugs that way ATM, but at least we have the reading part implemented now.
693
* package-hooks/source_linux.py: Drop Uname, ProcVersion, and
694
RunningKernelVersion fields, since they are all subsumed in the
695
ProcVersionSignature field.
696
* apport/ui.py, run_report_bug(): Strip spaces from package argument.
697
* apport/ui.py, add_hooks_info(): Collect OS info first, then call the
698
package hooks, so that the linux hook actually has a chance to delete the
700
* bin/kernel_hook, test-hooks: Throw away the original kernel hook which
701
we never used (and got superseded by the proper source_linux.py package
702
hook now). Replace it with the new logic of looking for
703
/var/crash/vmcore{,.log} and turning that into an apport report.
704
* debian/apport.init: Call kernel_hook if /var/crash/vmcore exists.
706
* apport/ui.py: Collect information for "ProblemType: Kernel" as well, so
707
that we run the package hook. Adapt test suite to cover this.
708
* debian/control: Bump Standards-Version (no required changes).
709
* gtk/apport-gtk.glade, qt4/apport-qt: Generalize notification of kernel
710
crash, since it now happens after a boot, not right after the BUG/OOPS.
711
But in the future we want to cover both cases.
713
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 05 Aug 2008 18:13:24 +0200
715
apport (0.110) intrepid; urgency=low
717
* apport/chroot.py: In the test suite, copy some system binaries/libraries
718
into a fakechroot and exercise a lot of standard shell commands (cp, ln
719
-s, rm, rm -r, mkdir, echo, chmod, chown, etc.) with absolute/relative
720
paths. This reproduces the total breakage of rm'ing, chmod'ing, and
721
chown'ing absolute paths in hardy fakechroots.
722
* bin/crash-digger: Intercept exceptions when downloading crash reports for
723
duplicate checking, so that the retracer does not crash on malformed bug
724
reports. (LP: #205178)
725
* apport/packaging.py: Introduce a new function enabled() which reports
726
whether Apport should create crash reports. Signal crashes are controlled
727
by /proc/sys/kernel/core_pattern, but we need that to control whether
728
reports for Python, package, or kernel crashes are generated.
729
* backends/packaging-apt-dpkg.py: Provide implementation for
730
PackageInfo.enabled() for Debian/Ubuntu by evaluating /etc/default/apport.
731
Add various test cases for different configuration files and absent files.
732
* apport_python_hook.py: Do not create reports if Apport is disabled (in
733
/etc/default/apport). (LP: #222260)
735
-- Martin Pitt <martin.pitt@ubuntu.com> Sat, 17 May 2008 12:44:21 +0200
737
apport (0.109) intrepid; urgency=low
740
* debian/local/setup-apport-retracer: Update for some changes in Hardy.
743
* apport/report.py, add_proc_info(): also strip pathnames starting with
744
'cow', 'squashmnt', and 'persistmnt' to allow apport to locate the
745
executable pathname, additionally to 'rofs' added in 0.75. This fixes
746
apport for packages installed on the read-write part of the unionfs mounts
747
and under UME which uses different names for the mount points. Proper fix
748
is to rewrite the pathnames in the kernel. (LP: #224168)
750
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 23 Apr 2008 14:30:03 +0200
752
apport (0.108) hardy; urgency=low
755
* apport-{gtk,qt,cli}: Fix handling of file references added by package
757
* backends/packaging_rpm.py: Fix dependency resolution of uname(*) in the
758
RPM backend. Thanks to Patryk Zawadzki! (LP: #213018)
759
* backends/packaging_rpm.py: Fix RPM platform parsing, thanks to Patryk
760
Zawadzki! (LP: #213015)
761
* po/de.po: Fix typo (missing space).
762
* debian/apport.default: Disable Apport for the final Hardy release, since
763
it is less useful in stable releases, and drains a lot of CPU and I/O
764
power on crashes. Disabling it here instead of in update-notifier/adept is
765
more discoverable and more centralized.
768
* bin/apport-retrace: catch the same exceptions from Report.load() like
769
ui.load_report() does (LP: #211899)
770
* Fix uncaught exceptions in apport itself (LP: #215929):
771
- apport/REThread.py: check if "sys" exists in the except block of
773
- apport_python_hook.py: check if "sys" exists in the finally block of
775
* cli/apport-cli: Fix UnboundLocalError in ui_present_crash, which rendered
776
apport-cli useless (for reporting crashes) (LP: #216151)
778
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 16 Apr 2008 12:24:32 +0200
780
apport (0.107) hardy; urgency=low
782
* cli/apport-cli: Add translator comment for difficult string. (LP: #210948)
783
* Update German translations.
784
* po/Make{vars,file}: Remove the --language=python option again, since it
785
breaks extracting strings from the glade. intltool-update currently does
786
not seem to have a way to tag a file as "language python", so add an ugly
787
workaround: Create temporary .py symlinks for gtk/apport-gtk & friends,
788
and have intltool extract them.
789
* apport/ui.py: Disallow filing a bug without specifying a package or a PID.
790
Update debian/local/ubuntu-bug.1 accordingly (apport-cli manpage was
791
already correct). (LP: #210348)
793
-- Martin Pitt <martin.pitt@ubuntu.com> Sun, 06 Apr 2008 11:44:38 -0600
795
apport (0.106) hardy; urgency=low
798
* apport/crashdb_impl/launchpad.py: Fix spelling mistake in p-lp-bugs API
799
(now corrected there).
800
* apport_python_hook.py: Catch IndexError for invalid sys.argv[0], too.
802
* apport/ui.py: Add test_run_report_bug_unpackaged_pid() test case which
803
reports a bug against a pid which belongs to an unpackaged program. This
804
reproduces LP #203764.
805
* apport/report.py: Drop add_hooks_info() assertion on nonexisting Package
806
field, return silently instead. This conforms to the behaviour of the
807
other add_*_info() functions and avoids nasty error handling.
808
* apport/ui.py: Generate proper error message when calling with -f -p PID
809
and PID belongs to an unpackaged program. (LP: #203764).
812
* po/Makevars: add the --language=python xgettext option so the translations
813
template is correctly updated on build since cdbs is using intltool-update
814
directly and not the corresponding makefile target
816
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 01 Apr 2008 16:02:46 +0200
818
apport (0.105) hardy; urgency=low
820
* apport/crashdb_impl/launchpad.py: Ignore ValueErrors when subscribing a
821
team, since these are usually due to the team already being subscribed.
822
* apport/report.py, anonymize(): Be robust against empty user names and only
823
anonymize fields which can potentially contain user specific data.
825
* backends/packaging-apt-dpkg.py, get_architecture(): Return 'unknown'
826
instead of None if package architecture cannot be determined.
828
* apport/ui.py, run_crash(): Intercept other IOErrors, too (such as EISDIR)
829
and print out proper error message instead of crashing. (LP: #201819)
830
* apport_python_hook.py: If the Python script has mutilated sys.argv so that
831
even sys.argv[0] does not exist any more, fall back into readlink()ing
832
/proc/pid/exe and gracefully handle the failure of that, instead of
833
crashing in the crash handler (ugh). Add test case. (LP: #198183)
835
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 18 Mar 2008 23:04:57 +0100
837
apport (0.104) hardy; urgency=low
840
* apport/crashdb_impl/launchpad.py, get_source_version(): re-escape the
841
package name so that it doesn't stumble over '+' and similar characters.
842
* apport/ui.py tests: assert that ProcEnviron is also included into bug
843
reports where we do not have a PID, since having the local information is
844
interesting and important (and acceptable in terms of personal
846
* apport/report.py: Split out method add_proc_environ() for getting
847
ProcEnviron, so that we can call it separately.
848
* apport/ui.py, run_report_bug(): Add ProcEnviron if we do not have a pid to
849
file a bug against. This way, bugs filed against packages or distro also
850
get locale information. (LP: #198514)
851
* apport/fileutils.py, mark_report_seen(): Do not crash if the file does not
852
exist any more, because it was removed underneath us. (LP: #199932)
853
* apport/ui.py, test_collect_info_exepath(): Add a tuple argument and a
854
CompressedValue to the test report. This reproduces LP #199349.
855
* apport/report.py, anonymize(): Only work on string values. (LP: #199349)
856
* apport/ui.py: If a report has a field "Ignore", entirely ignore the report
857
without even presenting an explanatory error dialog (as
858
"UnsupportableReason" does). Document this in doc/package-hooks.txt.
860
* debian/control: Bump Standards-Version (no changes necessary).
861
* debian/control: Fix wrongly spelt project names (Python and GTK+). Thanks
862
to lintian's scrutiny.
863
* gtk/apport-gtk-mime.desktop.in, qt4/apport-qt-mime.desktop.in: Add a main
867
* apport/report.py: fix module license checking logic (LP: #199927).
868
- nonfree_modules: being unable to find a module should not mean the
870
- test_module_license_evaluation: check modinfo reporting.
871
* problem_report.py: Skip atime test case if file system is mounted noatime.
873
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 13 Mar 2008 14:01:30 +0100
875
apport (0.103) hardy; urgency=low
877
* bin/apport-unpack: Print error messages instead of crashing for problems
878
like nonexisting file names passed as arguments. (LP: #185273)
879
* backends/packaging-apt-dpkg.py, is_distro_package(): Explicitly check site
880
for "ppa", so that we do not automatically file bugs for PPA packages.
881
This works around Soyuz bug LP #140412 for the time being.
882
* apport/report.py: Add standard_title() test cases for Python crashes with
883
a custom message, and a custom message with newlines. The latter
884
reproduces LP #190947.
885
* apport/report.py, standard_title(): Do not rely on a fixed position of the
886
topmost function; use iteration and regular expression matching instead.
888
* apport/ui.py, parse_argv(): Specify that --pid/-P argument must be an
889
integer, to avoid exceptions when it's not. (LP: #193494)
890
* apport/report.py: Use uname -srm, not -a, to hide the hostname. (part of
891
LP #192786); also use os.uname() instead of calling the system program.
892
* problem_report.py(): Make write() work for reports with CompressedValues.
894
* apport/ui.py: Add test case test_run_crash_anonymity() which asserts that
895
the crash dump does not contain strings which can identify the user, such
896
as the user name, login name, host name, and current directory.
897
* apport/report.py: Add method anonymize() which replaces user specific
898
strings with generic ones.
899
* apport/ui.py, thread_collect_info(): Call anonymize() on the report.
901
* bin/apport-retrace: Only update a bug report with new attachments if it is
902
not a duplicate. (LP: #172792)
903
* bin/apport-retrace: Print out proper error message instead of an exception
904
if trying to do write operations to the bug tracker without specifying
905
a cookie file. (LP: #146423)
907
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 25 Feb 2008 17:47:13 +0100
909
apport (0.102) hardy; urgency=low
912
* problem_report.py: Support reading reports with legacy zlib
913
compression in 'retain compressed values' mode (as used nowadays by
914
apport when reporting a crash). Add a test case, too. (LP: #129616)
915
* debian/control, debian/rules: Switch from python-support to
916
python-central, and use 'nomove' option so that apport works during
917
upgrades, too. (LP: #121341)
918
* debian/rules: Use dh_icons instead of dh_iconcache.
919
* debian/apport.init: Do not stop apport in any runlevel (LSB header).
920
* apport/ui.py, run_crash(): Catch zlib.error on invalidly compressed core
922
* apport/ui.py: Give a meaningful error message instead of crashing if the
923
package for a crash report is not installed any more. (LP: #149739)
924
* apport/ui.py: Do not include ProcCmdline in bug reports, since these are
925
not ack'ed by the user and might contain sensitive data. (LP: #132800)
926
* apport/ui.py: Add various test cases for crash reports whose packages have
927
been uninstalled between the crash and the report. This reproduces
929
* apport/ui.py, load_report(): Produce proper error message if
930
executable/interpreter path do not exist any more. (LP: #186684)
931
* cli/apport-cli: Intercept SIGPIPE when calling sensible-pager, to avoid
932
crash when quitting it prematurely. (LP: #153872)
933
* bin/apport-checkreports: Print out a list of program names/packages which
934
have a pending crash report. (LP: #145117)
935
* apport/ui.py, run_argv(): Add return code which indicates whether any
936
report has been processed.
937
* cli/apport-cli: If no pending crash reports are present, say so and refer
938
to --help. (LP: #182985)
939
* apport/ui.py: Waive check for obsolete packages if environment defines
940
$APPORT_IGNORE_OBSOLETE_PACKAGES. Document this in the apport-cli manpage.
944
* .crash file integration for KDE3 (LP: #177055)
945
- debian/apport-qt.install: install added files qt4/apport-qt-mime.desktop
946
and qt4/apport-qt-mimelnk.desktop
947
* Fixed minor warnings/errors from desktop-file-validate in
948
gtk/apport-gtk-mime.desktop.in and qt4/apport-qt.desktop.in (LP: #146957)
950
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 06 Feb 2008 12:55:53 +0100
952
apport (0.101) hardy; urgency=low
954
* debian/control: Add python-xdg dependency to apport, since apport-cli
955
needs it. (LP: #177095)
956
* apport/ui.py: Add test case for reporting a report which has been
957
preprocessed by apport-retrace, i. e. has a stack trace, but no core dump
958
any more (reproducing LP #185084).
959
* apport/ui.py, run_crash(): Do not reject reports which have a stack trace,
960
but no core dump. (LP: #185084)
961
* apport/report.py: Fix test_add_gdb_info_load() test case, the temporary
962
executable was already deleted when gdb ran the second time.
964
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 23 Jan 2008 17:48:06 +0000
966
apport (0.100) hardy; urgency=low
968
* bin/crash-digger: Add option --log for logging to a file, and
969
--pidfile/--stop for daemonization. Add test cases to test-crash-digger.
970
* bin/apport: Do not re-raise exceptions about failure to create the lock
971
file, to avoid crashing in the case that another apport instance tries to
972
lock at exactly the same moment. (LP: #147237)
973
* apport/report.py testsuite: Check that our methods get along with binary
974
data which turn into CompressedValue objects after loading them from a
975
file. This reproduces LP #148305.
976
* problem_report.py, CompressedValue: Add method splitlines() since we need
977
it very often. Add test case to test_compressed_values(). (LP: #148305)
978
* problem_report.py: Add test case to check that update() works and does the
979
right thing with binary values and overwriting. This confirms that
980
importing a dictionary works.
981
* debian/local/setup-apport-retracer: Update for hardy.
982
* apport/crashdb_impl/launchpad.py: get_source_info() does not work any more
983
due to HTML changes in Launchpad, and not showing the component any more
984
on /distro/+source/package. Since we do not actually need component and
985
release name any more, rename it to get_source_version(), fix the regular
986
expression to just get the version, and adapt get_fixed_version()
988
* debian/local/setup-apport-retracer: Update default apt sources to
989
http://ddebs.ubuntu.com.
990
* apport/ui.py: Robostify cleanup of forked test processes.
991
* apport/ui.py: Sleep for 0.5 seconds after creating the test process in the
992
test suite to give /proc some time to settle down.
993
* bin/apport: Drop evaluation of CORE_* environment variables and mandate
994
calling with <pid> <signal> <core ulimit>. Drop the now obsolete
995
apport/elfcore.py. Adapt test-apport accordingly.
996
* debian/apport.init, use-local: Now call apport with %p, %s, and %c kernel
997
macros (since 2.6.24). Drop Edgy support from init script.
999
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 21 Dec 2007 02:18:48 +0100
1001
apport (0.99) hardy; urgency=low
1003
* cli/apport-cli, qt4/apport-qt: Fix typo 'send' -> 'sent'.
1005
* apport_python_hook.py: Add user info, too. Also add check for this to the
1006
test suite. (LP: #145109)
1007
* apport/ui.py, run_crash(): Show a proper UI error message instead of just
1008
crashing with an exception if the crash report is inaccessible for the
1009
invoking user. (LP: #146464)
1010
* apport/crashdb_impl/memory.py: Implement mark_retraced(),
1011
get_unretraced(), and get_dup_unchecked() for completeness, and define
1012
_MemoryCrashDBTest also when not running file as __main__. This makes the
1013
class useful for higher-level test suites. Add test cases for the new
1015
* apport/crashdb_impl/memory.py: Support 'dummy_data' option which adds a
1016
few dummy crashes by default. This is useful for external test suites
1017
which cannot otherwise pre-fill the in-memory db. Add checks that this
1019
* bin/crash-digger: Use self.log() more consistently, and flush stdout in
1020
log(), so that we do not lose logs on output redirection.
1021
* Add test-crash-digger: Initial test suite for bin/crash-digger.
1022
* apport/ui.py, run_crash(): Intercept CRC errors from the info collection
1023
thread, which happens on broken core dumps. (LP: #132212)
1024
* cli/apport-cli, ui_present_package_error(): Fix running of dialog, so that
1025
reporting package problems with apport-cli actually works. (LP: #136369)
1026
* apport/ui.py, run_crash(): Intercept ENOSPC and present a proper error
1027
message. (LP: #145100)
1028
* gtk/apport-gtk.glade: Fix title of upload progress window to comply to
1029
HIG. Thanks, Bruce Cowan. (LP: #144782)
1030
* qt4/apport-qt: Fix Unicode <-> UTF-8 conversion. Thanks, Daniel Hahler!
1032
* apport/ui.py: Only import xdg.DesktopEntry when a .desktop file has been
1033
found in the affected package. This avoids the dependency on servers with
1034
just apport-cli. Thanks, Matthias Gug! (LP: #130013)
1035
* apport/fileutils.py: Do not fail if there are no packages installed which
1036
have one or several .desktop files. Thanks, Matthias Gug!
1038
-- Martin Pitt <martin.pitt@ubuntu.com> Sun, 28 Oct 2007 18:32:07 -0400
1040
apport (0.98) gutsy; urgency=low
1043
* debian/local/setup-apport-retracer: launchpadBugs -> launchpadbugs
1044
(recently renamed Python package in python-launchpad-bugs).
1045
* apport/crashdb_impl/launchpad.py, test examples: Do not duplicate to bug
1046
#1, that generates a huge amount of spam. Use another test bug.
1047
* apport/crashdb_impl/launchpad.py, download(): Use Bug.description_raw,
1048
since LP mangles spaces in .description. Bump p-lp-bugs dependency.
1049
* apport/crashdb_impl/launchpad.py, close_duplicate(): Explicitly set the
1050
duplicate after removing attachments, since the new LP does not allow any
1051
modification of duplicate bugs.
1052
* bin/crash-digger: Only consolidate the duplicate DB when -i is given (i.
1053
e. usually only on one running instance).
1056
* Use bugs.launchpad.net for +filebug and +bugs requests. (LP: #138090)
1058
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 01 Oct 2007 14:35:07 +0200
1060
apport (0.97) gutsy; urgency=low
1063
* problem_report.py: Coerce CompressedValue.__len__() to return an int to
1064
work on Python 2.4, too.
1065
* debian/local/setup-apport-retracer: Adapt ddeb apt source for the move
1066
from ~pitti to ~ubuntu-archive.
1069
* port to new python-launchpad-bugs API.
1072
* small fixes to the port.
1073
* debian/control: bumped python-launchpad-bugs Depends to >= 0.2.2.
1075
-- Daniel Holbach <daniel.holbach@ubuntu.com> Tue, 04 Sep 2007 11:24:28 +0200
1077
apport (0.96) gutsy; urgency=low
1079
* Create man pages for apport-cli, apport-chroot, and dupdb-admin.
1080
* apport/fileutils.py, find_file_package(): Try to resolve symlinks in the
1081
directory path. (LP: #125551)
1082
* apport/crashdb_impl/launchpad.py, debian/local/setup-apport-retracer: Use
1083
packaging.get_system_architecture() (which is dpkg --print-architecture on
1084
Debian/Ubuntu) instead of uname, so that this does the right thing on lpia.
1085
* problem_report.py, write_mime(): Use base64 encoding for gzipped
1086
attachments, to not screw up mail servers. Thanks to Tim Yamin for this
1088
* apport/crashdb.py: Drop the last argument (-1), since it is the default
1089
anyway and did not yet exist on Python 2.4.
1091
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 21 Aug 2007 14:11:48 +0200
1093
apport (0.95) gutsy; urgency=low
1095
* general-hooks/automatix.py: Remove hashbang, it's not an executable
1097
* apport/report.py: Support system-wide blacklisting:
1098
/etc/apport/blacklist.d/. Add test cases.
1099
* Add doc/README.blacklist: Document blacklist.d/, install it there in
1101
* debian/rules: Blacklist wine-preloader, so that we ignore wine crashes
1102
until an appropriate way is found to deal with them. (Point 6 of
1103
apport-better-retracing spec.)
1105
-- Martin Pitt <martin.pitt@ubuntu.com> Sat, 11 Aug 2007 18:10:54 +0200
1107
apport (0.94) gutsy; urgency=low
1109
* doc/data-format.tex: Some updates to incorporate feedback from Gnome
1111
- Do not talk about "Distributions" any more, but "Operating systems".
1112
Gnome is used on non-Linux OSs, too.
1113
- Split "DistroRelease:" field into "OS:" and "OSRelease:".
1114
- Explicitly mention that CoreDump, StackTrace etc. can also contain
1116
- Increase document version to 0.2.
1117
* apport/report.py, obsolete_packages(): Fix crash when apt does not know an
1118
available version of a package. (LP: #128176)
1119
* test-apport: Add check that apport aborts immediately if another apport
1120
instance is already running. Also test that a symlink attack on the lock
1121
file is not possible.
1122
* bin/apport: Abort running several apport instances at the same time, by
1123
lockf()'ing /var/crashes/.lock and aborting on failure. (LP: #119622)
1124
* Add bin/gcc_ice_hook: Script to create an apport report for a gcc ICE
1125
(internal compiler exception). Add test cases to test-hooks, and ship it
1126
in the 'apport' package. (LP: #125551)
1127
* run-tests: In 'local' mode, only explicitly run the apt/dpkg
1128
implementation instead of backends/*, since the RPM ones don't have tests
1130
* apport/crashdb.py: Add a second optional parameter to upload() to specify
1131
an upload progress callback function. Adapt the declarations in the
1132
Launchpad and Memory implementations, too.
1133
* apport/crashdb_impl/launchpad.py, upload(): Pass upload progress callback
1134
handler to launchpadBugs.storeblob.upload(), which supports this since
1135
version 0.2~39. Bump dependency to it accordingly.
1136
* apport/ui.py, file_report(): Define an upload progress callback handler,
1137
pass it to the crashdb upload(), and feed ui_set_upload_progress() with
1138
some actual data. (LP: #91521)
1139
* problem_report.py: Remove support for reading bz2 compressed binary data.
1140
That was only relevant during edgy's development cycle.
1141
* apport/report.py, test_add_proc_info(): Fix determination of /bin/zgrep
1143
* problem_report.py: Switch encoding of binary values from bare zlib to
1144
proper gzip format, since this is much more useful when reusing the
1145
compressed value. Retain support for zlib-only reports. Add test cases for
1146
both old and new encodings, and adapt the other test cases for the new
1147
format. Update doc/data-format.tex accordingly.
1148
* problem_report.py, write(): Add new permitted 'binary' argument value
1149
'compressed', which retains gzip compressed binary values instead of
1150
unpacking them transparently. Add test cases.
1151
* problem_report, write_mime(): Eliminate unnecessary usage of StringIO.
1152
* problem_report, write_mime(): Make function work for compressed binary
1153
values. Add test case.
1154
* apport/report.py, add_gdb_info(): Make function work if CoreDump is a
1156
* apport/ui.py: Load crash report with keeping compressed binaries. This
1157
avoids loading the entire uncompressed core dump into memory, and avoids
1158
recompressing it all over again for generating the crash database upload
1159
MIME document. This greatly speeds up crash reporting, too. (LP: #98562)
1161
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 31 Jul 2007 21:32:00 +0200
1163
apport (0.93) gutsy; urgency=low
1165
* apport/crashdb.py: Set sqlite connect timeout to two hours, instead of the
1166
default 5 seconds. Previously, one retracer always crashed when the other
1167
was consolidating the database.
1168
* bin/dupdb-admin, command_dump(): Correctly interpret empty version strings
1169
as 'fixed in unknown verrsion', not 'unfixed'.
1170
* apport/crashdb_impl/launchpad.py: Fix typo in bug comment string.
1171
* apport/crashdb_impl/launchpad.py: Add function get_source_info() which
1172
parses out release, version, and component from
1173
https://launchpad.net/$DISTRO/+source/$PACKAGE.
1174
* apport/crashdb_impl/launchpad.py, get_fixed_version(): If a bug is fixed,
1175
return the current version (as approximation of the version where the bug
1176
was fixed), instead of an empty string (which meant 'fixed in unknown
1177
version'). [apport-crash-duplicates spec]
1179
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 25 Jul 2007 17:04:27 +0200
1181
apport (0.92) gutsy; urgency=low
1183
* bin/crash-digger: Do not crash if duplicate db is locked when attempting
1184
to consolidate it. This happens often because in the DC we have two
1185
parallel instances (for amd64 and i386).
1186
* Move ubuntu-fat-chroot from bin/ to debian/local/, since it is so heavily
1188
* debian/local/ubuntu-fat-chroot: Use diversions for the binaries we want to
1189
disable, so that chroot upgrades do not trash the modifications.
1190
* debian/local/setup-apport-retracer: launchpad-crash-digger ->
1192
* bin/crash-digger: Add option -i/--arch-indep-dupcheck to explicitly enable
1193
duplicate checking of arch-independent crashes like Python exceptions. We
1194
only want to process them on one architecture to avoid scattering the
1196
* apport/crashdb_impl/launchpad.py, get_unfixed(): Search for 'apport-crash'
1198
* bin/apport-unpack: Fix format string in error message.
1199
* apport/ui.py, __init__(): Intercept ImportError, which can happen for
1200
crashes during system upgrades. (LP: #124354)
1201
* Add general-hooks/automatix.py: Refuse to send problem reports if
1202
automatix is installed.
1203
* doc/package-hooks.txt: Do not document UnsupportableReason, since it does
1204
not make sense to set it in package hooks (it is checked before calling
1205
the hooks). Hooks should use UnreportableReason only.
1206
* apport/ui.py, test_run_crash_package(): Check that 'Package' problem
1207
reports collect additional information, too.
1208
* apport/ui.py, collect_info(): Collect additional information for 'Package'
1209
problem reports, too.
1210
* Revive preloadlib/:
1211
- Remove PIPE_CORE #ifdefs and make them the default. We do not need to
1212
support the Edgy kernel patches in this version any more.
1213
- Install signal handler for SIGABRT, too.
1214
- Read core ulimit, pass it to apport in CORE_REAL_RLIM, and set it to
1215
zero for the program, since we do not actually want the kernel to write
1216
core files when we pipe the core dump to apport.
1217
- test-apport: Pass APPORT_REPORT_DIR to the manually called apport
1218
instance in the memory clipping test; otherwise it'll write into
1219
/var/crash/, which we do not consider in library mode.
1220
* apport/crashdb_impl/launchpad.py, __init__(): Only do the "download bug
1221
#2" hack if we actually have an authentication cookie. Thus, do it only on
1222
the retracing servers, not on the client side. (LP: #125142)
1223
* apport/report.py, crash_signature(): Generate a signature for one-line
1224
Python tracebacks, too. This sometimes seems to happen, e. g. LP#124588.
1226
* apport/crashdb_impl/launchpad.py, update(): Set bug importance to Medium
1227
if retracing was successful. (LP: #106379)
1229
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 24 Jul 2007 21:50:34 +0200
1231
apport (0.91) gutsy; urgency=low
1233
* bin/apport: Remove code that supported the Edgy kernel way of core dump
1234
passing. Also factorize the CORE_REAL_RLIM evaluation, since it is likely
1235
to change in the near future.
1236
* apport/crashdb_impl/launchpad.py, close_duplicate(): Delete some
1237
attachments, as specified in apport-crash-duplicates spec, and make the
1238
bug public afterwards.
1239
* apport/crashdb_impl/launchpad.py, close_duplicate(): If the master bug is
1240
already duped to yet another bug, mark the bug to that one instead of the
1242
* apport/crashdb.py: Split out duplicate_db_last_consolidation() for getting
1243
the date (or seconds since) the last consolidation, so that we can use it
1245
* apport/crashdb.py: Add duplicate_db_change_master_id() to change the
1246
master ID of a crash. Add test case to apport/crashdb_impl/memory.py.
1247
* Add bin/dupdb-admin: Initial version of duplicate db CLI app; can dump the
1248
db, display consolidation state, and change master bug IDs for now. Ship
1249
it in apport-retrace.
1250
* apport/crashdb.py, duplicate_db_last_consolidation(): Fix timedelta
1251
seconds calculation to actually take the days into account, too.
1252
* bin/crash-digger: Fix dumping of dup db after consolidation.
1254
- test_run_report_bug_package(): Add test case for calling the UI in bug
1255
filing mode with an invalid package name.
1256
- run_report_bug(): Do not crash on invalid package name, generate an
1257
error message instead. (LP: #123644)
1258
* apport/fileutils.py, mark_report_seen(): Do not crash if the file has
1259
already been deleted underneath us. (LP: #122347)
1260
* apport/ui.py, run_report_bug(): Do not crash if the target process runs as
1261
a different user. Print a proper error message instead. Add test case
1262
test_run_report_bug_noperm_pid(). (LP: #121121)
1263
* apport/fileutils.py, likely_packaged(): Ignore /var/lib/schroot. Add test
1265
* apport/ui.py, open_url(): Intercept weird race condition for os.close()
1266
trying to close an already invalidated fd. (LP: #123180)
1268
Merge the fedora branch, thanks to Will Woods <wwoods@redhat.com>:
1270
* Add apport.init.fedora: Fedora specific init script.
1271
* Add apport.spec: RPM build recipe.
1272
* Add backends/packaging_rpm.py: Partial implementation of the packaging
1273
backend for RPM which applies to all RPM-based distros.
1274
* Add backends/packaging_fedora.py: Concrete packaging backend
1275
implementation for Fedora.
1276
* apport/elfcore.py: Classes for parsing general ELF files, and information
1278
* bin/apport: Fall back to reading signal number and PID directly from the
1279
core file (via elfcore.py) if CORE_SIGNAL and CORE_PID are not defined (i.
1280
e. when running on a non-Ubuntu kernel).
1281
* crashdb.conf: Add stanzas for Fedora and a 'debug' database which uses the
1282
'memory' crashdb implementation.
1284
-- Martin Pitt <martin.pitt@ubuntu.com> Sat, 14 Jul 2007 15:08:35 +0200
1286
apport (0.90) gutsy; urgency=low
1288
* apport/ui.py, load_report(): Catch IOError, too. LP: #118827
1289
* Merge apport-cli package into apport itself. The program itself is just 3
1290
kB compressed, and it's not worth wasting another 34 kB compressed
1291
changelog for this tiny bit.
1292
* apport/report.py, obsolete_packages(): Use the version comparison from the
1293
packaging system instead of just testing for inequality. This catches zero
1294
epochs. Thanks to Will Woods <wwoods@redhat.com>!
1295
* apport/ui.py: Add option -c/--crash-file to run the UI with a particular
1296
crash file (which can be anywhere) instead of all pending crashes in
1298
* Add xdg-mime/apport.xml: XDG MIME type definition for .crash files.
1299
* Add gtk/apport-gtk-mime.desktop.in: Link text/x-apport MIME type to
1300
apport-gtk -c, so that .crash files can be reported with Gnome.
1301
* Add debian/apport.links: Install an icon symlink for the MIME type.
1302
* apport/ui.py: Do not ask the initial "Do you want to report this?"
1303
question when being invoked with --crash-file.
1304
* po/POTFILES.in: Add missing cli/apport-cli.
1305
* po/de.po: Updated for apport-cli.
1306
* cli/apport-cli: Add option for keeping the report file without sending it,
1307
and to display its path. This is for sending the report later, copying
1308
it from a server to a workstation with internet connection, etc.
1309
* apport/crashdb_impl/launchpad.py: Simplify _subscribe_triaging_team(), now
1310
that we do not differ between main and universe policies any more.
1311
* apport/report.py: Support another hook directory
1312
/usr/share/apport/general-hooks/ for scripts which are run for every
1313
problem report. This was requested for adding e. g. AppArmor logs, etc.
1315
* Add debian/apport.dirs again to ship that hook directory.
1316
* doc/package-hooks.txt: Document the general hooks.
1318
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 10 Jul 2007 21:10:19 +0100
1320
apport (0.89) gutsy; urgency=low
1322
Implement private crash bug handling, according to
1323
https://wiki.ubuntu.com/CrashReporting:
1325
* apport/crashdb_impl/launchpad.py:
1326
- upload(): If we have an Ubuntu bug, mark it as private and only
1327
subscribe 'apport' (the 'Apport retracing service' user).
1328
- Add function _subscribe_triaging_team() which subscribes
1329
ubuntu-crashes-main for source packages in Ubuntu main or restricted, or
1330
ubuntu-crashes-universe for other packages. It does not touch non-Ubuntu
1331
bugs, since these are not marked private by default and are outside of
1332
the scope of this spec.
1333
- update(), _mark_dup_checked(): Call _subscribe_triaging_team().
1334
- Note: This entire spec is a gross hack, and Ubuntu derivatives do not
1335
benefit from it at all. We have to live with this until LP grows a real
1337
- get_distro_release(): Make this function work with private bugs, too, by
1338
using p-lp-bugs' safe_urlopen().
1342
* apport/crashdb_impl/launchpad.py: Revert simplification change of 0.85:
1343
BugList returns a set of strings, not integers; due to non-identity they
1344
do not work with the usual set operations.
1345
* apport/crashdb_impl/launchpad.py: Add function get_source_component() to
1346
query Launchpad for the component of a given distribution and source
1347
package. (This will be required for implementing crash-reporting).
1348
* backends/packaging-apt-dpkg.py, _search_contents(): Package list is
1349
actually comma separated, only take the first item. This fixes retracing
1351
* backends/packaging-apt-dpkg.py, _search_contents(): Fix package name
1352
parsing for non-main components. This fixes retracing of e. g. #124111.
1353
* apport/report.py, _read_maps(): Revert ptrace hack when maps cannot be
1354
read. maps file is now protected based on process ownership, not ptracing.
1355
* apport/crashdb.py, apport/crashdb_impl/launchpad.py,
1356
apport/crashdb_impl/memory.py: Remove official interface
1357
mark_dup_checked(), as it should only be an internally used function. Add
1358
report parameter, since we will need it there in the future. Remove
1359
explicit call from bin/crash-digger and instead change check_duplicate()
1360
to call it on its own.
1361
* apport/crashdb_impl/launchpad.py, download(): Replace dodgy parsing of
1362
fields from the description with proper code, so that multi-line fields
1363
are read correctly, too.
1365
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 06 Jul 2007 11:19:22 +0200
1367
apport (0.88) gutsy; urgency=low
1370
* backends/packaging-apt-dpkg.py, _search_contents(): Do not check the
1371
return value of zgrep. It usually errors out with 'stdout: broken pipe'
1372
when called with -m1.
1373
* bin/crash-digger: Mark a bug as retraced if DistroRelease: cannot be
1374
determined. Those are bugs apport cannot handle.
1375
* backends/packaging-apt-dpkg.py, get_source_tree(): Call apt-get source
1376
with --assume-yes to not block on VCS confirmations.
1377
* apport/crashdb.py: Add interface mark_retrace_failed(). Implement it in
1378
apport/crashdb_impl/launchpad.py.
1379
* bin/apport-retrace: If retraced report does not have a crash signature,
1380
mark it as failed with above new function. Bump python-apport dependency
1382
* apport/crashdb_impl/launchpad.py, update(): Delete CoreDump.gz attachment
1383
if the retrace was successful (i. e. if the report has a crash signature).
1384
* apport/ui.py, test_run_crash(): Set the message box title, text, and
1385
severity as assertion message if the run_crash() test fails, so that you
1386
know why it fails. This usually happens if libc6 or another dependency of
1387
the test crash is out of date.
1388
* gtk/apport-gtk.glade: Mark string as translatable. LP: #119621
1390
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 03 Jul 2007 21:38:05 +0200
1392
apport (0.87) gutsy; urgency=low
1395
- test_gen_stacktrace_top(): Add test case for unwinding a Gnome assertion
1396
(g_logv(), g_assert_warning() and similar), see LP #123462.
1397
- _gen_stacktrace_top(): Generalize for unwinding multiple functions and a
1398
set of function names, and add the Gnome assertion ones.
1400
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 02 Jul 2007 11:00:44 +0200
1402
apport (0.86) gutsy; urgency=low
1404
* test-apport: Check that apport does not create reports for emtpy core
1406
* problem_report.py: Introduce a fourth optional parameter "fail_on_empty"
1407
to file pointer tuples which causes write() to raise an IOError if no data
1408
was read. Add test cases.
1409
* bin/apport: Enforce non-emptyness of CoreDump.
1410
* problem_report.py: Add test case for delayed piping of data passed as file
1411
object pointers. This was supposed to explain the reason for getting bugs
1412
with zero-byte core dumps, but already works correctly.
1413
* apport/report.py, check_ignored(): round the mtime to an int (just like
1414
mark_ignore() does), to not get wrong results on file systems that support
1415
subsecond file timestamps. This fixes running the test suite on the live
1417
* test-apport: Clarify assertion message if /var/crash is not empty.
1419
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 28 Jun 2007 19:14:36 +0200
1421
apport (0.85) gutsy; urgency=low
1423
* apport/crashdb_impl/launchpad.py: BugList.bugs is already a set, simplify
1425
* debian/control: Add dpkg-dev dependency to apport-retrace, for getting
1427
* apport/report.py, crash_signature(): Allow ':' and '~' as part of function
1428
names to cover C++. Adapt test case to cover this.
1429
* apport/report.py test suite: Do not assume that /bin/zgrep uses /bin/sh,
1430
it was recently changed to use bash. Directly read the interpreter from
1432
* bin/apport-chroot, command_upgrade(): Supply -y to 'apt-get upgrade' also
1434
* bin/apport-chroot, command_upgrade(): Run 'apt-get clean' before
1435
regenerating the chroot tarball.
1436
* backends/packaging-apt-dpkg.py, get_dependencies(): Fix crash when
1437
encountering a virtual package. LP: #122274
1438
* apport/report.py, obsolete_packages(): Do not consider virtual packages as
1440
* apport/crashdb_impl/launchpad.py: Do a bogus call to Bug() in the ctor.
1441
This initializes python-launchpad-bugs to use a cookie for the urlopen in
1442
BugList, so that get_unretraced() and get_dup_unchecked() return private
1443
bugs, too. This works around LP #122126.
1445
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 25 Jun 2007 16:38:43 +0200
1447
apport (0.84) gutsy; urgency=low
1449
* apport/crashdb.py: Add new abstract methods:
1450
- get_unretraced() and mark_retraced(id) to get a list of crashes that
1451
need to be retraced and chalk them off.
1452
- get_dup_unchecked() and mark_dup_checked() to get a list of crashes that
1453
need to be checked for being a duplicate and chalk them off. This is
1454
aimed at crashes which do not need retracing, such as unhandled Python
1456
* apport/crashdb_impl/launchpad.py: Implement above methods for launchpad
1457
(moving the code from bin/launchpad-crash-digger).
1458
* apport/crashdb_impl/launchpad.py: Set "need-duplicate-check" tag for
1460
* apport/crashdb_impl/launchpad.py, download(): Fetch Traceback.txt, too, so
1461
that we can do duplicate checking for Python crashes.
1462
* bin/launchpad-crash-digger: Drop Launchpad specific code and replace it
1463
with calls to above new functions. Rename to bin/crash-digger. Also rename
1464
all 'cookie' to 'auth' (as happened with the other applications earlier).
1465
* bin/crash-digger: Do duplicate checking for needs-duplicate-check crash
1466
bugs (such as Python crashes).
1467
* bin/apport-retrace, bin/crash-digger: More language cleanup; we should
1468
stop talking about 'bugs' and use 'crash' consistently.
1470
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 14 Jun 2007 19:50:24 +0200
1472
apport (0.83) gutsy; urgency=low
1474
* apport/crashdb.py: Separate abstract from implemented functions.
1475
* apport/crashdb.py, apport/packaging.py, apport/ui.py: Use
1476
NotImplementedError instead of Exception in the abstract methods.
1477
* apport/packaging.py: Add interface compare_versions() for comparing
1478
package version numbers.
1479
* backends/packaging-apt-dpkg.py: Implement compare_versions() using
1480
apt.VersionCompare(), add some test cases.
1481
* apport/report.py: Fix typo: 'none' -> 'None'.
1482
* apport/chroot.py: Do not include /usr/local/lib and /usr/lib in
1483
LD_LIBRARY_PATH, just /lib, so that we still use the libc from outside,
1484
but e. g. libxml2 from inside the chroot.
1486
https://blueprints.launchpad.net/ubuntu/+spec/apport-crash-duplicates: Merge
1487
crash-dups branch, which implements automatic crash duplicate detection:
1489
* apport/crashdb.py: Add methods for crash duplicate detection.
1490
* apport/crashdb_impl/memory.py: Change internal data management to track
1491
fixed version and duplicates.
1492
* apport/crashdb_impl/memory.py: Add a test suite for all methods, including
1493
the duplicate detection API of the base CrashDatabase (since it is
1494
much easier to test it here, on an actual implementation).
1495
* debian/pyversions: Bump minimal Python version to 2.5, since this starts
1496
providing the sqlite3 module.
1497
* apport/crashdb_impl/launchpad.py: Implement new methods required for crash
1498
duplicate detection. get_fixed_version() does not approximate version
1499
tracking yet; it just returns '' for fixed bugs (which means 'fixed, but
1500
unknown version'). Bump python-launchpad-bugs dependency for this to
1501
ensure the availability of Bug.mark_duplicate().
1502
* bin/apport-retrace: Add option --duplicate-db which specifies the path to
1503
the duplicate sqlite database and enables duplicate detection.
1504
* Abin/apport-chroot: Add option --duplicate-db. If a file is given, symlink
1505
it into the chroot and pass --duplicate-db to apport-retrace.
1506
* bin/launchpad-crash-digger: Add --duplicate-db and pass it to
1508
* apport/crashdb.py: Track last run of duplicate_db_consolidate() in an
1509
extra table and add a method duplicate_db_needs_consolidation() which
1510
returns True if the last run was more than a given number of seconds ago.
1511
Add test cases to apport/crashdb_impl/memory.py.
1512
* bin/launchpad-crash-digger, fill_pool(): Check whether the duplicate
1513
database needs consolidation (i. e. updating the bug states to the reality
1514
in the bug tracker) and if so, trigger it.
1516
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 13 Jun 2007 13:09:57 +0200
1518
apport (0.82) gutsy; urgency=low
1520
* Add bin/ubuntu-fat-chroot: Script to install a set of commonly needed
1521
packages into a minimal Ubuntu chroot (as created by apport-chroot). This
1522
requires some hacking of postinst and /usr/sbin/ files in between the
1523
installation stages and thus deserves a script on its own.
1524
* apport/packaging.py:
1525
- Add "uninstalled" option to get_file_package(). If set to True, this
1526
will do an expensive search of files/packages which are not installed.
1527
- Add interface "set_mirror(URL)" for functions which need to retrieve
1528
packages and data from distribution mirrors.
1529
* backends/packaging-apt-dpkg.py: Implement "uninstalled" option and
1530
"set_mirror(URL)", add test cases.
1531
* bin/apport-retrace: Use "uninstalled" option now to install packages and
1532
corresponding -dbgsyms for uninstalled files mentioned in ProcMaps
1533
(Point 1 of apport-better-retracing spec). Bump python-apport dependency.
1534
* apport/packaging.py: Add interface get_available_version(package).
1535
* backends/packaging-apt-dpkg.py: Implement get_available_version(), add
1537
* apport/report.py: Add function obsolete_packages() to return packages in
1538
Package: and Depends: which are not up to date. Add test cases.
1539
* apport/ui.py, thread_collect_info(): For crashes, call obsolete_packages()
1540
and set UnreportableReason: if there are any (Point 2 of
1541
apport-better-retracing spec).
1542
* apport/ui.py, thread_collect_info(): call standard_title() and add it to
1543
the report as 'Title' field. This is useful if reporters modify the
1544
default title (per request of Brian Murray, thanks). Add test case.
1545
* apport/ui.py: Fix declaration of the test suite's
1546
ui_set_upload_progress(). Funny that this has never been triggered before.
1547
* apport/report.py, add_gdb_info(): Split out StacktraceTop generation into
1548
separate funtion _gen_stacktrace_top(), so that we can test it separately.
1549
* apport/report.py, _gen_stacktrace_top(): Step back from the crashed
1550
program's own signal handlers, since those are generally not useful for
1551
the purposes of StacktraceTop and only impede duplicate matching
1552
(Point 4 of apport-better-retracing spec). Add various test cases.
1553
* apport/report.py: Add method crash_signature() to calculate an unique
1554
identifier of a signal or Python crash, to be used for duplicate
1555
detection. Add various test cases.
1556
* apport/packaging.py: Add interface get_source_tree() to fetch and unpack a
1557
source package to a given directory, optionally specifying a particular
1559
* backends/packaging-apt-dpkg.py: Implement get_source_tree(). This has a
1560
rather crude 'call apt-get source and guess about directories'
1561
implementation until python-apt learns about doing this directly and more
1562
elegantly (see LP #118788).
1563
* bin/apport-retrace: Add gen_source_stacktrace() and a few helper functions
1564
to construct a field 'StacktraceSource' with the source code around the
1565
affected lines in the stack trace (as available). (Point 5 of
1566
apport-better-retracing spec).
1567
* apport/crashdb_impl/launchpad.py, update(): Attach StacktraceSource to the
1569
* apport/crashdb_impl/launchpad.py: Check PackageArchitecture for 'all', to
1570
not set a retracer tag 'need-all-retrace'.
1571
* test-apport: Clarify assertion failure message when an unexpected core
1573
* apport/report.py, get_module_license(): Do not iterate over Popen.stdout,
1574
use communicate() instead. The latter is already fixed to not trip over
1575
SIGINTR. (LP: #118965)
1577
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 08 Jun 2007 07:47:04 +0200
1579
apport (0.81) gutsy; urgency=low
1581
* apport/report.py: Remove '[apport]' default bug title prefix. (LP: #94819)
1582
* apport/crashdb_impl/launchpad.py: Tag new bugs with
1583
'apport-<problemtype>'. This replaces the former '[apport]' prefixing.
1584
* debian/local/setup-apport-retracer: Specify a path in '.' command and
1585
use sh again. Yay for me needing three attempts before actually RTFMing
1586
how '.' works (which is really nasty and strange IMHO).
1587
* bin/apport-chroot: Fix symlinks before repackaging the chroot tarball in
1588
'install' and 'installdeb' modes.
1589
* debian/local/setup-apport-retracer: Install python-libxml2 and python-apt.
1590
* bin/launchpad-crash-digger: Supply --auth instead of the deprecated
1591
--cookie to apport-chroot.
1592
* bin/apport-chroot: Fix identifier name in command_retrace().
1593
* debian/local/setup-apport-retracer: Set APPORT_CRASHDB_CONF to the local
1595
* bin/apport-chroot: Unset APPORT_CRASHDB_CONF for login and retrace.
1596
* bin/launchpad-crash-digger: Check the release of a bug and whether we have
1597
a chroot for it before untagging it. This avoids loosing tags for bugs we
1598
do not yet have a working retracer chroot for.
1599
* bin/apport-retrace: Do not abort with an exception if package installation
1600
fails. Give a proper error message instead and point to -u. (LP: #115681)
1601
* apport/crashdb_impl/launchpad.py, update(): Create a temporary directory
1602
and use proper file names for the new attachments. With TemporaryFile(),
1603
attachment file names ended up as '<fdopen>'. (LP: #115347)
1604
* apport/report.py, add_os_info(): Add field 'NonfreeKernelModules' which
1605
lists loaded kernel modules which do not have a FOSS license. This is
1606
particularly helpful for quickly checking for restricted graphics drivers.
1608
* apport_python_hook.py: Move the apport.* imports into the try: block and
1609
move the likely_packaged() test to the top, to avoid importing
1610
apport.report and creating a Report object for non-packaged scripts. This
1611
makes the entire code more efficient and robust against errors in the
1612
apport modules. (LP: #109955)
1613
* apport/report.py, add_gdb_info(): Intercept OSError from gdb invocation
1614
(which might be segfaulting itself) and just do not put any gdb output
1615
into the report. The automatic retracers can try their luck again.
1617
* bin/apport-retrace: Fix handling of packages which are still known to
1618
/var/lib/dpkg/status, but do not have an apt record any more; treat them
1619
like virtual packages and just issue a warning instead of falling over.
1621
* Add doc/data-format.tex: Documentation of the structure, encoding, and
1622
standard keys of the Apport report file format. [apport-for-upstreams
1624
* Add doc/Makefile: Build and clean rules for generating data-format.pdf.
1625
* debian/rules, setup.py: Call doc/Makefile and install the PDF
1626
documentation. Add texlive-latex-recommended build dependency for that.
1628
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 24 May 2007 19:39:12 +0200
1630
apport (0.80) gutsy; urgency=low
1632
Collect all Launchpad specific bits in a separate class and provide an
1633
abstract base class. This will greatly help for getting upstream acceptance
1634
and the possibility of automatically forwarding crashes upstream
1635
(apport-for-upstreams specification):
1637
* Add apport/crashdb.py: Abstract crash database interface. This also offers
1638
a factory function get_crashdb() which reads a configuration file to find
1639
the default crash database to be used.
1640
* Add ./crashdb.conf: Crash database configuration file, for Ubuntu on
1641
Launchpad. Modify setup.py and debian/python-apport.install to ship it in
1643
* Add apport/crashdb_impl/memory.py: Simple in-memory implementation of
1644
crash database interface for testing.
1645
* Add apport/crashdb_impl/launchpad.py: Launchpad implementation of crash
1647
* apport/ui.py: Drop LP specific bits and move towards new CrashDatabase
1649
* apport/ui.py, test suite: Do not overwrite file_report() any more, but
1650
use the memory CrashDatabase. This will test the actual file_report()
1651
implementation and allows the test suite to check the precise value of
1653
* apport/{report,ui}.py: Move UserInterface.create_crash_bug_title() and its
1654
test cases to Report.standard_title(). It is much more appropriate there
1655
and can be used in the retracer as well.
1656
* bin/apport-retrace: Drop LP specific bits and move to CrashDatabase
1657
interface. Remove the --remove-tag option, we really should not have it
1658
here; remove it from man/apport-retrace.1 as well.
1659
* bin/apport-chroot: Drop --remove-tag option here, too.
1660
* bin/apport-chroot: Drop LP specific bits and move to CrashDatabase
1662
* bin/launchpad-crash-digger: Remove retracing tag directly instead of
1663
passing --remove-tag to apport-chroot. This is a much cleaner design and
1664
avoids infinitely looping on some weirdly failing retraces.
1665
* debian/control: Bump some python-apport dependencies for the API changes.
1669
* setup.py: Use apport wiki home page for 'url'.
1670
* Remove 'X-Ubuntu-Gettext-Domain' from *.desktop.in, since langpack.mk will
1671
add it automatically now.
1672
* *.desktop.in: Remove 'in Ubuntu' from comment.
1673
* cli/apport-cli, qt4/apport-qt: Generalize window titles.
1677
* debian/local/setup-apport-retracer: Revert back 'source' to '.' and use
1678
bash instead of sh. POSIX sh does not seem to have a 'source' command.
1680
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 21 May 2007 19:25:31 +0200
1682
apport (0.79) gutsy; urgency=low
1684
* debian/local/setup-apport-retracer: Fix '.' bashism, replace it with
1686
* problem_report.py, write_mime(): Drop preamble argument, replace it with
1687
an extra_headers dictionary. This is much easier to evaluate on clients.
1688
* apport/ui.py: Convert to new write_mime() interface from above. This
1689
finally automatically tags bugs with need-$ARCH-retrace. Bump
1690
p-problem-report dependency of python-apport for this.
1691
* apport/report.py: Change example URLs in the testsuite from launchpad to
1692
an artificial ones to avoid the impression that it is LP specific.
1693
* backends/packaging-apt-dpkg.py: Formally make this a subclass of
1694
apport.packaging.PackageInfo.
1695
* debian/control: Use code.lp.net instead of bazaar.lp.net VCS URL.
1696
* bin/kernel_hook: Fix/improve the collected information:
1697
- Read /proc/modules instead of lsmod.
1698
- Fix lspci argument: -n instead of -m.
1699
- Add /proc/cmdline.
1700
* debian/rules: Use langpack.mk for updating the .desktop files.
1701
* Add po/Makevars to specify the domain, to make intltool figure out the
1702
gettext domain automatically.
1703
* bin/kernel_hook, ./test-hooks: Do not rely on /proc/version_signature any
1704
more, it's gone in the gutsy kernel.
1706
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 21 May 2007 15:55:10 +0200
1708
apport (0.78) gutsy; urgency=low
1710
* apport/packaging.py, backends/packaging-dpkg.py: Add new interface
1711
is_distro_package(package) which verifies the origin of a given package.
1712
Move the dodgy hack from apport/ui.py to the backend, where it belongs to.
1713
Also add a test case.
1714
* debian/control: Add python-apt dependency to python-apport.
1715
* debian/control: Remove debianutils dependency, it's essential.
1716
* Drop backends/packaging-dpkg.py. It had some hackish usage of python-apt
1717
anyway, since some things just cannot be figured out with dpkg alone.
1718
Since we have to give up on that idea, implement a new clean packaging
1719
backend 'packaging-apt-dpkg.py' which now uses python-apt and dpkg in a
1721
* apport/report.py, add_gdb_info(): Fix crash when Stacktrace could not be
1722
created. (LP: #107853)
1723
* ./test-apport: Check that crashes create a core dump (with proper ulimits)
1724
when an unseen crash report exists already. This reproduces LP #105976.
1725
* bin/apport: Create core dump file if aborting because an unseen crash
1726
report already exists. (LP: #105976)
1727
* apport/ui.py: Add a comment for translators. (LP: #104703)
1728
* apport/ui.py, load_report(): Also catch zlib.error on invalid reports.
1730
* apport/report.py: Add method has_useful_stacktrace() to determine whether
1731
the stack trace can be considered useful. The current heuristic is to
1732
consider it useless if it either is shorter than three lines and has any
1733
unknown function, or for longer traces, a minority of known functions. Add
1735
* gtk/apport-gtk, qt4/apport-qt, cli/apport-cli: Do not offer 'reduced
1736
report' option if the stack trace is useless. (LP: #87430) Bump the
1737
python-apport dependencies of the frontend packages to ensure that we have
1738
has_useful_stacktrace().
1740
-- Martin Pitt <martin.pitt@ubuntu.com> Sat, 5 May 2007 17:53:42 +0200
1742
apport (0.77) gutsy; urgency=low
1744
* apport/report.py: Replace any() call with a list comprehension to work
1745
with Python < 2.5. (LP: #104864)
1746
* apport/report.py: Move the ctypes import to the one place where we
1747
actually need it, and do not entirely fail if they do not exist (such as
1748
in Python 2.4). It is only required for non-default Feisty kernels anyway.
1750
* apport/chroot.py: Fix test suite to work with Python 2.4's tarfile module
1752
* debian/local/setup-apport-retracer: Generalized some feisty specific
1753
bits, set default release to gutsy.
1755
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 23 Apr 2007 12:22:17 +0200
1757
apport (0.76) feisty; urgency=low
1759
* Move python_hook.py out of the apport module to apport_python_hook.py, so
1760
that it does not inflict the expensive import of all apport related
1761
modules to every python program. Adapt module prefixes accordingly.
1763
* setup.py, debian/python-apport.install: Install apport_python_hook.py into
1764
the python-apport binary package.
1765
* apport/ui.py test suite: Unset locale related environment variables so
1766
that the tests which check strings are not invalidated by translations.
1768
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 12 Apr 2007 11:47:50 +0200
1770
apport (0.75) feisty; urgency=low
1772
* apport/report.py, add_proc_info(): Chop off /rofs/ prefix from
1773
ExecutablePath, so that crashes work on the live system, too. Arguably a
1774
kernel bug, but probably too hard to fix at this time. (LP: #102909)
1775
* backends/packaging-dpkg.py, get_modified_files(): Ignore empty lines in
1776
broken .md5sums file rather than crashing on them. (LP: #102906)
1778
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 4 Apr 2007 21:51:28 +0200
1780
apport (0.74) feisty; urgency=low
1782
* debian/apport-{gtk,qt}.install: Do not install .desktop files for now,
1783
until we get a proper guided bug reporting.
1784
* problem_report.py, write_mime(): Do not re-compress keys which already end
1785
in .gz. Add test cases.
1786
* test-hooks: Add a (dodgy) test case for calling package_hook on an
1787
uninstalled package. After all, this is very likely to happen for
1788
installation errors. This reproduces #97636.
1789
* backends/packaging-dpkg.py, get_source(): Add a similarly dodgy fallback
1790
to apt if the queried package is not installed. This needs to be
1791
generalized and cleaned up later, but now is the time for unintrusive
1792
small patches. (LP: #97636)
1793
* test-apport: Do not fail on non-empty gdb stderr if it only consists of a
1794
single warning (as happens on powerpc).
1795
* apport/report.py, test_check_interpreted(): Run gedit test on an actually
1796
existing file, reproducing the interpreter confusion reported in #102056.
1797
* apport/report.py, _check_interpreted(): Add a whitelist of common
1798
interpreters and check ExecutablePath against it. (LP: #102056)
1799
* apport/ui.py: Ignore SystemError exceptions from apt, which happen on
1800
badly formatted source.list entries. (LP: #98901)
1801
* apport/ui.py: Fix crash on None candiateOrigin from the apt cache object.
1803
* gtk/apport-gtk.glade: Add window titles to progress and details dialogs.
1806
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 4 Apr 2007 14:44:08 +0200
1808
apport (0.73) feisty; urgency=low
1810
* problem_report.py, write(): Allow a third optional argument in tuple
1811
values, which specify a maximum file size. Above it, the entire key gets
1812
removed. Add testsuite checks for all boundary cases.
1813
* bin/apport: Limit core dump size to 75% of usable RAM
1814
(MemFree+Cached-Writeback). This should avoid trashing people's boxes hard
1815
on huge core dumps. Bump dependencies on python-problem-report. Create an
1816
expensive, but realistic check for this in test-apport.
1818
* apport/ui.py, run_crash(): If a signal crash report does not have a core
1819
dump, explain that the computer has too little memory for an automatic
1820
analysis/report of the crash. Add test suite check.
1822
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 29 Mar 2007 23:38:23 +0200
1824
apport (0.72) feisty; urgency=low
1827
* bin/apport-chroot, command_create(): Install gpgv.
1828
* bin/apport-retrace: Fix error handling in fetch_unpack().
1829
* Move apport-retrace.1 manpage from package apport to apport-retrace. Bump
1830
Conflicts/Replaces accordingly.
1831
* bin/launchpad-crash-digger, apport/ui.py: Remove the special case
1832
'powerpc'->'ppc' and use need-powerpc-retrace uniformly.
1833
* debian/control: Add XS-Vcs-Bzr: header.
1834
* apport/ui.py: Fix wrong parameter name in help message.
1835
* Another grammar fix, thanks to Brian Murray!
1838
* debian/local/ubuntu-bug: Try to use apport-cli, if we do not have a
1839
$DISPLAY, or neither Gnome nor KDE are running.
1840
* debian/control: Recommend elinks, since it is the only text browser so far
1841
that works with Launchpad (see #59510)
1842
* Add debian/apport-cli.README.Debian: Describe how to integrate
1843
apport-checkreports and apport-cli into .bashrc for crash notification on
1845
* qt4/apport-qt: Fix undefined symbol in ui_present_package_error().
1848
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 29 Mar 2007 11:41:39 +0200
1850
apport (0.71) feisty; urgency=low
1852
* cli/apport-cli, qt4/apport-qt: Fix bad grammar 'some minutes'.
1854
* problem_report.py, write_mime(): Add optional 'preamble' parameter. Add
1856
* apport/ui.py, upload_launchpad_blob(): Set need-$ARCH-retrace tag in MIME
1857
preamble. Bump p-problem-report dependency. (LP: #94790)
1858
* bin/apport-retrace: In verbose mode, display the path of currently
1860
* bin/apport-retrace: Do not fall over errors of dpkg -x (which happens e.
1861
g. on udev, where it cannot unpack /dev, since this is a symlink to the
1862
real /dev). Merely print out a warning about it.
1863
* apport/ui.py, run_report_bug(): Ignore ENOENT from add_proc_info(). This
1864
happens if the user closes the application prematurely, so that /proc/pid
1865
does not exist any more. Add test case. (LP: #95954)
1866
* backends/packaging-dpkg.py, get_modified_files(): Ignore lines in .md5sums
1867
files which contain a NUL byte. This Should Not Happen™, but nevertheless
1869
* apport/ui.py, doc/package-hooks.txt: Check for a field
1870
"UnreportableReason: <text>" and display an information box that the
1871
current crash cannot be reported because of <text>. Add test case.
1872
Document the new field.
1873
* apport/ui.py: Check package origin, compare it to DistroRelease:, and
1874
report crash as unreportable if they do not match. This particularly saves
1875
the user from uploading large reports for e. g. opera crashes, and avoids
1876
filing Ubuntu bugs from Debian installations. (LP: #75513)
1878
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 26 Mar 2007 18:01:24 +0200
1880
apport (0.70) feisty; urgency=low
1883
* bin/apport-retrace: Add option --remove-tag to remove a Launchpad bug
1884
tag. This is intended for an automatic Malone crash retracing system.
1885
* debian/control: Bump python-launchpad-bugs dependency to ensure that we
1886
have Bug.[gs]et_metadata().
1887
* man/apport-retrace.1: Add documentation for --confirm and --remove-tag.
1888
* bin/apport-chroot: Add option --remove-tag and pass it to apport-retrace.
1889
* apport/chroot.py, fix_symlinks(): Convert chroot path prefixed absolute
1890
symlinks to relative symlinks to avoid fakechroot's weird handling of
1892
* Add bin/launchpad-crash-digger: Daemon for watching out for
1893
need-$ARCH-retrace tagged Ubuntu bugs in Launchpad and calling
1894
apport-retrace on them.
1895
* bin/apport-retrace: Mangle bug comment with StacktraceTop to not contain
1896
invalid UTF-8, to avoid getting Internal Server Errors from LP.
1897
* debian/local/setup-apport-retracer: Install libc6-i686{,-dbgsym} into an
1898
x86 chroot, to get sane x86 backtraces for crashes in libc.
1899
* debian/local/setup-apport-retracer:
1900
- Unpack and install python-launchpad-bugs locally if the package is not
1902
- Link launchpad-crash-digger into the retracer's bin/ dir.
1903
* run-tests: Run tests with python's -tt flag to catch whitespace errors.
1904
* Replace tabs with spaces in all Python files. (LP: #93561)
1905
* Remove trailing white space in all Python files.
1906
* apport/report.py, add_proc_info(): Do not regard symlinks to executables
1907
as interpreted scripts any more (such as Debian alternatives). Add test
1909
* problem_report.py: Add new method get_new() which returns a set of all
1910
keys which have been added since load() or construction. Add test cases.
1911
* problem_report.py: Add optional parameter only_new to write(), which
1912
writes only the get_new() keys. Add test case.
1913
* apport/ui.py: Remember currently processed report file and update it with
1914
the added information, so that it becomes useful for local evaluation,
1915
too. Bump python-problem-report dependency to ensure write()'s only_new
1916
availability. (LP: #94678)
1917
* apport-chroot: Add forgotten sys.exit(1) after printing the error message
1918
about an invalid chroot specification.
1919
* apport/ui.py, run_crash(): Check for a field "UnsupportableReason: <text>"
1920
and display an information box that the current configuration cannot be
1921
supported because of <text>, instead of processing and reporting the
1922
crash. Add test case for this workflow. With special regards to our
1923
Firefox crash triagers who want to get rid of the hundreds of
1924
flash-related crashes. :)
1925
* apport/report.py, add_hooks_info(): Use execfile() instead of
1926
__import__(), since package names might conflict with module names already
1927
imported into apport's namespace. Also search for hook named after the
1928
source package name (prefixed with 'source_'). Add test cases.
1929
* bin/apport-chroot: When specifying --save for login, only save the tarball
1930
if the exit status is 0.
1931
* bin/apport-chroot, create: Install /usr/sbin/policy-rc.d to disable init
1933
* bin/apport-chroot: Fixed command function selection to not abort with
1934
'unknown command' if the DistroRelease: was unknown.
1935
* bin/apport-retrace: Replace --no-purge with --no-dpkg. With this option,
1936
do not call dpkg --unpack any more, but dpkg -x, to avoid any fchmod() and
1937
other calls which cause problems in fakechroots.
1938
* bin/apport-retrace: Fix ordering of version numbers in warning message.
1939
* doc/package-hooks.txt: Add some examples, document source package hook.
1942
* apport/report.py, add_proc_info(): If reading /proc/pid/maps fails,
1943
ptrace() the target process to make it readable (proposed security
1944
improvement in future kernels).
1945
* bin/apport-retrace: Fix crash for packages unknown to the apt cache.
1946
* apport/report.py, add_gdb_info(): Limit maximum backtrace depth to 2000 to
1947
avoid infinitely looped stacks and gdb crashes. (LP: #94455)
1948
This also caps the maximum size of information that we add to reports.
1950
* bin/apport-retrace: Add option -R/--rebuild-package-info, so that
1951
apport-retrace works on unprocessed crash dumps in /var/crash.
1952
* Some grammar corrections.
1953
* Add package-hooks/source_apport.py: Package hook for apport itself.
1954
Include /var/log/apport.log and the status of files in /var/crash.
1957
* Add cli/apport-cli, setup.py, debian/apport-cli.install, debian/control:
1958
Add command line user interface.
1959
* apport/ui.py, format_filesize(): Use MiB and GiB instead of MB and GB;
1960
these are the official units. Adapt test cases.
1961
* apport/ui.py, collect_info()/file_report(): Do not raise an exception on
1962
KeyboardInterrupt in the subthreads.
1963
* apport/ui.py, open_url(): Do not use gtk.MessageDialog(), but
1964
ui_error_message(), and fix error passing so that the message is
1965
displayed in the parent thread.
1966
* apport/ui.py, open_url(): Check that $DISPLAY is set before considering
1967
the KDE/Gnome web browsers.
1969
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 26 Mar 2007 09:41:03 +0200
1971
apport (0.69) feisty; urgency=low
1973
* apport-chroot: Add command 'installdeb' to conveniently install a bunch of
1974
.debs into a chroot.
1975
* apport-chroot: Fix 'login' and 'upgrade' commands to not require
1976
specifying a chroot map when giving a chroot tarball path as argument.
1977
* test-apport: Check that core dumps are written for packaged programs as
1978
well, if ulimits want them. (Test for #92029)
1979
* bin/apport: Call write_user_coredump() for packaged program crashes and
1980
SIGABRT as well. (LP: #92029)
1982
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 19 Mar 2007 17:37:23 +0100
1984
apport (0.68) feisty; urgency=low
1987
* qt4/apport-qt: Fix taskbar entry, remove an unused method.
1988
* qt4/error.ui: Fix icon spacing.
1991
* apport-retrace: Add option --confirm to display the retraced stack traces
1992
and ask for confirmation before uploading them as LP bug attachments.
1994
* apport-chroot: Add option --confirm-attach; if given, call apport-retrace
1997
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 15 Mar 2007 00:05:18 +0100
1999
apport (0.67) feisty; urgency=low
2001
* debian/local/setup-apport-retracer: Add apt sources for restricted,
2002
universe, and multiverse, too.
2003
* po/de.po: Update from Rosetta.
2004
* apport/report.py: Remove undefined call to error_log() in
2005
_command_output(), replace it with raising proper exceptions.
2006
* bin/apport-retrace: Fix 'numer' typo. (LP: #91680)
2007
* test-apport: Check that non-packaged executables generate a core dump on
2008
SIGABRT, too (test case for bug #92029).
2009
* bin/apport: Move check for ignoring SIGABRT below the core dump file
2010
writing for non-packaged binaries. (LP: #92029)
2011
* gtk/apport-gtk.glade:
2012
- Remove titles from the progress windows to comply with Gnome HIG and not
2013
repeat the text content.
2014
- Improve wording a bit.
2016
* gtk/apport-gtk{,.glade}: Fix signal handler name of the Cancel button in
2017
the upload progress dialog, so that it actually works. (LP: #92115)
2019
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 14 Mar 2007 17:34:57 +0100
2021
apport (0.66) feisty; urgency=low
2023
* Remove apport/MultipartPostHandler.py, this functionality moved to
2024
python-launchpad-bugs now. Add a dependency to that package.
2025
* apport/ui.py, upload_launchpad_blob(): Use the shiny new
2026
launchpadBugs.storeblob.upload().
2027
* bin/apport-retrace: Attach retraced stack traces back to the Launchpad bug
2028
report if no other output option is given (This corresponds to the
2029
in-place editing when a report file is specified). Add option --cookie to
2030
specify a Mozilla-style cookie file for the necessary Launchpad
2032
* man/apport-retrace.1: Document above apport-retrace changes.
2033
* bin/apport-chroot: Add --cookie option: temporarily symlink cookie into
2034
the chroot and pass it to apport-retrace in retrace mode.
2036
-- Martin Pitt <martin.pitt@ubuntu.com> Sat, 10 Mar 2007 15:01:57 +0100
2038
apport (0.65) feisty; urgency=low
2040
* debian/local/setup-apport-retracer:
2041
- Replace grep-dctrl with grep call, since grep-dctrl is not installed in
2043
- Do not download apport source from archive.u.c., instead require that
2044
this script lives in the unpacked apport source tree.
2045
* bin/apport-chroot: Use apt-get options -y and --allow-unauthenticated when
2046
installing additional packages.
2047
* bin/apport-chroot: Handle --extra-package for 'upgrade', too, to provide a
2048
simple way of adding a package to an existing chroot tarball.
2049
* debian/local/setup-apport-retracer: Create tarball chroots by default.
2050
It only imposes a negligible overhead, and sharing unpacked directories
2051
with multiple people is just too brittle.
2052
* bin/apport-retrace: Add option --no-purge to not purge unpacked packages
2053
after retracing. This is (only) useful with temporarily unpacked chroots,
2054
since it's only a waste of time there.
2055
* bin/apport-chroot: Call apport-retrace with --no-purge when retracing in a
2057
* apport/chroot.py: Add fix_symlinks() method to remove the chroot root
2058
directory prefix from symbolic links; they prevent function of tarball
2059
chroots and moving around directory chroots. Add test case.
2060
* bin/apport: Fix symlinks after creating and upgrading a chroot.
2061
* bin/apport-chroot: Add option --save to update a tarball after logging
2064
-- Martin Pitt <martin.pitt@ubuntu.com> Sat, 10 Mar 2007 21:21:25 +0100
2066
apport (0.64) feisty; urgency=low
2068
* bin/apport-chroot: Add 'login' command.
2069
* bin/apport-chroot: Install apport-retrace into a newly created chroot.
2070
* Add debian/local/setup-apport-retracer: Script to install local versions
2071
of apport, debootstrap, fake{,ch}root libraries, and a feisty apport
2072
fakechroot. This works OOTB on ronne's amd64 and i386 feisty chroots. The
2073
script is not shipped in any package yet, but it's convenient to ship it
2074
in revision control and in the source.
2075
* apport/report.py, _check_interpreted(): When calling an interpreter with a
2076
script name as argument, set ExecutablePath to the script instead of the
2077
interpreter. Add test case. (LP: #88794)
2078
* apport/report.py, search_bug_patterns(): Catch all exceptions from
2079
urlopen(), not just IOError. Sometimes this fails with funnier errors.
2081
* bin/apport-retrace: Give some additional explanation when installing
2082
packages fails. (LP: #89916)
2083
* apport/fileutils.py, get_all_{system_,}reports(): Fix file access race
2084
condition. (LP: #89977)
2085
* bin/apport-retrace: Add option -p/--extra-package to install an additional
2086
package for retracing. May be specified multiple times. Document new
2087
option in man/apport-retrace.1. (LP: #90077)
2088
* bin/apport-chroot: Add a similar option -p/--extra-package and install
2089
those in the 'create' command and simply pass it to apport-retrace in the
2090
'retrace' command. (LP: #90077)
2091
* bin/apport-chroot: Add a -v/--verbose option.
2092
* bin/apport-retrace: Do not complain about missing ddebs for Arch: all
2095
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 6 Mar 2007 16:20:41 +0100
2097
apport (0.63) feisty; urgency=low
2099
New feature: fakechroot support for apport-retrace
2101
* bin/apport-retrace:
2102
- Simplify program design and throw away the complicated debug symbol
2103
sandbox generation, along with the -d and -C options. Instead, directly
2104
install the missing packages and ddebs with apt. This makes the tool more
2105
suitable for running in chroots and has often been requested anyway.
2106
- Add option -u/--unpack-only which causes additionally installed packages
2107
to be unpacked without being configured and purged again after
2108
retracing. This allows apport-retrace to work under fakechroot and has
2109
the nice side effect of speeding up package installation (we do not care
2110
about configuration for retracing anyway).
2111
* man/apport-retrace.1: Update description for the new behaviour, drop
2112
documentation of the -d and -C options, and add documentation of -u.
2113
* Add apport/chroot.py: Class for representing and working with chroots;
2114
this uses the fakeroot and fakechroot libraries when being called as
2116
* Add bin/apport-chroot: CLI frontend for doing various things with
2117
chroots (including fakeroot/fakechroot support from the Chroot class). For
2118
now, this implements:
2119
- create a chroot (tarball or directory)
2120
- dist-upgrade a particular or all chroots
2121
- apport-retrace a bug or Apport report file
2122
* setup.py: Ship apport-chroot in scripts directory.
2123
* Add a new package apport-retrace which ships apport-retrace and
2124
apport-chroot and carries all the heavier dependencies (binutils,
2125
python-launchpad-bugs, python-apt, etc.). Drop the latter two dependencies
2126
from the apport package. This allows us to install the apport-retrace
2127
package in fakechroots (not possible with apport itself) and avoid
2128
unnecessary dependencies on normal desktop installations.
2130
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 5 Mar 2007 11:20:36 +0100
2132
apport (0.62) feisty; urgency=low
2134
* apport/ui.py, collect_info(): Use REThread instead of Thread and raise
2135
exceptions from it, so that errors during info collection actually become
2137
* apport/report.py, add_proc_info(): Check that ExecutablePath actually
2138
exists, so that invalid values from transient error conditions are ignored
2139
(such as '/usr/bin/gnome-panel\x00\x00\x8b (deleted)').
2140
* apport/packaging.py: Add interface get_system_architecture() to return the
2141
system architecture in the distro specific notation. This can differ from
2142
get_architecture(package) on multiarch platforms such as amd64.
2143
* backends/packaging-dpkg.py: Implement get_system_architecture() to return
2144
dpkg --print-architecture, add a shallow test case.
2145
* apport/report.py, add_package_info(): Rename key 'Architecture:' to
2146
'PackageArchitecture:' for clarity.
2147
* apport/report.py, add_os_info(): Add system architecture as
2148
'Architecture:' field.
2149
* apport/ui.py, create_crash_bug_title(): Append warning about non-native
2150
package if package architecture does not match the system's one.
2151
* All test suites: Remove redundant word 'behaviour' from test descriptions.
2152
* test-hooks: Run tests on installed hooks in /usr/share/apport by default
2153
and add a '--local' switch to test the hooks in the source tree instead.
2154
Use this option in run-tests.
2155
* apport/report.py, test_add_proc_info(): Change the python script test
2156
so that it does not depend on being run in the source tree.
2157
* run-tests: Add a 'local' command line option which runs tests on the files
2158
and modules in the build tree. Run tests on system files/modules by
2160
* setup.py, debian/apport.install: Ship test-hooks, test-apport, and
2161
run-tests in /usr/share/apport/testsuite/, so that the full test suite can
2162
be run in the installed system.
2163
* gtk/apport-gtk.desktop.in: Only show in Gnome and Xfce.
2164
* qt4/apport-qt.desktop.in: Only show in KDE.
2166
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 1 Mar 2007 10:43:29 +0100
2168
apport (0.61) feisty; urgency=low
2171
- Kernel 2.6.20-9 now sets CORE_REAL_RLIM to -1 instead of not setting it;
2172
handle this case correctly. (LP: #87065)
2173
- Add forgotten multiplication of CORE_REAL_RLIM with 1024, since ulimit
2176
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 27 Feb 2007 16:06:11 +0100
2178
apport (0.60) feisty; urgency=low
2180
* gtk/apport-gtk.glade: Reintroduce window titles. Since the crash
2181
notifications are like alerts, title have been removed recently to comply
2182
with Gnome HIG standards, but then the user will get 'nameless window'
2183
buttons in the task bar. Let's have the smaller evil then. (LP: #87164)
2184
* apport/packaging.py: Add get_architecture() interface for determining the
2185
architecture of a particular package (which might not match the overall
2186
system architecture on multiarch-capable systems, e. g. an i386 Firefox
2187
package installed on amd64).
2188
* backends/packaging-dpkg.py: Implement get_architecture() and add test
2190
* apport/report.py, add_package_info(): Add Architecture: field.
2192
* apport/ui.py: Already mark report as seen when we load it, not just in the
2193
information collection thread. That way, reports will only be shown once
2194
on systems which have /var/crash mounted noatime, too. (LP: #85809)
2195
* apport/fileutils.py, mark_report_seen(): If os.utime() fails, and opening
2196
the report file for reading does not change the atime (happens with
2197
noatime mount option), don't throw an exception, just delete the report.
2198
(other aspect of LP: #85809)
2199
* qt4/apport-qt: Wrap gettext() into an unicode(str, 'UTF-8') call,
2200
otherwise all non-ASCII unicode strings are broken. (LP: #87757)
2202
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 26 Feb 2007 20:55:40 +0100
2204
apport (0.59) feisty; urgency=low
2206
* apport/report.py: Check that interpreter options are discarded in
2207
test_check_interpreted_script(). This replicates bug #87005.
2208
* apport/report.py, _check_interpreted_script(): Filter out interpreter
2209
command line options. This should make the detection of interpreted
2210
scripts more robust. (LP: #87005)
2211
* test-apport, check_crash(): Differ between expecting the program dumping
2212
core and finding a core dump on disk, because this is not equivalent any
2213
more with core pipelining.
2214
* bin/apport: Write core files into a process' cwd if the process' ulimit
2215
requests and permits it and the crashes process is not packaged, so that
2216
developers get happy again. Test this behaviour with various ulimits in
2218
* test-apport: Check that the core file written by apport is valid. This
2219
uncovers kernel bugs like #87065
2220
* problem_report.py test suite: Use assertAlmostEqual() when comparing stat
2221
times, since they are floats on some systems.
2222
* apport/report.py, add_gdb_info():
2223
- Remove all the initial gdb output, which gets rid of the duplicated #0
2225
- Replace some stray tabs with spaces.
2226
- Thanks to Kees Cook for this!
2228
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 22 Feb 2007 19:52:52 +0100
2230
apport (0.58) feisty; urgency=low
2232
* qt4/apport-qt.desktop.in move to System menu
2234
-- Jonathan Riddell <jriddell@ubuntu.com> Tue, 20 Feb 2007 11:35:17 +0000
2236
apport (0.57) feisty; urgency=low
2238
* apport/ui.py: Intercept ENOMEM and fail gracefully; there is little else
2239
we can do at that point, and there is no point in presenting a crash
2240
report for this. (LP: #85155)
2241
* apport/ui.py: Ignore KeyError when deleting the CoreDump field on sending
2242
a reduced report. This Should Not Happen™, but nevertheless did.
2244
* gtk/apport-gtk, qt4/apport-qt: Intercept ImportError for the non-builtin
2245
Python modules. This usually happens for crashes when there is a
2246
dist-upgrade active and some Python packages have not been configured yet.
2248
* apport/ui.py: If the problem report does not apply to a packaged program,
2249
and we have an ExecutablePath, mention it in the error message for easier
2251
* apport/python_hook.py: Resolve symbolic links in ExecutablePath.
2253
* apport/ui.py, open_url(): Remove debugging print statement again, now
2254
that we tracked down bug #83974.
2256
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 19 Feb 2007 14:40:29 +0100
2258
apport (0.56) feisty; urgency=low
2260
* apport/ui.py, open_url(): When being invoked as root, call gnome-open or
2261
firefox as root through sudo instead of dropping our uid/gid and calling
2262
it normally. The latter does not work for Firefox for some mysterious
2263
reason. Thanks to Mika Fischer for this trick. (LP: #81207)
2264
* Add debian/local/ubuntu-bug.1: Manpage for ubuntu-bug. Add it to
2265
debian/apport.manpages.
2266
* qt4/apport-qt: Add some missing features that are present in the GTK UI:
2267
- Do not show details by default, add a button to show them.
2268
- Add complete/reduced bug report radio buttons.
2269
- Thanks to Michael Hofmann for this!
2271
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 15 Feb 2007 14:59:07 +0100
2273
apport (0.55) feisty; urgency=low
2275
* Add debian/local/ubuntu-bug: Check for a running KDE or Gnome session,
2276
availability of apport-gtk and -qt, and open the appropriate GUI in bug
2277
filing mode. This makes it convenient for shell users and is also required
2278
for proper Firefox 'Report a bug...' menu integration (see bug #85041).
2279
* debian/apport.install: Install ubuntu-bug to /usr/bin.
2280
* gtk/apport-gtk: Generously add some gtk.main_iteration() calls to avoid
2281
hanging dialogs, since we do not have a main loop.
2282
* apport/ui.py: Do not silently ignore exceptions while uploading data to
2283
Launchpad, but intercept them and display their message in the error
2284
dialog. (Part of LP: #84992)
2285
* apport/ui.py: Switch from edge.launchpad.net to production launchpad.net,
2286
since the necessary bits are now there. (LP: #84992)
2288
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 14 Feb 2007 13:37:52 +0100
2290
apport (0.54) feisty; urgency=low
2292
* bin/apport: Re-enable, now that our kernel has been fixed to pipe complete
2295
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 13 Feb 2007 09:33:38 +0100
2297
apport (0.53) feisty; urgency=low
2299
* apport/ui.py, open_url(): Remove some accidentally left-over debugging
2301
* gtk/apport-gtk: Process pending GTK events after hiding the info
2302
collection window to avoid a hanging dead dialog.
2303
* gtk/apport-gtk: Do not count the lines of fields with binary data. This
2304
particularly avoids long delays with huge core dumps. (LP: #81979)
2305
* apport/ui.py, open_url(): Print URL to stdout, so that we can debug the
2306
weirdness in #83974.
2308
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 12 Feb 2007 16:57:05 +0100
2310
apport (0.52) feisty; urgency=low
2312
* apport/report.py: Fix hook directory to be
2313
/usr/share/apport/package-hooks/, not /u/s/apport/.
2314
* Add doc/package-hooks.txt: Document per-package hooks, ship in package
2316
* Add debian/apport.dirs: Ship package-hooks/ directory.
2317
* gtk/apport-gtk, qt4/apport-qt: Fix detection of binary data so that the
2318
CoreDump is not displayed as incomprehensible gibberish any more.
2319
* Add qt4/apport-qt.desktop.in and add it to POTFILES.in.
2320
* bin/apport-retrace: --verbose can now be specified multiple times to
2321
increase verbosity and debug package installation. Also, fix some quoting
2322
bugs. Thanks to Kees Cook for this!
2323
* qt4/apport-qt: Fix restart button handling. (LP: #84202)
2324
* qt4/apport-qt: Do not try to call splitlines() on a report value that is a
2325
file reference; just display the reference instead. (LP: #84196)
2326
* bin/apport: Disable for now, since the current kernel produces cropped
2327
core dumps and thus we get totally useless crash reports
2329
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 9 Feb 2007 18:58:08 +0100
2331
apport (0.51) feisty; urgency=low
2333
New feature: Qt4 GUI implementation:
2335
* Added qt4/: Qt4 implementation of the abstract user interface. Thanks to
2336
Michael Hofmann <mh21@piware.de> for that!
2337
* debian/copyright: Add Michael as copyright holder.
2338
* setup.py, debian/control, debian/apport-qt.install: Packaging bits for
2340
* Move translations from apport-gtk to apport, since they are shared between
2341
frontends. Add appropriate Conflicts/Replaces (we don't strictly need it
2342
here because we strip them anyway, but we need that for the moving icon
2344
* Move icon from apport-gtk to apport, since it is/can be shared between
2349
* Replaced old apport.png icon stolen from bug-buddy with nice SVG one.
2350
Thanks to Troy Sobotka for this!
2351
* debian/copyright: Add Troy as copyright holder for the icon.
2352
* bin/apport-retrace, man/apport-retrace.1: Document that report can now be
2355
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 8 Feb 2007 20:01:12 +0100
2357
apport (0.50) feisty; urgency=low
2359
* gtk/apport-gtk.glade: Fix 'prolem' typo.
2360
* bin/apport-retrace: Use python-launchpad-bugs to create a Report object
2361
from a given Launchpad bug number (given as argument instead of the report
2362
file path). Add appropriate p-l-b dependency.
2363
* gtk/apport-gtk: Mark '(binary data)' string as translatable.
2365
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 8 Feb 2007 15:15:47 +0100
2367
apport (0.49) feisty; urgency=low
2369
* gtk/apport-gtk.glade: Fix s/send/sent/ typo. Closes: LP#83061
2370
* apport/ui.py, create_crash_bug_title(): Cope with odd Tracebacks that are
2371
shorter than three lines. Add test case from the bug. Closes: LP#83556
2372
* apport/python_hook: Do not create a report if the binary is ignored. Add
2373
test case. Closes: LP#83566
2374
* gtk/apport-gtk: Do not save/alter crash dialog title any more, it's empty
2376
* apport/ui.py, open_url(): Check the user's session for
2377
ksmserver/gnome-session to decide whether to prefer kfmclient or
2378
gnome-open. Also, only call Firefox directly if gconf's prefered browser
2379
is actually Firefox. Closes: LP#82007
2381
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 6 Feb 2007 18:33:15 +0100
2383
apport (0.48) feisty; urgency=low
2385
New feature: Infrastructure for reporting kernel Oopses:
2387
* Add bin/kernel_hook and ship it in /usr/share/apport. The kernel can call
2388
this on an Oops. Add a test suite for it to test-hooks.
2389
* apport/ui.py: Add support for reporting ProblemType: Kernel reports, and
2390
add test suite for the workflow.
2391
* gtk/apport-gtk{,.glade}: Add implementation for ui_present_kernel_error().
2395
* Merged various apport-retrace improvements from Kees' branch:
2396
- Add various options to override some report fields with local values.
2397
- Add --verbose option and be quiet by default.
2398
- Read ProcMaps for additional library dependencies, to also catch
2399
libraries loaded at runtime (plugins).
2400
- Set correct debug file directory when starting an interactive gdb
2402
* Add gtk/apport-gtk.desktop.in: Desktop file for calling apport-gtk in
2403
'file a distro bug' mode, to be displayed in gnome-panel's System menu
2404
(see bug-reporting-tool spec). Also add a Makefile to do the
2405
intltool-merge dance, add it to POTFILES.in, and ship it in
2406
debian/apport-gtk.install.
2407
* bin/apport: Call add_os_info(), so that we get architecture information
2408
even for 'naked' reports which didn't go through UI enrichment.
2409
* Add ./test-hooks: Test suite for the various package hooks shipped with
2410
apport. Test the package problem hook for now.
2414
* debian/control: Add missing python-apt dependency to apport
2415
(apport-retrace needs it). Thanks to Kees Cook for noticing.
2416
* debian/control: Add gdb dependency to python-apport.
2417
* backends/packaging-dpkg.py test suite: Verify that packages returned by
2418
get_dependencies() actually exist. This catches the 'chops off first
2419
letter of package name sometimes' bug.
2420
* backends/packaging-dpkg.py, _init_status(): Add missing space to Depends:
2421
field format in dpkg-query call. This fixes the chopped-off first letters
2422
in the 'Dependencies' report field.
2423
* setup.py: Remove version attribute, we do not update and use it anyway.
2424
* apport/ui.py: Do not crash if Package: specifies a nonexisting package.
2425
Display a proper error message instead. Add test_run_crash_errors() test
2427
* apport/report.py, add_package_info(): Fix crash when the first dependency
2428
is not installed. Closes: LP#82561
2429
* gtk/apport-gtk.glade: Remove window titles in alert dialogs to comply with
2430
Gnome HIG. Closes: LP#83123
2432
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 5 Feb 2007 12:19:35 +0100
2434
apport (0.47) feisty; urgency=low
2436
* apport/report.py, add_hooks_info(): Only use first part of 'Package:',
2437
there might be a version number and a changed files list which we must not
2438
propagate to the import statement. Closes: LP#82566
2440
-- Kees Cook <kees@ubuntu.com> Wed, 31 Jan 2007 15:37:11 -0800
2442
apport (0.46) feisty; urgency=low
2444
* debian/control: Bump dependencies to python-apport due to recent changes
2445
in expected return values in some UI functions. Closes: LP#82267
2446
* bin/package_hook: Remove erroneous 'import apport.packaging', which
2447
shadows the packaging variable in the apport package. This unbreaks the
2448
package problem hook. Closes: LP#82297
2450
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 31 Jan 2007 07:51:24 +0100
2452
apport (0.45) feisty; urgency=low
2454
New feature: Infrastructure for package install/upgrade failures:
2456
* Add bin/package_hook: Script for creating a report for a package
2457
installation/upgrade failure. It receives a package name, a number of log
2458
files, and an ErrorMessage: from stdin. This will be called from e.g.
2460
* setup.py, debian/apport.install: Ship package_hook.
2461
* apport/ui.py: If ProblemType is 'Package', call a new function
2462
self.ui_present_package_error() instead of presenting a crash. Add test
2463
suite checks for the package error report workflow.
2464
* apport/ui.py, create_crash_bug_title(): Create default bug title for
2465
package reports. Add various test cases.
2466
* gtk/apport-gtk{,.glade}: GTK implementation of ui_present_package_error().
2468
New feature: Maintain a per-binary blacklist to inhibit apport crash reports
2469
until the binary changes. Closes: LP#79408
2471
* apport/report.py: Add new Report methods check_ignored() and mark_ignore()
2472
to check for/set ignore list entries. Add test cases.
2473
* apport/ui.py: Add another return value of ui_present_crash() to specify
2474
whether or not to blacklist the current crash's executable. Check workflow
2475
of both responses in the test suite.
2476
* gtk/apport-gtk{,.glade}: Add a blacklist checkbox to the crash
2477
notification dialogs.
2478
* bin/apport: Do nothing if the current crash is blacklisted.
2479
* test-apport: Test blacklisting.
2483
* gtk/apport-gtk: Fix return code for restarting the application ('reopen' ->
2484
'restart'). Closes: LP#81422
2485
* test-apport: Adapt to new core_pattern kernel interface mode:
2486
- Check core_pattern instead of the obsolete crashdump sysctl to determine
2487
whether or not apport is running.
2488
- Give apport max. 10 seconds to complete. The current kernel reaps the
2489
crashed process as soon as writing the core dump to the pipe is
2490
finished, but apport still needs to write the report file.
2491
- Do not EXFAIL the test for crashes in nonwriteable cwd any more, since
2492
it is now supposed to work (we do not write a core dump to the disk any
2494
* run-tests, use-local: Adapt to new core_pattern kernel interface.
2495
* apport: Improve logging of exceptions, include environment variables.
2496
* apport/report.py test suite: Use gdb to generate a test core dump, do not
2497
rely on kill(SIGSEGV) and the kernel to do it (since we now use a pipe in
2499
* backends/packaging-dpkg.py: Fix return value of get_modified_files() if
2500
dpkg .list file is missing.
2501
* apport/report.py, add_package_info(): Do not produce stray empty lines for
2502
uninstalled alternative dependencies.
2503
* apport/report.py: Fix test_add_gdb_info_script() to not leave behind a
2504
stray gzip process which randomly blocks stdin. Closes: LP#78421
2505
* backends/packaging-dpkg.py: Do not read the dpkg status in the
2506
constructor, but lazily initialize it when actually calling a query
2507
function. This avoids imposing the dpkg-query overhead for programs that
2508
import the apport package without doing package queries (such as any
2509
Python program under Ubuntu, due to the Python crash hook).
2510
* apport/ui.py, create_crash_bug_title():
2511
- Do not crash on an empty StacktraceTop. Closes: LP#81677
2512
- Do not mention an unknown function name ('??') in the bug title;
2513
instead, use the topmost function with a known name, or leave it out
2515
- Add test cases for these situations.
2516
* apport/report.py, _get_ignore_dom(): Do not throw an error for an empty
2521
* apport/report.py test suite: Refactorize generation of test crash program
2522
and core dump generation.
2523
* Consistently use 'in'/'not in' instead of find() for substring searches.
2524
* Changed the packaging backend import, so that its methods can now be
2525
accessed at apport.packaging instead of apport.packging.impl.
2527
-- Martin Pitt <martin.pitt@ubuntu.com> Sun, 28 Jan 2007 12:34:05 +0100
2529
apport (0.44) feisty; urgency=low
2531
Some more 'Need for Speed' optimizations:
2533
* backends/packaging-dpkg.py, _check_files_md5(): Also accept a md5sum
2534
string in addition to a md5sum file.
2535
* backends/packaging-dpkg.py, get_modified_files(): Compare package file's
2536
ctime and mtime against the package list file's mtime and only md5sum the
2537
files that are newer. This drastically reduces the amount of md5suming
2538
(usually to zero) and thus speeds up the information collection.
2539
* backends/packaging-dpkg.py: Use a single hackish 'dpkg-query --show *'
2540
as a portable variant of 'cat /var/lib/dpkg/status' to pre-fill the status
2541
cache with all packages instead of calling dpkg -s on every single package
2542
we query. This changes the time for figuring out dependencies and their
2543
versions from 'unbearable for many packages' to 'barely noticeable'.
2545
New feature: per-package apport hooks to collect additional information:
2547
* apport/report.py: Add method add_hooks_info() which executes a function
2548
add_info(report) from /usr/share/apport/<package>.py. Also add
2549
appropriate test cases. This provides per-package hooks for apport.
2550
* apport/ui.py: Call add_hooks_info() in the information collection thread.
2554
* apport/report.py: Add some more test cases for _check_interpreted() for
2556
* apport/python_hook.py: Check for a correct ExecutablePath in
2558
* apport/python_hook.py: Use fileutils.likely_packaged() instead of
2559
checking for /tmp and home, so that we ignore stuff in /usr/local, too.
2561
* apport/python_hook.py: If we figure out an ExecutablePath which is not
2562
actually an executable, do not create a report. This particularly affects
2563
interactive python sessions where sys.argv[0] is empty and thus
2564
ExecutablePath ends up being the current directory. Add test cases.
2567
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 24 Jan 2007 17:16:04 +0100
2569
apport (0.43) feisty; urgency=low
2571
* apport/ui.py: Add method create_crash_bug_title() to construct a
2572
reasonable standard bug title for crash reports, so that the automatic
2573
duplicate detection actually has a chance to work. Also add test cases for
2574
various signal crashes and an unhandled Python exception.
2575
* apport/ui.py, file_report(): Submit a default bug title for crash reports.
2578
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 23 Jan 2007 16:26:40 +0100
2580
apport (0.42) feisty; urgency=low
2582
New feature: https://wiki.ubuntu.com/ApportImprovements (kernel interface
2585
* bin/apport: Support calling without arguments, to support new semantics
2586
agreed in the ApportImprovements spec: macro values (in particular, pid
2587
and signal number) are passed as environment variables.
2588
* preloadlib/libapport.c: Simulate new kernel behaviour described above.
2589
* debian/apport.init: Set the kernel's core_pattern sysctl to pipe to apport
2590
if the edgy-style 'crashdump-helper' sysctl helper does not exist.
2594
* bin/apport-retrace: Beautify error message when report file is not
2595
accessible. Closes: LP#79568
2596
* apport/ui.py: Fix crash in the bug pattern search thread if we could
2597
not determine a package name. Closes: LP#77872
2598
* bin/apport: Only unlink the core dump if it still exists. Closes: LP#80866
2599
* gtk/apport-gtk.glade: Fix expand/fill attributes so that the expander gets
2600
all the space when resizing the window. Closes: LP#80987
2601
* problem_report.py, write_mime(): Make sure that multi-line values that go
2602
to the summary are terminated with a newline.
2603
* apport/ui.py: Fix error message invocation for reporting cloakroom upload
2605
* problem_report.py, write_mime(): Fix off-by-one comparison of the 'inline
2606
text' treshold, so that apport's StacktraceTop field appears in bug
2607
summaries. Also fix a corner case in CR line ending handling. Check both
2608
things in the test suite.
2609
* gtk/apport-gtk: Add missing 'import subprocess.'. Closes: LP#81007
2610
* debian/control: Bump apport's and apport-gtk's dependency to python-apport
2611
to make sure that apport.ui is available. Closes: LP#81019
2612
* apport/ui.py: Add missing 'import pwd'. Closes: LP#81033
2616
* apport/ui.py: Get the cloakroom ticket number from the
2617
X-Launchpad-Blob-Token HTTP header instead of parsing the resulting page.
2619
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 23 Jan 2007 11:27:20 +0100
2621
apport (0.41) feisty; urgency=low
2623
New feature: Use Malone cloakroom for uploading reports. Closes: LP#70919
2625
* gtk/apport-gtk.glade: Redesign bug reporting dialog to have a 'Create bug
2626
report' and a 'Cancel' button. Also assign GTK_RESPONSE_* constants to the
2627
dialog buttons. Go back to Glade 2 since Glade 3 still sucks too much.
2628
* gtk/apport-gtk: Adjust workflow for sending report to Malone cloakroom
2629
instead of asking the user to attach the file. Sending is not yet
2630
implemented, though.
2631
* gtk/apport-gtk: Do not show any dialogs any more when filing a bug.
2632
* Add apport/MultipartPostHandler.py: This module provides an urllib2 opener
2633
for uploading file attachments to forms over HTTP POST. This module is
2634
(C) 2006 Will Holcomb <wholcomb@gmail.com> and was taken from
2635
http://odin.himinbi.org/MultipartPostHandler.py. (This is a serious hole
2636
of the Python standard library IMHO.)
2637
* apport/ui.py, file_report(): Upload blob to Malone (edge.launchpad.net for
2638
now), retrieve the ticket, and pass it to +filebug.
2642
* gtk/apport-gtk: Major refactorization to use modal dialogs and run()
2643
instead of loosely coupled event handlers.
2644
* Add apport/ui.py: Abstract frontend which encapsulates the logic, workflow
2645
and UI independent bits and provides UI hooks for concrete
2646
implementations. This both makes it easy to write more frontends like Qt
2647
or CLI, and also makes the code automatically testable. Add an extensive
2649
* run-tests: Add ui.py testsuite.
2650
* gtk/apport-gtk: Port to ui.py's UserInterface (which means moving 1/3 of
2651
the code into the new ui_*() methods and throwing away the rest).
2652
* Add apport/REThread.py: Enhanced threading.Thread class that can propagate
2653
the return value and uncaught exceptions of run() to the calling thread.
2654
* apport/ui.py: Get rid of thread_check_bugpatterns() and hackish exception
2655
handling, rewrite using REThread.
2656
* apport/ui.py, gtk/apport-gtk: Add progress bar to report upload. It is
2657
indefinite for now, because neither urllib2 nor httplib support upload
2662
* gtk/apport-gtk.glade: Merged Gnome HIG fixes from Sebastian Heinlein,
2664
* Merge patch from Sebastian Heinlein to properly treat the apport-gtk icon
2665
the dh_iconcache way and make it themeable. Thank you!
2666
* gtk/apport-gtk: Remove periods from primary dialog texts to comply with
2667
Gnome HIG standards.
2668
* backends/packaging-dpkg.py, get_file_package(): Process list files in
2669
chunks of 100, so that we do not exceed the maximum command line length if
2670
there is a large number of packages installed. Closes: LP#64839
2671
* gtk/apport-gtk: Use pgrep with -u instead of pidof for testing whether the
2672
crashed process is already running again, so that we do not match
2673
processes of other users. Add procps package dependency for this.
2674
* gtk/apport-gtk: Only offer to restart programs that are in the $PATH. E.
2675
g. /usr/lib/firefox/firefox-bin cannot be called directly.
2677
* apport/report.py: Disassemble 16 instructions instead of 32 bytes to
2678
become independent of the instruction size. Thanks to Kees Cook for the
2681
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 22 Jan 2007 10:47:33 +0100
2683
apport (0.40) feisty; urgency=low
2685
* debian/control: Add missing python-dev build dependency, which is
2686
apparently required for 2.5 now.
2688
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 15 Jan 2007 11:06:20 +0100
2690
apport (0.39) feisty; urgency=low
2692
* Introduce abstract packaging interface and move all dpkg/apt specific bits
2693
to a dpkg implementation of this packaging interface (merge
2694
apport/abstract-pkg branch):
2695
- Add apport/packaging.py: Abstract packaging system query interface.
2696
- Add backends/packaging-dpkg.py: dpkg implementation of abstract
2697
packaging interface.
2698
- run-tests: Run tests of all backends.
2699
- apport/fileutils.py, apport/report.py: Port to packaging.py interface.
2700
- debian/control: Drop python-apport's 'python-apt' dependency since the
2701
backend only uses dpkg now (without measurable performance penalty since
2702
it uses internal caching).
2703
- debian/rules: Install backends/packaging-dpkg.py as our packaging
2704
backend to apport/packaging_impl.py and remove it again on clean.
2706
-- Martin Pitt <martin.pitt@ubuntu.com> Sat, 13 Jan 2007 15:53:08 +0100
2708
apport (0.38) feisty; urgency=low
2710
* Add ./COPYING: GPL license.
2711
* debian/rules: Build POT file again.
2712
* apport/fileutils.py: Add get_all_system_reports() and
2713
get_new_system_reports() and added test cases. Now the test suite can also
2714
be run as root to be able to actually check their complete behaviour.
2715
Adapt the other tests to get along with running the tests as root.
2716
* bin/apport-checkreports: Add option --system to check for system crash
2717
reports. Closes: LP#62316
2718
* gtk/apport-gtk: If called through sudo to process system crashes, drop
2719
privileges to the original user in open_url() so that we get the web
2720
browser correctly. (LP#62316) Caveat: The user cannot actually attach the
2721
crash report file directly since it is not accessible to the user; this
2722
will get fixed once Malone is able to link a bug report with uploaded
2725
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 12 Jan 2007 14:29:44 +0100
2727
apport (0.37) feisty; urgency=low
2729
* problem_report.py: Remove the requirement that values must not contain
2730
empty lines. Add test cases that reading and writing values with empty
2731
lines works, and add a test case that load() properly complains about
2732
empty lines in debcontrol encoding (empty lines in values are encoded with
2733
a single space). Closes: LP#78094
2734
* apport/report.py test suite: Do not rely on a particular structure of the
2735
'cat' stacktrace; apparently this is not consistent across architectures.
2736
Instead, compile a segfaulting mini C program, let it dump core, and test
2737
add_gdb_info() on it instead. This also allows us for a more rigid check
2740
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 8 Jan 2007 14:44:08 +0100
2742
apport (0.36) feisty; urgency=low
2744
* gtk/apport-gtk.glade: Restore pulse step of progress bar (this apparently
2745
got destroyed when saving with Glade 3).
2746
* gtk/apport-gtk{,.glade}: Terminate the program properly when closing the
2747
progress dialog instead of exiting with an exception.
2748
* gtk/apport-gtk: Defer opening of the bug reporting window a bit so that
2749
it appears on top of the browser window. Also enable the task bar blinking
2750
for it when it is in the background.
2751
* gtk/apport-gtk.glade: Restore vertical padding of bug report dialog labels
2752
(another Glade 3 transition regression).
2753
* bin/apport-retrace, apport/report.py: Call gdb on InterpreterPath if
2754
present; calling it on a script does not yield anything useful. Add a test
2756
* debian/apport.init: Use mkdir -p instead of install -d, since install is
2757
not in /bin. Thanks to Kees Cook for catching this.
2758
* debian/control: Add missing python-apport dependency 'python-apt', which
2759
is not caught by ${python:Depends}.
2760
* gtk/apport-gtk: Catch MemoryError when loading a report and display an
2761
error dialog instead of just crashing. Closes: LP#76235
2762
* gtk/apport-gtk: Properly catch exceptions from the bug pattern check
2763
thread to avoid useless backtraces like in bug #75160.
2764
* gtk/apport-gtk: Catch exceptions from decoding of damaged reports and
2765
display an error message instead of crashing. Closes: LP#77149
2766
* apport/report.py: Add missing import of 'time' to test suite.
2768
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 5 Jan 2007 09:49:01 +0100
2770
apport (0.35) feisty; urgency=low
2774
* apport/fileutils.py: Split out heuristics for determining whether a file
2775
belongs to a package to new function likely_packaged() and add test cases.
2776
* bin/apport: Do not use the expensive find_file_package() any more, use
2777
likely_packaged() instead. This will create initial reports in some
2778
corner cases (like custom non-packaged executables in /usr/bin/), but
2779
greatly reduces I/O impact at crash time. We rely on apport-gtk to deal
2780
with reports that do not actually belong to a packaged executable.
2781
* apport/report.py, add_gdb_info(): Call gdb just once and split the output
2782
instead of calling it again for each command. This should significantly
2783
speed up the gdb stage especially for large programs/core dumps.
2784
* Use cStringIO instead of StringIO in modules.
2785
* gtk/apport-gtk: Code cleanup and refactorization:
2786
- Move iteration over crash reports into __main__ to simplify housekeeping
2787
in the ApportGTK class and get rid of some functions.
2788
- Refactor creation of temporary report file.
2789
* gtk/apport-gtk.glade: Split the text in the progress bar dialog so that we
2790
can use it for multiple steps (like uploading data to Malone) while not
2791
breaking translations.
2793
New feature: Bug reporting tool (https://wiki.ubuntu.com/BugReportingTool)
2795
* gtk/apport-gtk: Split out crash report initialization to new function
2796
show_crashes() so that we can use the frontend for other purposes like bug
2798
* gtk/apport-gtk: Add --file-bug, --package, and --pid options; if given,
2799
create a bug report about the given package instead of viewing crash
2801
* gtk/apport-gtk{,.glade}: Generalize some strings to not talk about 'crash'
2802
any more, to make them suitable for bug reporting, too.
2803
* gtk/apport-gtk: Support --file-bug without specifying a package or a PID
2804
for filing generic distro bugs.
2805
* problem_report.py: Add new method write_mime() to encode a problem report
2806
in MIME/Multipart RFC 2822 format (i. e. an email with attachments). Short
2807
values are aggregated into the first inline text/plain part, large values,
2808
binary values, and file references get gzip compressed separate
2809
attachments. Also add various test cases.
2811
Bug/crash information:
2813
* apport/report.py, add_user_info(): Add list of system groups that the user
2815
* bin/apport: Call add_user_info(), check functionality in test-apport.
2816
* apport/report.py, add_gdb_info(): Add field 'StacktraceTop' with the top
2817
five functions on the stack and no local variables. This reduced 'glimpse'
2818
is suitable for inline display in bug reports and automatic processing
2823
* po/Makefile: Add top_srcdir to work with current intltool.
2824
* po/de.po: Unfuzz some strings.
2825
* apport/report.py, add_gdb_info(): Strip away the 'No symbol table info
2826
available' messages from stack traces.
2827
* apport/report.py, test_search_bug_patterns(): Use security.u.c. instead
2828
of archive.u.c., since the latter times out too often.
2830
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 3 Jan 2007 16:45:20 +0100
2832
apport (0.34) feisty; urgency=low
2834
* apport/fileutils.py, mark_report_seen(): Do not bail out if os.utime()
2835
fails due to access permissions. This happens if the file does not belong
2836
to the user calling apport-gtk, but is world-readable (such as ubiquity
2837
crash reports). If utime() fails, repeatedly open()/close() the file for
2838
reading until atime != ctime, or the 1.2s timeout is reached.
2840
* apport/python_hook.py: Add unit test, call that in run-tests.
2841
* apport/python_hook.py: Chmod the generated report to 0600 to not expose
2842
potentially private data to the world, and to be consistent with other
2844
* apport/fileutils.py: Add check_files_md5() and test cases.
2845
* apport/report.py, add_package_info(): Append list of modified package
2846
files to Package: and Dependencies: value. Closes: LP#70946
2847
* bin/apport-retrace: Get along with Package:/Dependencies: fields with list
2850
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 22 Dec 2006 12:40:55 +0100
2852
apport (0.33) feisty; urgency=low
2854
* debian/rules: Convert to cdbs. This fixes the dh_pysupport invocation
2856
* gtk/apport-gtk: Rework web browser invocation: Use kfmclient if available,
2857
fall back to firefox-remote, then to webbrowser.open(). Do not call
2858
x-www-browser any more since this would block if no running browser was
2860
* Drop the apport_utils module (and with it the python-apport-utils
2861
package), it became too much of a dumping ground. The report file handling
2862
functions now live in apport.fileutils, and the debugging information
2863
collectors are now methods of a new 'Report' class (subclass of
2864
ProblemReport) in the new apport.report module. Adjust all programs
2866
* Add debian/python-apport.postinst: Remove old .pyc and .pyo cruft on
2867
upgrades to clean up after our broken dh_pysupport invocation in earlier
2868
versions, so that the new modules are actually used.
2869
* Remove debian/apport.postinst: Those cleanups were only necessary for
2870
intra-edgy upgrades.
2872
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 19 Dec 2006 01:15:27 +0100
2874
apport (0.32) feisty; urgency=low
2876
* apport_utils.py: Filter out "no debugging symbols found" warnings from gdb
2877
outputs, and add some tests for this. Thanks to Kees Cook for the patch!
2878
* test-apport: Fix AGENTPATH directory when building the preload library
2879
(recently moved to bin/).
2880
* use-local: Fix path to apport as well (recently moved to bin/).
2881
* apport-retrace: Use ldd on InterpreterPath if present; ldd'ing scripts
2882
will not get us very far. Closes: LP#72201
2884
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 14 Dec 2006 13:42:58 +0100
2886
apport (0.31) feisty; urgency=low
2888
* Move scripts to bin/ in source package.
2889
* Add apport/python_hook.py: Default exception handler for Python, to create
2890
apport reports for unhandled exceptions. Thanks to Robert Collins
2891
<robert@ubuntu.com> for this! Closes: LP#70957
2892
* Add new package python-apport to ship the new Python package 'apport'.
2893
This includes the python crash hook for now, but in the near future
2894
apport-utils will get redesigned and put into this package, too.
2895
* debian/control: apport now depends on python-apport instead of
2896
python-apport-utils.
2897
* apport_utils.py: Quiesce gdb error messages in test suite.
2899
-- Martin Pitt <martin.pitt@ubuntu.com> Sat, 25 Nov 2006 12:30:41 +0100
2901
apport (0.30) feisty; urgency=low
2903
* test-apport, use-local: Support both kernel 2.6.17 and 2.6.19 sysctl names
2904
(crashdump-helper vs. crashdump).
2905
* gtk/apport-gtk.glade: Improve dialog title capitalization.
2907
* debian/apport.cron.daily: Immediately exit if /var/crash does not exist.
2908
Create /var/crash in debian/apport.init if it does not exist.
2910
* Convert all tabs in Python source code files to spaces to comply to PEP 8.
2911
Thanks to Robert Collins for pointing this out.
2912
* apport_utils.py, gtk/apport-gtk: Do not pass None to subprocess arguments
2913
if report belongs to a non-packaged program. Thanks to Robert Collins for
2914
discovering and fixing this! Closes: LP#70942
2915
* debian/apport.init: Change /var/crash permissions to 1777, so that custom
2916
crash handlers (in Python/Mono/etc.) can put reports there.
2918
-- Martin Pitt <martin.pitt@ubuntu.com> Sat, 25 Nov 2006 10:44:33 +0100
2920
apport (0.29) feisty; urgency=low
2922
* apport-retrace: Do not crash if a linked library is not a dependency.
2925
- Add test_find_file_package_diversion() selftest to check diversion
2927
- find_file_package(): Check for and respect diversions.
2929
* debian/apport.init, test-apport, use-local: Adapt to 'crashdump-helper' ->
2930
'crashdump' sysctl renaming in 2.6.19.
2931
* test-apport: Restore cwd even when failing a test.
2932
* problem_report.py, ProblemReport.write(): Support file-like objects as
2933
argument of file references to support direct reading from pipes. Add test
2934
case test_write_fileobj().
2935
* apport: Support '-' as core file argument, in which case the core will be
2936
read from stdin. This paves the way for using Linux 2.6.19's 'pipe
2937
core_pattern' feature. Bump python-problem-report dependency to >= 0.29
2939
* apport: Confine permissions of log file to root:adm 0640, just in case.
2940
* apport: Temporarily drop real u/gid to target user for the os.access()
2941
tests, so that normal users cannot verify the existence of a given
2942
inaccessible file. Add comprehensive tests to apport_utils' test suite and
2943
test-apport. Thanks to Kees Cook for this patch!
2944
* apport_utils.py, find_file_package(): Terminate fgrep options with '--' to
2945
avoid problems with funny file names. Thanks to Kees Cook for spotting
2947
* test-apport: Automatically detect whether ULIMIT_CORE is nonzero, and
2948
adapt tests accordingly: check that core still exists after invoking
2949
apport, and clean it up.
2950
* apport-retrace: Add new mode -g/--gdb which starts an interactive gdb
2951
session with the report's core dump. Add this to man/apport-retrace.1, too.
2952
* apport-retrace: If -c is given, completely remove the CoreDump field from
2953
the report instead of setting it to 'removed'.
2954
* test-apport: When using 'lib' mode, point APPORT_LOG_FILE to a temporary
2955
file. Print it if the test suite fails.
2956
* test-apport: Fix EXFAILure of the 'core dump works for non-writable cwds'
2958
* preloadlib: Support -DPIPE_CORE mode which emulates the
2959
pipe-in-core_pattern mode of kernel 2.6.19.
2960
* test-apport: Build preload library with core piping. No more failed test
2961
suite checks in 'lib' mode.
2963
-- Martin Pitt <martin.pitt@ubuntu.com> Sun, 5 Nov 2006 07:10:30 -0800
2965
apport (0.28) edgy; urgency=low
2969
* apport: Do not create a report for crashes which we do not get a core dump
2970
for. The reports are useless and only clutter our bug tracker.
2972
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 9 Oct 2006 15:22:32 +0200
2974
apport (0.27) edgy; urgency=low
2976
* apport: Ignore SIGABRT for now; it's usually signalled from abort() or
2977
assertion failures and we only get reports with unusable stack traces for
2979
* gtk/apport-gtk: If gnome-open is not available, fall back to x-www-browser
2980
instead of using webbrowser.py, to respect default browser in XFCE.
2982
* apport: use os.nice() instead of executing 'renice'. Thanks to Benoit
2983
Boissinot for noticing.
2984
* apport_utils.py, find_file_package(): Lower() both strings in the speedup
2985
heuristics to match e. g. /usr/bin/Xorg -> xserver-xorg. Thanks to Kees
2987
* apport_utils.py, report_add_package_info(): Do not crash if we encounter a
2988
'None' current version, which can happen with uninstalled alternative
2989
dependencies. Thanks to Kees Cook for tracking this down!
2991
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 6 Oct 2006 17:15:08 +0200
2993
apport (0.26) edgy; urgency=low
2995
* apport-retrace: Clean up code a bit:
2996
- Move option parsing to separate function.
2997
- Use apport_utils' report_add_gdb_info() instead of duplicating the gdb
2999
* apport_utils.py, report_add_gdb_info(): Add optional parameter 'debugdir'
3000
to specify an alternate debug file symbol root directory.
3001
* apport-retrace: Add option -d/--download-debug to automatically download
3002
available ddebs, create a temporary debug symbol directory from already
3003
installed and downloaded ddebs, and point gdb to use that. Also add option
3004
-C/--cache-dir to specify a permanent ddeb cache directory (by default, a
3005
temporary one is used). Update the manpage accordingly.
3006
* apport-retrace: Make the best out of a report without packaging
3007
information (which can happen if the user does not click on 'report bug'
3009
* apport_utils, report_add_proc_info():
3010
- Move heuristics for detecting interpreted scripts to a separate function
3011
to be able to provide separate test cases for it. Check a few more
3012
special cases for mono programs.
3013
- Make interpreter heuristics even scarier to detect some more mono corner
3014
cases (like banshee and beagled-helper). Closes: LP#58859
3016
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 4 Oct 2006 19:10:47 +0200
3018
apport (0.25) edgy; urgency=low
3020
* Drop apport-gtk's update-notifier dependency to a Recommends:.
3021
* apport_utils.py, report_add_gdb_info(): Add register dump and disassembly
3022
of the last 32 bytes, they might be useful to see what's going on
3023
sometimes. Thanks to Kees Cook for the idea and the patch.
3024
* test-apport, check_crash(): Verify that a crash does not leave a core file
3025
behind. (Test for LP#62972)
3026
* preloadlib/libapport.c: Do not unlink the core file after calling apport,
3027
but set REMOVE_CORE=1 environment instead. This matches the current
3029
* apport: Register an atexit handler as early as possible for unlinking the
3030
core dump if REMOVE_CORE environment is set. Closes: LP#62972
3031
* apport: Set nice level 10 instead of 5. Closes: LP#63099
3033
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 2 Oct 2006 14:21:53 +0200
3035
apport (0.24) edgy; urgency=low
3037
The "Need for speed" release -- rrrroarrr!
3039
* apport: Remove _copy_shrink_corefile(): While this has an enormous impact
3040
on the size of an uncompressed core dump, it only causes a negligible size
3041
reduction of the bzip2'ed core, but it needs a lot of I/O resources for
3043
* problem_report.py:
3044
- Use zlib instead of bzip2 for compressing the binary data (in
3045
particular, core dumps). This results in slightly bigger files, but speeds
3046
up compression a lot (30 seconds vs. ~2:45 minutes for a Firefox core dump
3047
on my slow iBook). Closes: LP#61538
3048
- ProblemReport.read(): Support both bzip2 and zlib compression to be able
3049
to read existing reports, too.
3050
- Add/Adapt test cases.
3051
* Move InformationCollector._get_gdb() from apport to apport_utils.py
3052
report_add_gdb_info(), and add a test case for it.
3053
* apport_utils.py, report_add_package_info(): Support calling without a
3054
package name, then it will be figured out from ExecutableName. Extend test
3056
* test-apport: Do not require apport reports to contain gdb, packaging, and
3057
OS information, since we are going to move them out of apport.
3058
* apport: Do not collect static information. It requires a lot of CPU and
3059
I/O resources and slows down the machine a lot, and it can be added to
3060
the report later in the frontend. This also gets rid of the entire
3061
InformationCollector class, since everything has been moved to
3062
apport_utils.py now. Closes: LP#62542
3063
* apport: Do not intercept KeyboardInterrupt as unhandled exception (only
3064
useful for command line debugging, though).
3065
* problem_report.py: Add test case for appending new data to an existing
3066
report, fix write() function to not rely on an existing ProblemType key.
3067
* problem_report.py: Add new method ProblemReport.add_to_existing() to
3068
update an already existing problem report with new data. Add test case.
3069
* apport_utils.py, mark_report_seen(): Use os.utime() instead of
3070
open()/read() and a timeout for simpler and faster operation.
3072
- Collect gdb/packaging/operating system information when the user chooses
3073
to file a bug and update the apport report.
3074
- Change the 'Downloading bug patterns...' progress dialog to 'Collecting
3075
information about the crash...'.
3076
* debian/control: Bumped library dependencies of apport-gtk, added
3077
update-notifer dependency.
3079
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 29 Sep 2006 15:47:56 +0200
3081
apport (0.23) edgy; urgency=low
3083
* apport: Reset signal handler to SIG_IGN in the crash signal handler, to
3084
avoid an endless crash/handler loop (noticed during debugging LP#61708).
3085
* debian/apport.init: Do not let the script run with set -e, so that
3086
do_{start,stop} can deliver their return codes for proper evaluation,
3087
instead of immediately existing. Closes: LP#61796
3088
* test-apport: Check that SIGQUIT does not generate a report. (Check for
3090
* apport: Ignore SIGQUIT. Closes: LP#62511
3092
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 28 Sep 2006 20:57:38 +0200
3094
apport (0.22) edgy; urgency=low
3096
* apport_utils.py, report_add_proc_info(): Make 'interpreted script'
3097
detection more general to also work for mono programs.
3098
* test-apport: Check that non-packaged scripts do not generate a report.
3099
* apport: Call ic.collect_runtime_information() earlier and drop the local
3100
/proc/pid/exe examination, so that we get proper script detection. This
3101
avoids getting crash reports for non-packaged scripts (see test case
3103
* apport: Do not try to chmod the report file if we could not create it and
3104
output to stderr instead (this mainly affects local testing only).
3105
* apport_utils.py, find_file_package(): First grep the package lists whose
3106
names are a substring of the crashed binary name (or vice versa), to
3107
immensely speed up the package name determination in many cases.
3108
* apport: Drop the maximum number of consecutive crashes per executable
3109
from 5 to 2. 5 creates a too bad user experience and creates the
3110
impression that it will never stop. Closes: LP#61078
3112
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 19 Sep 2006 16:16:46 +0200
3114
apport (0.21) edgy; urgency=low
3116
* apport: Keep a partially written report with '000' permissions, and only
3117
chmod it to 0600 when it is fully written. This stops update-notifier from
3118
picking up half-written reports and get activated several times.
3120
* apport: Add the executable path to the first line of logging.
3121
* apport: Run the complete code under control of the general exception
3123
* debian/apport.default: Increase maximum core size to 200 MB, to also catch
3124
Firefox and Evolution core dumps.
3125
* apport_utils.py, find_file_package(): Before searching the dpkg database
3126
(which is expensive), check if the executable path matches a whitelist of
3127
path prefixes. This replaces the weaker blacklist (/tmp and /home) in
3129
* gtk/apport-gtk: Show a progress dialog while checking for bug patterns and
3130
execute report_search_bug_patterns() in a separate thread, so that the UI
3131
is not potentially blocked for a long time.
3132
* apport: Gracefully abort if we cannot readlink /proc/pid/exe, instead of
3133
falling over with an exception. Closes: LP#59993
3134
* debian/rules: Use 'multiuser' instead of 'defaults' for dh_installinit.
3135
Clean up the unnecessary rc symlinks in postinst and add appropriate
3138
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 14 Sep 2006 23:16:26 +0200
3140
apport (0.20) edgy; urgency=low
3142
* apport: Renice ourself to priority 5 to not slow down the user's processes
3144
* Add manpages for apport-retrace(1) and apport-unpack(1) and install them
3145
into apport. Closes: LP#58463
3146
* problem_report.py: Test attaching two files instead of one in the
3147
test_write_file() regression check to assert correct key sorting.
3148
* problem_report.py: Alter write() method to sort binary data to the end of
3149
the report. This makes reports easier to read, and also shows relevant
3150
information more quickly when progressively loading them in a web browser.
3151
Adapt regression tests accordingly.
3152
* Move setting of ExecutablePath from apport's InformationCollector ctor to
3153
apport_utils' report_add_proc_info(), where it belongs to. Check
3154
ExecutablePath in apport_utils' regression tests.
3155
* apport-unpack: Support '-' as report argument to read from stdin.
3156
* apport_utils.py, report_add_proc_info():
3157
- Apply some heuristics to determine whether the crashed process is an
3158
interpreted script (check if the Name in /proc/pid/status matches
3159
the second /proc/pid/cmdline part, and if that command line argument is
3160
an existing executable file). In the case of an interpreted script, set
3161
ExecutablePath to the script and InterpreterPath to the actually crashed
3163
- Test this with a shell (/bin/zgrep) and a Python (./apport-unpack)
3164
script in the test suite.
3166
* Add debian/apport.logrotate to add a daily 7-step /var/log/apport
3168
* test-apport: Fix WCOREDUMP() and pidof checks in check_crash().
3169
* apport: Install a signal handler for all 'crashy' signals, which just logs
3170
the signal and stack info and exits. This should avoid a crashing apport
3171
examining itself, possibly in an endless loop. Closes: LP#58873
3173
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 11 Sep 2006 09:20:18 +0200
3175
apport (0.19) edgy; urgency=low
3177
* apport_utils.py: Add function report_search_bug_patterns(): Try to
3178
download a package specific bug pattern XML file from a given URL base
3179
directory and return the bug URL in case of a match. Also add extensive
3181
* test-apport: Fix help message.
3182
* apport-gtk: Make use of the new report_search_bug_patterns() function and
3183
display appropriate instructions on match. Bump python-apport-utils dependency.
3185
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 5 Sep 2006 11:31:17 +0200
3187
apport (0.18) edgy; urgency=low
3189
The "mating dance for ubiquity" release.
3192
- Use pidof's -x option in the detection whether the program is already
3193
running to correctly handle scripts.
3194
- Do not assume the presence of the ExecutablePath key in reports, but
3195
gracefully fall back to Package.
3196
- If the report specifies an explicit DesktopFile, use that instead of
3197
trying to figure it out.
3198
- Only created reduced report and show the radio buttons if there are
3199
actually removed fields.
3200
- Change tooltip of 'reduced report' radio button to be more generic (do
3201
not refer to the memory dump, but to 'large items', since this is what
3202
apport-gtk currently does).
3203
- Support new field 'BugDisplayMode: file | list (default)'. In 'file'
3204
mode, display the /+filebug page instead of /+bugs and change
3205
instructions accordingly.
3206
- Use the ProcCmdline attibute to restart an application; correctly
3207
parsing of all the desktop file is just not possible at this point.
3208
- Support new field 'RespawnCommand' to use custom respawning command.
3209
* problem_report.py: Add method has_removed_fields() to check whether load()
3210
skipped any fields due to binary=False. Add test suite check.
3211
* apport_utils.py: Fix the quoting in ProcCmdline so that it is fully shell
3213
* run-tests: Check if kernel crash dump helper is active, and if so, run
3214
test-apport in kernel mode.
3215
* problem_report.py: Support an optional second argument of file references
3216
which controls whether or not the file contents will be compressed/encoded
3217
(defaults to True for backwards compatibility). Add test suite checks.
3219
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 25 Aug 2006 14:01:47 +0200
3221
apport (0.17) edgy; urgency=low
3223
* Move packaging information collection from apport to new function
3224
report_add_package_info() in apport_utils.py, add test suite check.
3225
* Move operating system information collection from apport to new function
3226
report_add_os_info() in apport_utils.py, add test suite check.
3227
* Move /proc information collection from apport to new function
3228
report_add_proc_info() in apport_utils.py, add test suite check, and fix
3229
handling of failed /proc/$$/environ reading.
3230
* preloadlib/libapport.c: Route gcore's stderr to /dev/null to suppress
3231
error messages during the test suite and to become more compatible to the
3233
* Change apport_utils.py to be a public module and ship it in the new
3234
python-apport-utils package, so that other applications like ubiquity can
3236
* po/de.po: Add new translations to make this complete again.
3237
* problem_report.py, apport_utils.py: Prepend UnitTest classes with '_' so
3238
that they do not appear in the help() output.
3239
* apport_utils.py: Add make_report_path(), which constructs the canonical
3240
crash report pathname for a given report.
3241
* Add debian/apport.postinst: Remove /usr/share/apport/apport_utils.pyc when
3242
upgrading from an earlier version, so that the programs in
3243
/usr/share/apport actually use the version from p-apport-utils.
3245
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 22 Aug 2006 18:14:00 +0200
3247
apport (0.16) edgy; urgency=low
3249
* test-apport: Check that non-packaged binaries do not generate a report.
3250
* apport_utils.py: Add find_file_package() to find the package a file
3251
belongs to. This uses fgrep /var/lib/dpkg/info/*.list which is much faster
3252
than dpkg -S. Also add test suite check.
3253
* apport: Use find_file_package() instead of direct dpkg -S call and pass
3254
the result to the InformationCollector ctor to avoid grepping the dpkg
3256
* apport: Immediately exit if the executable name starts with /home or /tmp,
3257
to avoid grepping the dpkg database in the common developer case.
3258
* apport: Replace 0-bytes in ProcCmdline with spaces to keep them readable.
3259
* apport-gtk: Offer an alternative small report (without the core dump) for
3260
users with slow internet connection.
3262
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 21 Aug 2006 19:34:47 +0200
3264
apport (0.15) edgy; urgency=low
3266
* Add apport-unpack: Script to extract the fields of a problem report into
3267
separate files into a new or empty directory. Mainly useful for extracting
3268
compressed binary data like the core dump.
3269
* test-apport: Check that dumped environment only contains security
3270
insensitive variables.
3271
* apport: Filter out all environment variables but $SHELL, $PATH, and
3272
locale/language related ones. Closes: LP#56846
3273
* test-apport: Delete test report in the cleanup handler so that the
3274
kernel-mode test can be run multiple times without manual cleanup.
3275
* test-apport: Check for running apport and test executable processes in
3277
* preloadlib/libapport.c: Improve error checking, some robustification.
3278
* test-apport: If using the preload library, wait a second between the test
3279
process invocations in the flooding test to mitigate a strange race
3280
condition that sometimes causes the signal handler not to be executed.
3282
-- Martin Pitt <martin.pitt@ubuntu.com> Sun, 20 Aug 2006 16:28:43 +0200
3284
apport (0.14) edgy; urgency=low
3286
* preloadlib/libapport.c: Write core dump into cwd instead of /tmp to act
3287
like the current kernel.
3288
* apport_utils.py: Check APPORT_REPORT_DIR environment variable for an
3289
alternate crash report directory. This is mainly useful for a local test
3291
* apport: Quiesce the apt module's FutureWarning.
3292
* preloadlib/libapport.c: Re-raise the signal instead of doing exit() so
3293
that the process exits with the same code as it would do without the
3295
* preloadlib/libapport.c: Close stdout for gcore process.
3296
* Add test-apport: Use preloadlib/ and APPORT_REPORT_DIR to create a
3297
sandboxed environment and run various apport functionality tests. Also add
3298
this script to run-tests.
3299
* apport_utils.py, delete_report(): Actually try to unlink the report before
3300
falling back to truncating it to zero bytes.
3301
* preloadlib/libapport.c: Close stderr for apport process.
3303
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 18 Aug 2006 15:46:37 +0200
3305
apport (0.13) edgy; urgency=low
3307
* Do not run the test suite on build since on the buildds modifying
3308
file atimes does not work.
3310
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 18 Aug 2006 00:59:26 +0200
3312
apport (0.12) edgy; urgency=low
3314
* apport-gtk: Make bug report window resizable when the details are
3315
expanded. Closes: LP#56672
3316
* apport_utils.py: Add get_recent_crashes() and a test suite check for it.
3317
* apport: If the same binary produced more than 5 crashes in the last 24
3318
hours, ignore the crash. This is a hideous and pretty ad-hoc band-aid to
3319
avoid flooding users with reports for continuously crashing respawning
3320
processes. Closes: LP#56362
3321
* apport: Clean up exit codes to only exit with 0 if report was created, and
3322
with 1 otherwise (to become more compatible to proposed future kernel
3323
behaviour, where core dumps are only generated on demand).
3324
* Add run-tests script which calls all available selftests.
3325
* debian/rules: Run run-tests during build to have the package FTBFS on
3326
regressions. Add python build dependency for this (it is already there
3329
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 17 Aug 2006 16:06:41 +0200
3331
apport (0.11) edgy; urgency=low
3333
* gtk/apport-gtk.glade: Remove separators from dialogs. Closes: LP#56326
3335
- Move information collection from ctor to two new separate functions
3336
collect_runtime_information() (fast, privileged, crashed process must
3337
exist) and collect_static_information() (slow, unprivileged, crashed
3338
process does not need to exist). This allows a cleaner design.
3339
- Add missing close() call in init_error_log().
3340
- Do not catch SystemExit in the final catch-all-and-log clause (will
3341
become important once we switch to master/slave processes).
3342
- Clean up handling of temporary files.
3343
- Log successful report creation with file and package name, to ease
3345
- transitive_dependencies(): Do not break on pure virtual dependencies
3346
(like perl-api-XXX).
3347
* Add debian/apport.default: Default file to disable apport entirely and to
3348
change the maximum size of kernel created core dumps.
3349
* debian/apport.init: Evaluate new default file.
3351
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 16 Aug 2006 17:05:19 +0200
3353
apport (0.10) edgy; urgency=low
3355
* apport-gtk: Show report file size in bug report window.
3356
* apport: Correctly handle relative paths to core dumps (use crashed
3358
* Fix the GPL URLs in source file's copyright comments.
3359
* debian/apport.cron.daily: Add -mindepth 1 to find commands to avoid
3360
attempting to remove the /var/crash/ directory. Closes: LP#55107
3361
* problem_report.py:
3362
- Fix precise whitespace handling in continuation lines, add selftest.
3363
- Add selftest for reading a report, modifying fields, and writing it
3365
- Fix writing back binary data, adapt test suite to check it.
3366
- Fixed ProblemReport.load() to clean up old data, added selftest.
3367
- Restructure class to inherit from IterableUserDict and throw away all
3368
the now obsolete dictionary wrapper methods.
3369
* debian/apport.init: Add colon to description to make output less
3371
* Add apport-retrace and install it into apport: This tool takes a crash
3372
report and refreshes the stack traces in it. This is particularly useful
3373
if debug symbols are installed now, but haven't been at the time the crash
3376
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 11 Aug 2006 15:40:05 +0200
3378
apport (0.9) edgy; urgency=low
3380
* apport: Call objcopy to throw out READONLY/CODE sections from the core
3381
dump, which drastically reduces its (uncompressed) size (factor 2 to 10).
3382
This has little effect on the bzip2'ed core dump, though.
3384
- Support an optional third command line argument which specifies the
3385
location of a core dump.
3386
- If a core dump is given, call gdb on the core dump instead of the
3387
crashed process. We cannot attach to the latter if we are called by the
3388
kernel (since the crashed process is in uninterruptible kernel sleep).
3389
- If no core dump is given, do not attempt to do anything gdb related.
3390
- This matches the future behaviour of the kernel crash dump helper while
3391
remaining compatible to the previous call semantics.
3392
* Add preloadlib/{Makefile,libapport.c}: LD_PRELOADable library which
3393
emulates the future kernel behaviour. This is ONLY for testing and
3394
development purposes. It uses unsafe temporary file handling and thus must
3395
not be used on production boxes!
3396
* Ship preloadlib/* as examples in package 'apport' for people who want to
3397
play with it until the new kernel arrives.
3398
* Add preloadlib/README: Explain how to use the preload library.
3400
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 9 Aug 2006 12:12:20 +0200
3402
apport (0.8) edgy; urgency=low
3405
- Add two new functions seen_report() and mark_report_seen().
3406
- get_new_reports(): Only return unseen reports, add function
3407
get_all_reports() for the old behaviour.
3408
* gtk/apport-gtk.py: Do not delete reports after notifying about them. This
3409
way, we do not need to add another button to save the report (which is
3410
considered evil UI-wise), but still retain the report for filing and
3412
* Replace all usages of '/var/crash' to a new global variable in
3413
apport_utils; this is particularly useful for test suites.
3414
* apport.py: Overwrite old reports if they are seen.
3415
* apport_utils.py: Add a test suite for all exported functions.
3417
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 8 Aug 2006 19:29:23 +0200
3419
apport (0.7) edgy; urgency=low
3421
* Add apport_utils.py: Factorize out some common code of apport-gtk,
3422
possible future frontends, and some backend tools.
3423
* Add apport-checkreports: Test if there are new crash reports for the
3424
invoking user. This factorizes out the tests we currently do in
3425
update-notifier and makes them easier to change and keep in sync with
3426
apport itself. Ship the script in the apport package.
3428
-- Martin Pitt <martin.pitt@ubuntu.com> Tue, 8 Aug 2006 17:24:46 +0200
3430
apport (0.6) edgy; urgency=low
3432
* Add missing intltool build dependency to fix FTBFS.
3434
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 3 Aug 2006 09:15:42 +0200
3436
apport (0.5) edgy; urgency=low
3438
* apport-gtk: Remove the crash report after it got displayed.
3439
* apport-gtk: Fix exception on startup if no readable crash reports exist.
3441
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 2 Aug 2006 23:42:34 +0200
3443
apport (0.4) edgy; urgency=low
3445
* Implement completely new UI according to the design described at
3446
https://wiki.ubuntu.com/CrashReporting. Many thanks to Matthew Paul
3448
* po/Makefile: Fix default target to not just break. Now it builds the .pot
3450
* debian/rules: Build .pot file on package build for automatic Rosetta
3452
* Bring German translations up to date.
3453
* po/Makefile: Supply '--language=python' to intltool-update to properly
3454
extract strings from apport-gtk.
3456
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 2 Aug 2006 23:14:58 +0200
3458
apport (0.3) edgy; urgency=low
3460
* debian/rules clean: Also clean po/.
3461
* debian/apport.cron.daily: Clean away empty files everytime.
3462
* apport: Only consider a report as already present if it has a non-zero
3464
* apport: Set proper group for report files instead of 'root'.
3465
* apport-gtk: Ignore 0-sized reports.
3466
* apport-gtk: Add button to remove the current report (by truncating the
3467
file to zero bytes; a user cannot unlink files in /var/crash).
3468
* apport-gtk: Only display reports that the user can actually read.
3469
* problem_report.py: Add 'binary' option to ProblemReport.load() to
3470
optionally skip binary data.
3471
* debian/rules: Clean stale *.pyc files.
3472
* python-gtk: Do not load binary data (core dumps, etc.) to greatly speed up
3473
the GUI. They are just gibberish anyway.
3474
* apport: Switch from apt_pkg to apt, add SourcePackage: to reports.
3475
* apport-gtk: Use source package name for the Malone URL.
3476
* debian/rules: Call setup.py install with --no-compile to not ship *.pyc in
3479
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 31 Jul 2006 13:11:52 +0200
3481
apport (0.2) edgy; urgency=low
3483
* debian/apport.cron.daily: Do not produce error messages if 'find' does not
3484
find any crash reports.
3485
* problem_report.py: Support iterators, add test case.
3486
* apport: Filter out trailing 0-byte from ProcCmdline.
3487
* Add a simple GTK frontend, ship it in new package apport-gtk.
3489
-- Martin Pitt <martin.pitt@ubuntu.com> Thu, 27 Jul 2006 23:52:33 +0200
3491
apport (0.1) edgy; urgency=low
3493
* Initial release. This package implements the client backend part of
3494
https://wiki.ubuntu.com/AutomatedProblemReports.
3496
-- Martin Pitt <martin.pitt@ubuntu.com> Mon, 24 Jul 2006 14:21:10 +0200