Closed Bug 201684 Opened 22 years ago Closed 22 years ago

application crashes when loading meta components

Categories

(Core :: XPCOM, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: netscape, Assigned: dougt)

References

Details

Attachments

(1 file, 1 obsolete file)

When using the meta components build options (http://www.mozilla.org/build/static-builds.html#s2.3), the browser crashes on startup now. These options were last tested and known to be working on April 7th. The meta module magic is handled at http://lxr.mozilla.org/seamonkey/source/modules/staticmod/nsMetaModule.cpp.in & http://lxr.mozilla.org/seamonkey/source/modules/staticmod/Makefile.in .
Hrm. The dates of that objdir build was on the 7th but I if I go back, I can't even get a usable build when pulling from "Wed Apr 2 9:00:00 PDT 2003" . A traditional static build works and a meta-component build links (when adding xpcom_compat for meta_mail), but dies in nsGenericModule::RegisterSelf() when run. When using the mozilla 1.4a sources (which came from the 4/1 nightly build), the meta-components build runs with the patch from bug 201602. So it's looking like one of the huge list of checkins from 4/1 broke this.
Attached patch v1.0 (obsolete) — Splinter Review
Found the problem. mLibraryDependencies was added to nsModuleInfo to track external library dependencies but not all uses of nsModuleInfo were updated. We allocate a local nsModuleInfo struct on the stack so it never gets zero'd out and mLibraryDependencies points to garbage. I'm surprised this hasn't broken before as that member was added some time ago.
Attached patch v1.0Splinter Review
Found the problem. mLibraryDependencies was added to nsModuleInfo to track external library dependencies but not all uses of nsModuleInfo were updated. We allocate a local nsModuleInfo struct on the stack so it never gets zero'd out and mLibraryDependencies points to garbage. I'm surprised this hasn't broken before as that member was added some time ago.
Comment on attachment 120345 [details] [diff] [review] v1.0 Cancelling submits doesn't work.
Attachment #120345 - Attachment is obsolete: true
Attachment #120346 - Flags: review?(dougt)
Comment on attachment 120346 [details] [diff] [review] v1.0 okay. r=dougt.
Attachment #120346 - Flags: review?(dougt) → review+
thanks seawood. Checking in modules/staticmod/nsMetaModule.cpp.in; /cvsroot/mozilla/modules/staticmod/nsMetaModule.cpp.in,v <-- nsMetaModule.cpp.in new revision: 1.3; previous revision: 1.2 done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: