/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/crash.py

  • Committer: Jelmer Vernooij
  • Date: 2011-01-19 18:40:15 UTC
  • mfrom: (5622 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5624.
  • Revision ID: jelmer@samba.org-20110119184015-ahycpz0yduideif0
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
A crash is an exception propagated up almost to the top level of Bazaar.
21
21
 
22
22
If we have apport <https://launchpad.net/apport/>, we store a report of the
23
 
crash using apport into it's /var/crash spool directory, from where the user
 
23
crash using apport into its /var/crash spool directory, from where the user
24
24
can either manually send it to Launchpad.  In some cases (at least Ubuntu
25
25
development releases), Apport may pop up a window asking if they want
26
26
to send it.
143
143
    exc_type, exc_object, exc_tb = exc_info
144
144
 
145
145
    pr = Report()
146
 
    # add_proc_info gives you the memory map of the process, which is not so
147
 
    # useful for Bazaar but does tell you what binary libraries are loaded.
148
 
    # More importantly it sets the ExecutablePath, InterpreterPath, etc.
 
146
    # add_proc_info sets the ExecutablePath, InterpreterPath, etc.
149
147
    pr.add_proc_info()
 
148
    # It also adds ProcMaps which for us is rarely useful and mostly noise, so
 
149
    # let's remove it.
 
150
    del pr['ProcMaps']
150
151
    pr.add_user_info()
151
152
 
152
153
    # Package and SourcePackage are needed so that apport will report about even
173
174
    pr['Package'] = 'bzr'
174
175
 
175
176
    # tell apport to file directly against the bzr package using 
176
 
    # <https://bugs.edge.launchpad.net/bzr/+bug/391015>
 
177
    # <https://bugs.launchpad.net/bzr/+bug/391015>
177
178
    #
178
179
    # XXX: unfortunately apport may crash later if the crashdb definition
179
180
    # file isn't present