Closed Bug 144331 Opened 22 years ago Closed 21 years ago

Previous setting of MOZILLA_FIVE_HOME blocks Installer

Categories

(SeaMonkey :: Installer, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mgm, Assigned: dveditz)

References

Details

(Keywords: crash)

Attachments

(1 file)

I've used Mozilla 1.0 RC1 since its release, and for acessing it everywhere I
copied the "mozilla" script to my path and set MOZILLA_FIVE_HOME in my .profile
to the location where I've installed the other Mozilla files.

Everything was fine until today, when I tried to install the new RC2. The
installation went fine till the part where the modules were extracted, then it
simpled stopped with the error 620 and froze. It took me some time to find that
unsetting the MOZILLA_FIVE_HOME before made the installation finish normally.
After that it's fully functional again.
QA Contact: bugzilla → ktrina
I've just installed RC3 and the bug still exists. This time the installer simply
dumped core in the middle of the installation (during the unpacking step).

After unsetting the variable everything worked fine.
reporter (Marcelo Malheiros): can you reproduce this bug with a recent build of
mozilla (for example, 1.1beta)? if so, please comment again with details. if
not, please resolve this bug as WORKSFORME. thanks.
I'm seeing this too.  I think most people don't see this because they don't set
the variable.  To get the crash, you need to point it to a mozilla directory
that is sufficiently out of date (1.0).  Pointing it at a recent nightly build
gives errors, but does not crash.

stracing the installer showed it reading a lot of the shared libs and .xpt files
in the MOZILLA_FIVE_HOME directory and even trying to write to some of them.

The reasonable solution here is to simply have the mozilla-installer script
unset the MOZILLA_FIVE_HOME variable.  That fixes the crash.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch patchSplinter Review
unset MOZILLA_FIVE_HOME
Keywords: crash, patch, review
I've been seeing this as well, and I have MOZILLA_FIVE_HOME=/usr/local/mozilla
where /usr/local/mozilla->/usr/local/mozilla-nightly which was always empty
prior to installation. Unsetting MOZILLA_FIVE_HOME fixed it for me.
*** Bug 164826 has been marked as a duplicate of this bug. ***
*** Bug 165210 has been marked as a duplicate of this bug. ***
dveditz, could you review the patch here?
Comment on attachment 93910 [details] [diff] [review]
patch

r=dveditz

Thanks for tracking this down!
Attachment #93910 - Flags: review+
*** Bug 173342 has been marked as a duplicate of this bug. ***
Attachment #93910 - Flags: superreview?(brendan)
Blocks: 163524
*** Bug 184844 has been marked as a duplicate of this bug. ***
*** Bug 182568 has been marked as a duplicate of this bug. ***
Attachment #93910 - Flags: superreview?(brendan) → superreview?(dveditz)
Comment on attachment 93910 [details] [diff] [review]
patch

r+sr=dveditz for this trivial install patch.
Attachment #93910 - Flags: superreview?(dveditz) → superreview+
Comment on attachment 93910 [details] [diff] [review]
patch

r+sr=dveditz for this trivial install patch. Requesting 1.3 approval as this
issue causes us a bunch of grief each milestone.
Attachment #93910 - Flags: approval1.3?
Fix checked in
fixed
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
verified
Status: RESOLVED → VERIFIED
QA Contact: ktrina → gbush
I have a general question about this patch. Is there a reason why "export -n" is
used instead of "unset"? GNU bash is the only shell I'm aware of that supports
"export -n", and this change has made it where the mozilla-installer script now
fails on other UNIX platforms (tested on Solaris and AIX).

Solaris gives the following error message:
./mozilla-installer: -n: is not an identifier

AIX gives the followng error message:
./mozilla-installer[41]: export: bad option(s)
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: