Bug 82673 - new-run-webkit-tests: crashes when it fails to decode a stack trace
Summary: new-run-webkit-tests: crashes when it fails to decode a stack trace
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-29 15:50 PDT by Dirk Pranke
Modified: 2012-03-29 16:00 PDT (History)
7 users (show)

See Also:


Attachments
Patch (3.13 KB, patch)
2012-03-29 15:51 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2012-03-29 15:50:15 PDT
new-run-webkit-tests: crashes when it fails to decode a stack trace
Comment 1 Dirk Pranke 2012-03-29 15:51:34 PDT
Created attachment 134685 [details]
Patch
Comment 2 Dirk Pranke 2012-03-29 15:52:33 PDT
landing w/o review because this is causing build crashes, but I'm still not 100% sure this is the best thing to do, or if we should even be assuming DRT/WTR emit utf-8 by default.
Comment 3 Dirk Pranke 2012-03-29 15:53:51 PDT
Committed r112594: <http://trac.webkit.org/changeset/112594>
Comment 4 Eric Seidel (no email) 2012-03-29 15:55:08 PDT
Comment on attachment 134685 [details]
Patch

The output from the driver is not UTF8.  The diffs can contain all sorts of non-utf8 characters, effectively binary.  We shouldn't be decoding the output at all, assuming I'm remembering correctly.
Comment 5 Eric Seidel (no email) 2012-03-29 15:55:57 PDT
By "diffs" I meant, the output from the tests.  It's common for a test to have non-utf8 characters rendered in it.  At least that's my recollection.  I'm surprised that we were interpreting the output from the drivers as utf8 in teh first place.
Comment 6 Dirk Pranke 2012-03-29 16:00:22 PDT
(In reply to comment #5)
> By "diffs" I meant, the output from the tests.  It's common for a test to have non-utf8 characters rendered in it.  At least that's my recollection.  I'm surprised that we were interpreting the output from the drivers as utf8 in teh first place.

You're correct, generally speaking. The case in question is what happens when we get a stack trace, though. pnormand thought we were getting utf-8, but that might be gtk-specific. It might be that we should decode utf-8 for stderr, but not decode stdout at all, or it might be that we should just do something port-specific.

This patch is strictly better than what was there before (since we were trying to decode and crashing), but we should continue to look at the crash logs and perhaps change the implementation if there are issues.