Closed
Bug 382508
Opened 18 years ago
Closed 18 years ago
Breakpad does not work on WinXP with non-ASCII username: "Couldn't move crash data"
Categories
(Toolkit :: Crash Reporting, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha6
People
(Reporter: anttit, Assigned: dcamp)
Details
Attachments
(3 files)
9.51 KB,
image/jpeg
|
Details | |
6.29 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
1.67 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070530 Minefield/3.0a5pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/20070530 Minefield/3.0a5pre
After crash, all that is seen is error dialog.
Reproducible: Always
Steps to Reproduce:
1.Crash Minefield (I used printing)
2.
3.
Actual Results:
Error dialog is shown.
Expected Results:
Crash report send.
I can see that minidumps and .extra -files are generated on path
C:\Documents and Settings\Antti Tervasmäki\Aplication Data\Mozilla\Firefox\profiles\ruopg9e4.default\minidumps
On path C:\Documents and Settings\Antti Tervasmäki\Aplication Data\Mozilla\Firefox\Crash Reports\pending dirs are empty.
Reporter | ||
Comment 1•18 years ago
|
||
Reporter | ||
Comment 2•18 years ago
|
||
After writing those paths I did test as administrator and Breakpad did work...
So it is path with my name that is the problem...?
Version: unspecified → Trunk
Comment 3•18 years ago
|
||
I'm guessing it's the non-ascii characters in your username. We should be smarter about those.
Component: General → Breakpad Integration
Product: Firefox → Toolkit
QA Contact: general → breakpad.integration
Updated•18 years ago
|
Assignee: nobody → dcamp
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 4•18 years ago
|
||
Yeah, there IS life outside US-english world...:-)
Updated•18 years ago
|
Flags: blocking-thunderbird3?
Comment 5•18 years ago
|
||
The "%s Crash Reporter" dialog title is cute, too.
Summary: Breakpad does not work right on WinXP, error seen → Breakpad does not work on WinXP with non-ASCII username: "Couldn't move crash data"
Updated•18 years ago
|
Flags: blocking-thunderbird3?
Assignee | ||
Comment 6•18 years ago
|
||
handles unicode arguments in wWinMain and when opening files.
Attachment #269256 -
Flags: review?(ted.mielczarek)
Comment 7•18 years ago
|
||
requesting blocking 1.9 since it would prevent users with non-ASCII usernames to send crash data
Flags: blocking1.9?
Comment 8•18 years ago
|
||
This needs to block a6
Flags: blocking1.9? → blocking1.9+
Target Milestone: --- → mozilla1.9alpha6
Comment 9•18 years ago
|
||
Comment on attachment 269256 [details] [diff] [review]
handle unicode arguments
>diff -r e94d2ef07977 toolkit/airbag/client/crashreporter.cpp
>+ ifstream* f = UIOpenRead(path);
>+ bool success = false;
>+ if (f->is_open()) {
>+ success = ReadStrings(*f, strings, unescape);
>+ }
>+
>+ f->close();
>+ delete f;
>+ return success;
> }
Nit: move the f->close() inside the if block.
>diff -r e94d2ef07977 toolkit/airbag/client/crashreporter.h
>+std::ifstream* UIOpenRead(const std::string& filename);
>+std::ofstream* UIOpenWrite(const std::string& filename);
Could you make these take a std::(i|o)stream& as an inout parameter instead? That'd avoid having to delete the return value. I know there's some trickiness in the Windows impl, so maybe it's not possible.
Attachment #269256 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Updated•18 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 11•18 years ago
|
||
So this now works?
I finally got a way to crash now very stable Minefield:
Breakpad really started, and send something (firewall noticed) but did not leave me a report????
There is nothing in those dirs (like minidumps, Crash reports/submitted, etc)
No error messages.
If I am logged in as administrator, I get a report in "reports/submitted" but with my own name, nothing??
Comment 12•18 years ago
|
||
We fixed this specific issue, that doesn't mean that we've covered all issues that would prevent this from working for you. If you crash, and the Crash Reporter appears, before clicking any buttons on it, can you view the contents of Crash Reports/pending and see if the minidumps get moved there? If so, then we know that something is working.
Comment 13•18 years ago
|
||
campd says he missed a spot.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 14•18 years ago
|
||
Yes, I can see minidumps are moved to pending and I guess they are send,
only that is missing after that is ID/link in /submitted.
Assignee | ||
Comment 15•18 years ago
|
||
Attachment #270091 -
Flags: review?(ted.mielczarek)
Updated•18 years ago
|
Attachment #270091 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 16•18 years ago
|
||
checked in, thanks for the report
Status: REOPENED → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → FIXED
Comment 17•18 years ago
|
||
Comment on attachment 270091 [details] [diff] [review]
use UIOpenWrite in AddSubmittedReport()
+ ofstream* file = UIOpenWrite(path);
why not use std::auto_ptr, to avoid having to call delete yourself?
Reporter | ||
Comment 18•18 years ago
|
||
OK, now Breakpad works for me as expected, thanks for fast fix!
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•