Closed Bug 485031 Opened 16 years ago Closed 16 years ago

WinCE Crash on First Startup (or command line environment passing)

Categories

(Toolkit Graveyard :: XULRunner, defect)

ARM
Windows Mobile 6 Professional
defect
Not set
blocker

Tracking

(fennec1.0a1-wm+)

RESOLVED FIXED
mozilla1.9.2a1
Tracking Status
fennec 1.0a1-wm+ ---

People

(Reporter: dougt, Assigned: hiro)

Details

(Keywords: fixed1.9.1, Whiteboard: [fixed1.9.1b4])

Attachments

(2 files, 2 obsolete files)

On first run, a dialog is presented saying "a problem has occured with xulrunner.exe" due to xulrunner crashing. It crashes after xulrunner creates the profile directory, extensions, and other directories.
tracking-fennec: --- → ?
tracking-fennec: ? → 1.0a1-wm+
Attached file dump files from omnia
I was able to reproduce the error on omnia.
Additional info for comment #1 The build I made is based on the following changeset changeset: 26816:1a6d30255368 tag: tip user: Simon Montagu <smontagu@smontagu.org> date: Wed Apr 01 06:56:13 2009 -0700 summary: Remove duplicate property added in bug 437276, rs=Neil It is a optimized build. Produced with Visual Studio 9 and windows mobile 6 sdk. jemalloc was enabled in the build.
Attached patch Fix crash (obsolete) — Splinter Review
Use delete instead of free.
Attachment #371796 - Flags: review?(bugmail)
And the patch also fixes another issue in ExtractEnvironmentFromCL that the arguments are overkilled.
To reproduce this crash easily, use --environ:"SOMETHING=something" option for xulrunner.exe.
Comment on attachment 371796 [details] [diff] [review] Fix crash switching the review to bsmedberg
Attachment #371796 - Flags: review?(bugmail) → review?(benjamin)
Comment on attachment 371796 [details] [diff] [review] Fix crash Boy, rewriting argv like that sucks, but short of making a copy I guess that's the best we can do.
Attachment #371796 - Flags: review?(benjamin) → review+
This patch fixes the first startup crashing for me. This patch also fixes the "--environ=EM_NO_RESTART=1" crashing for me.
Attached patch Update patch (obsolete) — Splinter Review
Modified copied arguments. Benjamin, could you please review this patch again?
Attachment #371796 - Attachment is obsolete: true
Attachment #372017 - Flags: review?(benjamin)
Comment on attachment 372017 [details] [diff] [review] Update patch >diff -r 3051d82cb64f toolkit/xre/nsWindowsWMain.cpp >- for (int i=0; i<argc; i++) >+ for (int i=0; i< argc; i++) > deleteUs[i] = argvConverted[i]; If you want to change this, put spaces between the "=" and the "<" to match the prevailing style. If you didn't mean to change it, undo this single space change.
Put some spaces.
Attachment #372017 - Attachment is obsolete: true
Attachment #372039 - Flags: review?(benjamin)
Attachment #372017 - Flags: review?(benjamin)
Attachment #372039 - Flags: review?(benjamin) → review+
Summary: "a problem has occured with xulrunner.exe" crash → WinCE Crash on First Startup (or command line environment passing)
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Component: General → XULRunner
Product: Fennec → Toolkit
QA Contact: general → xulrunner
Attachment #372039 - Flags: approval1.9.1?
Attachment #372039 - Flags: approval1.9.1? → approval1.9.1+
Comment on attachment 372039 [details] [diff] [review] Revised patch [Checkin: Comment 12 & 14] a191=beltzner
Assignee: nobody → ikezoe
Keywords: checkin-needed
Attachment #372039 - Attachment description: Revised patch → Revised patch [Checkin: Comment 12 & 14]
Whiteboard: [fixed1.9.1b4]
Target Milestone: --- → mozilla1.9.2a1
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: