Closed
Bug 530196
Opened 14 years ago
Closed 14 years ago
Using a symlinked greDir fails to launch application from nsXULStub
Categories
(Toolkit Graveyard :: XULRunner, defect)
Tracking
(status1.9.2 beta4-fixed, fennec1.0+)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | beta4-fixed |
fennec | 1.0+ | --- |
People
(Reporter: mfinkle, Assigned: mfinkle)
References
Details
Attachments
(1 file, 1 obsolete file)
1.05 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
A xulrunner-stub based application where the GRE (xulrunner) is on a symlinked folder will fail to launch. I have not been able to find the exact place the failure occurs. But I have a simple patch to fix the problem. The patch simply resolves the symlink in the stub before initializing XPCOM. I have an strace log of a failed launch, but nothing jumps out at me: https://people.mozilla.com/~mfinkle/fennec/profiles/strace1.log
Assignee | ||
Updated•14 years ago
|
Attachment #413708 -
Attachment is patch: true
Attachment #413708 -
Attachment mime type: application/octet-stream → text/plain
Attachment #413708 -
Flags: review?(benjamin)
Assignee | ||
Comment 1•14 years ago
|
||
blocks a fennec blocker
Comment 2•14 years ago
|
||
Comment on attachment 413708 [details] [diff] [review] patch >diff --git a/xulrunner/stub/nsXULStub.cpp b/xulrunner/stub/nsXULStub.cpp >+#ifdef MOZ_PLATFORM_HILDON >+ // Using a symlinked greDir will fail during startup. Not sure why, but if >+ // we resolve the symlink, everything works as expected. >+ char resolved_greDir[MAXPATHLEN] = ""; >+ if (realpath(greDir, resolved_greDir) && strlen(resolved_greDir) > 0) { >+ strncpy(greDir, resolved_greDir, MAXPATHLEN); >+ } >+#endif Is there any particular reason this should be HILDON-only? Please do this for all XP_UNIX unless there's a reason not to. In any case, the simpler way to say "strlen(resolve_greDir) > 0" is "*resolve_greDir"
Attachment #413708 -
Flags: review?(benjamin) → review-
Assignee | ||
Comment 3•14 years ago
|
||
(In reply to comment #2) > (From update of attachment 413708 [details] [diff] [review]) > >diff --git a/xulrunner/stub/nsXULStub.cpp b/xulrunner/stub/nsXULStub.cpp > Is there any particular reason this should be HILDON-only? Please do this for > all XP_UNIX unless there's a reason not to. No reason. I was just being conservative. Changed to XP_UNIX. > In any case, the simpler way to say "strlen(resolve_greDir) > 0" is > "*resolve_greDir" Changed
Assignee | ||
Comment 4•14 years ago
|
||
Patch with review changes
Assignee: nobody → mark.finkle
Attachment #413708 -
Attachment is obsolete: true
Attachment #414097 -
Flags: review?(benjamin)
Updated•14 years ago
|
Attachment #414097 -
Flags: review?(benjamin) → review+
Assignee | ||
Updated•14 years ago
|
tracking-fennec: --- → ?
Flags: blocking1.9.2?
Updated•14 years ago
|
tracking-fennec: ? → 1.0+
Assignee | ||
Comment 5•14 years ago
|
||
pushed: http://hg.mozilla.org/mozilla-central/rev/41c1b69b3ed3
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•14 years ago
|
||
pushed m-192: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/e7dfac59fa7c
status1.9.2:
--- → final-fixed
Updated•14 years ago
|
Flags: blocking1.9.2? → blocking1.9.2+
Updated•7 years ago
|
Product: Toolkit → Toolkit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•