Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(849)

Issue 126015: Extract breakpad symbol files for Linux official builds. (Closed)

Created:
11 years, 6 months ago by Michael Moss
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Extract breakpad symbol files for Linux official builds. These are archived and submitted to the crash server by the official builder (coming in a separate buildbot CL).

Patch Set 1 #

Patch Set 2 : rename symbol file #

Total comments: 1

Patch Set 3 : shell out to helper script #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -0 lines) Patch
A build/linux/dump_app_syms View 1 chunk +44 lines, -0 lines 5 comments Download
A build/linux/dump_signature.py View 1 chunk +31 lines, -0 lines 3 comments Download
M chrome/chrome.gyp View 1 2 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Michael Moss
11 years, 6 months ago (2009-06-11 22:54:19 UTC) #1
TVL
+mark for the redirect in an action. http://codereview.chromium.org/126015/diff/4/1002 File chrome/chrome.gyp (right): http://codereview.chromium.org/126015/diff/4/1002#newcode2326 Line 2326: '<(PRODUCT_DIR)/chrome', ...
11 years, 6 months ago (2009-06-12 12:35:09 UTC) #2
Michael Moss
Moved symbol dumping to helper script.
11 years, 6 months ago (2009-06-12 17:10:41 UTC) #3
Michael Moss
And added tool (from thestig) to regenerate breakpad signature.
11 years, 6 months ago (2009-06-12 17:11:22 UTC) #4
TVL
lg
11 years, 6 months ago (2009-06-12 17:15:02 UTC) #5
Mark Mentovai
11 years, 6 months ago (2009-06-12 17:30:10 UTC) #6
http://codereview.chromium.org/126015/diff/5/1006
File build/linux/dump_app_syms (right):

http://codereview.chromium.org/126015/diff/5/1006#newcode1
Line 1: #!/bin/sh
svn:executable and svn:eol-style?

http://codereview.chromium.org/126015/diff/5/1006#newcode29
Line 29: echo "ERROR: Could not create temp stripped '$INFILE'"
echo blah >& 2 (also for usage()?)

http://codereview.chromium.org/126015/diff/5/1006#newcode34
Line 34: "$DUMPSYMS" "$INFILE" > "$OUTFILE"
In the Mac version of this script, we have an -nt check to avoid wasting time
doing any work when outfile already exists and is newer than infile.

http://codereview.chromium.org/126015/diff/5/1006#newcode43
Line 43: sed -i "1s/[0-9A-F]* $INFILE_BASE/$NEWSIG $INFILE_BASE/" "$OUTFILE"
This is slightly dangerous in the general case because INFILE_BASE has not
really been scrubbed for sanity.  This should be fine if the sed script is
simply "1s/^[0-9A-F]* /$NEWSIG /".

http://codereview.chromium.org/126015/diff/5/1006#newcode44
Line 44: 
nit: blank line at EOF doesn't contribute anything positive

http://codereview.chromium.org/126015/diff/5/1007
File build/linux/dump_signature.py (right):

http://codereview.chromium.org/126015/diff/5/1007#newcode19
Line 19: sys.stderr.write("Error, did not read first page of data.\n");
Don't we want sys.exit(1) here too?

http://codereview.chromium.org/126015/diff/5/1007#newcode26
Line 26: out = ''
I have a better recipe for this, and it's endian-neutral:

# at top
import struct

# here
out = '%08x%04x%04x%02x%02x%02x%02x%02x%02x%02x%02x0' %
struct.unpack('I2H8B',struct.pack('16B',*signature))

(note I've left the 0 on the end.)

http://codereview.chromium.org/126015/diff/5/1007#newcode30
Line 30: out += '0'
I know what the 0 means, but will others?

Put a comment here, even just a same-line deal like

out += '0'  # Linux always uses generation 0

Powered by Google App Engine
This is Rietveld 408576698