Closed
Bug 279181
Opened 20 years ago
Closed 12 years ago
SIGSEGV on exit mozilla , on HPUX
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: gowrisharmi.kandasamy, Assigned: o.flebbe)
Details
(Keywords: crash)
Attachments
(1 file)
|
441 bytes,
patch
|
dougt
:
superreview-
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: mozilla/5.0 (X11; U; HP-UX 9000/800; en-US; rv:1.7.3)
Mozilla on HP-UX dumps core when exiting mozilla for the first time.
This is caused by referencing nsACString() after unloading the
libxpcom.sl library from XPCOMGlueShutdown() from main().
#0 nsACString::~nsACString (this=0x79cbc500, #free=2) at nsTAString.cpp:55
#1 0x7adedf50 in __niamHelper+0xb0 () from /usr/lib/libCsup.2
#2 0x7adee0a8 in _niam_body+0x78 () from /usr/lib/libCsup.2
#3 0x7adee1c4 in _niam+0x1c () from /usr/lib/libCsup.2
#4 0x7af886d4 in exit+0x74 () from /usr/lib/libc.2
(gdb) print *this
$5 = {mVTable = 0x7a42ca48, mData = 0x79f590dd "secure", mLength = 6, mFlags = 1}
This issue may not show up on other platforms, since PA32
shl_unload behavior may be different from dlclose()
In other platforms, the library is not unloded by shl_unload,
as there is a reference to the shlib.
man shl_unload
==============
On PA32, shl_unload unloads the shared library regardless of whether there are
other references to it through
other load invocations or through implicit references from other shared
libraries. No reference count is kept
. On PA64, a reference counter is kept for each loaded shared library, like the
behavior of dlopen(3c) and dl
close(3c). shl_unload does not remove the shared library from the address space
until all references to that
shared library have been removed.
This is similar to the bug 204804 .
libxpcom.sl should not be unloaded on HP-UX.
This works fine until 1.6. This problem started after adding the file
nsTAString.h . nsACString object reference is not getting deleted
before unloading xpcom.
Reproducible: Always
Steps to Reproduce:
1. compres.dat & xpti.dat should not be present in /opt/mozilla/componets directory.
2. Start mozilla
3. Choose Exit from the browser.
Actual Results:
Gets a SIGSEGV on Exit and dumps core.
Expected Results:
Exited normally| Reporter | ||
Updated•20 years ago
|
OS: other → HP-UX
Hardware: Other → HP
Summary: SIGSEGV on exit mozilla , on HPUX → SIGSEGV on exit mozilla , on HPUX
Version: unspecified → 1.7 Branch
| Assignee | ||
Comment 1•20 years ago
|
||
I tested this patch and it seems too work for us.
Comment 2•19 years ago
|
||
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
| Assignee | ||
Comment 3•19 years ago
|
||
Comment on attachment 174655 [details] [diff] [review] Implemented patch es described by original reporter This one is very nasty on HP-UX
Attachment #174655 -
Flags: review?(o.flebbe)
| Assignee | ||
Updated•19 years ago
|
Attachment #174655 -
Flags: review?(o.flebbe) → review?
| Assignee | ||
Updated•19 years ago
|
Attachment #174655 -
Flags: superreview?
Attachment #174655 -
Flags: review?
Attachment #174655 -
Flags: review+
| Assignee | ||
Updated•19 years ago
|
Attachment #174655 -
Flags: review+ → review?
Attachment #174655 -
Flags: superreview?(dougt)
Attachment #174655 -
Flags: superreview?
Attachment #174655 -
Flags: review?
Comment 5•19 years ago
|
||
Comment on attachment 174655 [details] [diff] [review] Implemented patch es described by original reporter in the patch, can you comment why this is a problem for hpux and cite this bug number.
Attachment #174655 -
Flags: superreview?(dougt) → superreview-
Updated•19 years ago
|
Assignee: general → o.flebbe
Severity: major → critical
Status: UNCONFIRMED → NEW
Component: General → XPCOM
Ever confirmed: true
Keywords: crash
Product: Mozilla Application Suite → Core
QA Contact: general → xpcom
are all instances of xpcom being loaded via nspr? if so, can't we fix nspr to do the reference counting for us? if not, is there any way for nspr to find out that someone else has already loaded the library so that it can decide not to do something useful when PR_UnloadLibrary is called?
Comment 7•19 years ago
|
||
NSPR already has a reference count for the PRLibrary structure. PR_UnloadLibrary only calls the HP-UX shl_unload function when the reference count becomes 0.
| Assignee | ||
Comment 8•12 years ago
|
||
Platform ist not relevant any more. Closing as wontfix.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•