Closed Bug 43814 Opened 24 years ago Closed 23 years ago

Mozilla crashes in createEvent(...) method

Categories

(Core Graveyard :: Java APIs for DOM, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rmv, Assigned: ashuk)

References

Details

(Keywords: crash)

Overview Description: 
Mozilla crashes in createEvent(...) method of DocumentImpl class.

Steps to Reproduce: 
Run JavaDOM API org.mozilla.dom.test.DocumentImpl_createEvent_String_1 testcase.

Actual Results: 
Mozilla crashes.

Expected Results: 
Method should work ok.

Build Date & Platform Bug Found: 
06/20/2000

Additional Information: 
Actually Mozilla crashes not in JavaDOM but in the constructor of nsDOMEvent 
class in layout/events/src/nsDOMEvent.cpp file line #88 (aEvent parameter is 
NULL):
 86   mTextRange = nsnull;
 87 
 88   if (aEvent->eventStructType == NS_TEXT_EVENT) {
          ^^^^^^^^^^^^^^^^^^^^^^^

The call stack is the following:

nsDOMEvent::nsDOMEvent(nsIPresContext * 0x0b03ccb0, nsEvent * 0x00000000, const 
nsString & {...}) line 88 + 5 bytes
NS_NewDOMUIEvent(nsIDOMEvent * * 0x0012f96c, nsIPresContext * 0x0b03ccb0, const 
nsString & {...}, nsEvent * 0x00000000) line 1112 + 39 bytes
nsEventListenerManager::CreateEvent(nsIPresContext * 0x0b03ccb0, nsEvent * 
0x00000000, const nsString & {...}, nsIDOMEvent * * 0x0012f96c) line 1603 + 21 
bytes
nsDocument::CreateEvent(nsDocument * const 0x0b03a9fc, const nsString & {...}, 
nsIDOMEvent * * 0x0012f96c) line 3006 + 41 bytes
Java_org_mozilla_dom_DocumentImpl_createEvent(JNIEnv_ * 0x00ac1340, _jobject * 
0x0012f9a8, _jstring * 0x00ab77cc) line 660 + 20 bytes
JVM! 503abfea()
JVM! 503a6436()
JVM! 503d4df8()
03a01620()
00bbad40()
Add crash keyword to open crashers.
Keywords: crash
I believe this is a duplicate of bug 25889 (for which joki may have a fix). 
Marking dependency for now, but mark as a dup if these bugs are one and 
the same. 
Depends on: 25889
No longer depends on: 25889
aargh! bugzilla. Adding back that dependency.
Depends on: 25889
reassigning to denis, the real owner of java dom
Assignee: akhil.arora → sdv
I just marked the dependency bug as fixed, because there is an implementation
for it and it does not even crash (gasp!) doing it. However, I have no idea how
to test this Java stuff... Please test and see how it goes. It is quite possible
that joki has made a fix for this specific crash, but it hasn't landed yet.
Watch for a large checkin by saari@netscape.com or heikki@netscape.com and see
how it goes after that (assuming there is a crasher right now).
hopefully george will try to find a new owner for this bug
Assignee: sdv → drapeau
I cannot reproduce this Bug with Netscape 6.0 or Mozilla Trunk codebase. Could 
the Bug reporter pls verify.
_Ashu
Ashu is taking ownership of JavaDOM bugs.  Re-assigning to him.
Assignee: drapeau → ashuk
This bug was a duplicate of 25889 which has been fixed. I am unable to reproduce
this Bug using JavaDOM with the Mozilla trunk. I am closing this bug.
Alexei/Michail, pls verify using the JavaDOM test-suite.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Looks like it isn't reproduced. 
Verified according to Vladimir's info
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.