Closed
Bug 186088
Opened 23 years ago
Closed 22 years ago
Mozilla crashes during installation of XPI Packages [@ nsInstallFile::CreateAllFolders]
Categories
(Core Graveyard :: Installer: XPInstall Engine, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: bugmail, Assigned: ssu0262)
References
()
Details
(Keywords: crash, Whiteboard: [adt1])
Crash Data
Attachments
(2 files)
|
12.92 KB,
text/plain
|
Details | |
|
1.07 KB,
patch
|
ccarlen
:
review+
dveditz
:
superreview+
|
Details | Diff | Splinter Review |
FizzillaMach/2002121607 crashed at nsInstallFile::CreateAllFolders during
installation of the AutoScroll XPI package from
<http://dialspace.dial.pipex.com/town/pipexdsl/o/aoos87/sa/autoscroll>.
I clicked the install link, and approved the installation. The installation
progress dialog appeared, showing a progress meter which filled, then turned
indeterminate (barber-pole pattern). Mozilla crashed at that point.
The crash was, and is, reproducible.
Build: 2002-12-20-08-trunk (MAC OS X)
I cannot reproduce the crash with this build. Greg, can you try a more current
build? I'm not sure what changes between builds could have affect this.
Still crashes FizzillaMach/2002122307. Jimmy, are you testing a CFM or Mach build?
Again crashed installing CaScadeS into FizzillaMach/2002122307. Generalizing
summary.
Summary: Mozilla crashed during installation of AutoScroll [@ nsInstallFile::CreateAllFolders] → Mozilla crashes during installation of XPI Packages [@ nsInstallFile::CreateAllFolders]
Comment 6•23 years ago
|
||
Crashes for me when installing Googlebar, and also when installing
my own XPI. For mine, I put alert boxes before/after every line
in the XPI (logComment didn't help), to narrow down the problem.
In mine, addFile was the offender.
Still crashes using FizzillaMach/2003021017, generating TB160571W.
Comment 8•23 years ago
|
||
I've noticed this with our spell checker XPI, it seems to crash when creating
new directories...
Comment 9•23 years ago
|
||
*** Bug 194564 has been marked as a duplicate of this bug. ***
Comment 10•23 years ago
|
||
I haven't looked at his crasher yet, we've been seeing crashers on OS X. There
is a workaround - every directory has to be created explicitly before
attempting to write to it. We used this successfully:
f = getFolder("parentDirectory", "myNewDirectory");
err = File.dirCreate(f);
There seems to be an issue with file permission, when directories are not
created explicitly (http://mozdev.org/bugs/show_bug.cgi?id=3192).
I'm not sure if and how all if this relates to the issue at hand, but I'll look
into it later today.
Comment 11•23 years ago
|
||
Occurs in Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3b)
Gecko/20030210 with http://downloads.mozdev.org/optimoz/mozgest_0_3_5.xpi on OS
X 10.2.4 (6I32).
-c
| Assignee | ||
Comment 12•23 years ago
|
||
Might be a dupe of bug 178546 given comment #6
| Reporter | ||
Comment 13•23 years ago
|
||
*** Bug 196699 has been marked as a duplicate of this bug. ***
Comment 14•22 years ago
|
||
1.3 does not crash, it just stops loading the xpi file. Tested with
"mozilla-1.3-lang-de-AT.xpi".
Regards,
Michael
Comment 15•22 years ago
|
||
Yes, XPInstall was disabled on OSX for the 1.3 release -- see the release notes.
Assignee: dveditz → ssu
Keywords: nsbeta1
Comment 16•22 years ago
|
||
Installer triage team: nsbeta1+/adt1
| Assignee | ||
Comment 17•22 years ago
|
||
*** Bug 184289 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 18•22 years ago
|
||
*** Bug 196743 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 19•22 years ago
|
||
Here are a couple of other urls that can reproduce the crash:
(external) http://leech.mozdev.org/installation.html (install leech)
(internal)
http://blues/users/gbush/publish/buffy/install/xpinstall-tests-buffy.html
I was able to track down to where I believe is causing this bug:
http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsLocalFileOSX.cpp#1158
Here is the basic idea of how the crash is happening. In an install.js script,
the following function calls are done explicitly and implicitly (this is not a
stack trace, but function calls that are called in this order for the crash to
happen):
-> nsInstall::addSubComponent() or nsInstall::addDirectory()
-> nsInstallFile::Prepare()
-> nsLocalFileOSX.cpp's nsLocalFile::GetParent() (return from this function
and immediately crash on the next function call)
-> nsInstallFile::CreateAllFolders():
http://lxr.mozilla.org/seamonkey/source/xpinstall/src/nsInstallFile.cpp#266
The reason is because nsLocalFileOSX::GetParent() is returning null for
'parent'. Granted, we should be checking for null pointers and the error code
from GetParent() here in addition to fixing GetParent().
Conrad, do you know if your new nsLocalFileOSX code has this fixed? Can you try
the URL test cases, or if you have a patch, I can help verify this fix too.
Comment 20•22 years ago
|
||
As to xpi-projects, that crash Mozilla on Mac OS X I can add a juicy one:
I compiled Mozilla 1.3final under Mac OS X 10.2.4 following all of the
instructions on the relevant pages. Now, Mozilla + Calendar were running
beautifully together when Calendar was compiled into the package, but when I
then made an *.xpi to enable install on a distribution binary, I got the
infamous crash when using Mozilla 1.3rc2
Do you want the calendar_mac.xpi for testing ???
Comment 21•22 years ago
|
||
Sean, the new code had this fixed, but... See
http://bugzilla.mozilla.org/show_bug.cgi?id=164396#c14 :-(
What you pointed out:
http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsLocalFileOSX.cpp#1158
is a problem. I'm not sure why that return statement is there - it should be
removed.
Updated•22 years ago
|
QA Contact: jimmylee → gbush
| Assignee | ||
Comment 22•22 years ago
|
||
yeah, I forgot to mention that line is causing a premature return. I just
commented that return out and everything works.
patch coming up.
Status: NEW → ASSIGNED
| Assignee | ||
Comment 23•22 years ago
|
||
| Assignee | ||
Comment 24•22 years ago
|
||
Comment on attachment 118054 [details] [diff] [review]
patch v1.0
removing this return fixes the premature return.
Attachment #118054 -
Flags: superreview?(dveditz)
Attachment #118054 -
Flags: review?(ccarlen)
Comment 25•22 years ago
|
||
Comment on attachment 118054 [details] [diff] [review]
patch v1.0
r=ccarlen
Attachment #118054 -
Flags: review?(ccarlen) → review+
Comment 26•22 years ago
|
||
Comment on attachment 118054 [details] [diff] [review]
patch v1.0
sr=dveditz
Attachment #118054 -
Flags: superreview?(dveditz) → superreview+
| Assignee | ||
Comment 27•22 years ago
|
||
patch checked in. closing bug as fixed.
on to other osx bugs now...
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 28•22 years ago
|
||
have just tested 2003-03-24-16:
the following xpi's that previously crashed on install now install properly:
calendar-mac , leech 1.1.0 , cascades 0.3
Comment 29•22 years ago
|
||
verified installing enigmail and cascades
2003032503
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 30•22 years ago
|
||
patch merged to 1.3 branch
Updated•14 years ago
|
Crash Signature: [@ nsInstallFile::CreateAllFolders]
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•