Closed
Bug 24885
Opened 26 years ago
Closed 26 years ago
Crash when typing Backspace in URL bar
Categories
(Core :: DOM: Editor, defect, P3)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
People
(Reporter: dead, Assigned: nisheeth_mozilla)
References
Details
(Keywords: smoketest, Whiteboard: will verify in 1/25 build.)
When I type backspace in the URL bar, I crash with the following stack trace.
This has been reported on Mac as well.
#0 0x402ed4e1 in __kill () from /lib/libc.so.6
#1 0x4023b1eb in raise (sig=6) at signals.c:64
#2 0x402ee868 in abort () at ../sysdeps/generic/abort.c:88
#3 0x4029fc75 in __default_terminate () from /usr/lib/libstdc++-libc6.1-1.so.2
#4 0x4029fc92 in __terminate () from /usr/lib/libstdc++-libc6.1-1.so.2
#5 0x402a057b in __throw () from /usr/lib/libstdc++-libc6.1-1.so.2
#6 0x402a21e5 in __builtin_vec_new (sz=280872064)
from /usr/lib/libstdc++-libc6.1-1.so.2
#7 0x410d15cc in nsAutoTextBuffer::GrowTo (this=0xbfffe3f4,
aNewSize=140436032, aCopyToHead=1)
at
/home/bryner/Source/mozilla/layout/html/base/src/nsTextTransformer.cpp:64#8
0x410ca9f0 in nsTextFrame::GetWidth (this=0x85e832c,
aRenderingContext=@0x8610038, aTextStyle=@0xbfffe87c, aBuffer=0xbfffe7b4,
aLength=140436032, aWidthResult=0xbfffe508)
at /home/bryner/Source/mozilla/layout/html/base/src/nsTextFrame.cpp:1618
#9 0x410cd3a1 in nsTextFrame::GetPointFromOffset (this=0x85e832c,
aPresContext=0x84872e0, inRendContext=0x8610038, inOffset=8,
outPoint=0xbfffe974)
at /home/bryner/Source/mozilla/layout/html/base/src/nsTextFrame.cpp:2278
#10 0x412a8ccc in nsCaret::DrawCaretWithContext (this=0x85d49e8,
inRendContext=0x0)
at /home/bryner/Source/mozilla/layout/base/src/nsCaret.cpp:598
#11 0x412a8ea8 in nsCaret::DrawCaret (this=0x85d49e8)
at /home/bryner/Source/mozilla/layout/base/src/nsCaret.cpp:651
#12 0x412a80a7 in nsCaret::StartBlinking (this=0x85d49e8)
at /home/bryner/Source/mozilla/layout/base/src/nsCaret.cpp:363
#13 0x412a7464 in nsCaret::SetCaretVisible (this=0x85d49e8, inMakeVisible=1)
at /home/bryner/Source/mozilla/layout/base/src/nsCaret.cpp:160
#14 0x410be0ae in PresShell::SetCaretEnabled (this=0x85d4588, aInEnable=1)
at /home/bryner/Source/mozilla/layout/html/base/src/nsPresShell.cpp:1318
#15 0x417686f0 in StCaretHider::~StCaretHider (this=0xbfffea8c, __in_chrg=2)
at ../../dist/include/nsICaret.h:98
#16 0x416e52cc in nsEditor::EndUpdateViewBatch (this=0x852b940)
at /home/bryner/Source/mozilla/editor/base/nsEditor.cpp:4208
#17 0x416da7e0 in nsEditor::InsertTextImpl (this=0x852b940,
aStringToInsert=@0xbfffedb0)
at /home/bryner/Source/mozilla/editor/base/nsEditor.cpp:1801
#18 0x416f28a6 in nsTextEditRules::DoTextInsertion (this=0x85e7e88,
aSelection=0x85d4750, aCancel=0xbfffede4, aInString=0xbfffedb0,
aTypeInState={<nsIDOMSelectionListener> = {<nsISupports> = {
_vptr. = 0xbfffed4c}, <No data fields>}, mRefCnt = 1098435512,
mBold = 140410504, mItalic = 1097776684, mUnderline = 1098435512,
mFontFace = {<nsStr> = {mLength = 139639104, mCapacity = 136085800,
mCharSize = 1098242368, mOwnsBuffer = 1093566220, {
mStr = 0x4178a2b8 "", mUStr = 0x4178a2b8}}, _vptr. = 0x2},
mFontColor = {<nsStr> = {mLength = 0, mCapacity = 0,
mCharSize = eOneByte, mOwnsBuffer = 0, {mStr = 0x0, mUStr = 0x0}},
_vptr. = 0x1}, mFontSize = {<nsStr> = {mLength = 0,
mCapacity = 1075482768, mCharSize = 1075539968, mOwnsBuffer = 0, {
mStr = 0x0, mUStr = 0x0}}, _vptr. = 0x1}, mIsSet = 0})
at /home/bryner/Source/mozilla/editor/base/nsTextEditRules.cpp:1547
#19 0x416ed4af in nsTextEditRules::WillInsertText (this=0x85e7e88,
aSelection=0x85d4750, aCancel=0xbfffeff4, aHandled=0xbfffeff0,
aInString=0xbffff084, aOutString=0xbfffef38,
aTypeInState={<nsIDOMSelectionListener> = {<nsISupports> = {
_vptr. = 0xbfffee20}, <No data fields>}, mRefCnt = 4294967295,
mBold = 1098435512, mItalic = 139639104, mUnderline = 1098425016,
mFontFace = {<nsStr> = {mLength = 2, mCapacity = 0,
mCharSize = eOneByte, mOwnsBuffer = 0, {mStr = 0x0, mUStr = 0x0}},
_vptr. = 0x0}, mFontColor = {<nsStr> = {mLength = 1, mCapacity = 0,
mCharSize = 1075482768, mOwnsBuffer = 1075539968, {mStr = 0x0,
mUStr = 0x0}}, _vptr. = 0x0}, mFontSize = {<nsStr> = {mLength = 1,
mCapacity = 0, mCharSize = 1075482768, mOwnsBuffer = 1075539968, {
mStr = 0x0, mUStr = 0x0}}, _vptr. = 0x0}, mIsSet = 1},
aMaxLength=-1)
at /home/bryner/Source/mozilla/editor/base/nsTextEditRules.cpp:578
#20 0x416ebf65 in nsTextEditRules::WillDoAction (this=0x85e7e88,
aSelection=0x85d4750, aInfo=0xbfffeeac, aCancel=0xbfffeff4,
aHandled=0xbfffeff0)
at /home/bryner/Source/mozilla/editor/base/nsTextEditRules.cpp:212
#21 0x4171b057 in nsHTMLEditor::InsertText (this=0x852b940,
aStringToInsert=@0xbffff084)
at /home/bryner/Source/mozilla/editor/base/nsHTMLEditor.cpp:1401
#22 0x4175db68 in nsHTMLEditorLog::InsertText (this=0x852b940,
aStringToInsert=@0xbffff084)
at /home/bryner/Source/mozilla/editor/base/nsHTMLEditorLog.cpp:200
#23 0x417160a4 in nsHTMLEditor::TypedText (this=0x852b940,
aString=@0xbffff084, aAction=0)
at /home/bryner/Source/mozilla/editor/base/nsHTMLEditor.cpp:696
#24 0x4175dab8 in nsHTMLEditorLog::TypedText (this=0x852b940,
aStringToInsert=@0xbffff084, aAction=0)
at /home/bryner/Source/mozilla/editor/base/nsHTMLEditorLog.cpp:181
#25 0x4171600f in nsHTMLEditor::EditorKeyPress (this=0x852b940,
aKeyEvent=0x8611d10)
at /home/bryner/Source/mozilla/editor/base/nsHTMLEditor.cpp:676
#26 0x4170e5ee in nsTextEditorKeyListener::KeyPress (this=0x85e6848,
aKeyEvent=0x8611d14)
at /home/bryner/Source/mozilla/editor/base/nsEditorEventListeners.cpp:226
#27 0x4106c5b4 in nsEventListenerManager::HandleEvent (this=0x85eac70,
aPresContext=0x84872e0, aEvent=0xbffff7b0, aDOMEvent=0xbffff474, aFlags=2,
aEventStatus=0xbffff6cc)
at
/home/bryner/Source/mozilla/layout/events/src/nsEventListenerManager.cpp:1001
#28 0x412b5f22 in nsDocument::HandleDOMEvent (this=0x85a45e0,
aPresContext=0x84872e0, aEvent=0xbffff7b0, aDOMEvent=0xbffff474, aFlags=2,
aEventStatus=0xbffff6cc)
at /home/bryner/Source/mozilla/layout/base/src/nsDocument.cpp:2411
#29 0x411114ce in nsHTMLHtmlElement::HandleDOMEvent (this=0x85a1c68,
aPresContext=0x84872e0, aEvent=0xbffff7b0, aDOMEvent=0xbffff474, aFlags=2,
aEventStatus=0xbffff6cc)
at
/home/bryner/Source/mozilla/layout/html/content/src/nsHTMLHtmlElement.cpp:192
#30 0x412cb3b6 in nsGenericElement::HandleDOMEvent (this=0x84871cc,
aPresContext=0x84872e0, aEvent=0xbffff7b0, aDOMEvent=0xbffff474, aFlags=2,
aEventStatus=0xbffff6cc)
at /home/bryner/Source/mozilla/layout/base/src/nsGenericElement.cpp:811
#31 0x410f0945 in nsHTMLBodyElement::HandleDOMEvent (this=0x84871b8,
aPresContext=0x84872e0, aEvent=0xbffff7b0, aDOMEvent=0xbffff474, aFlags=2,
aEventStatus=0xbffff6cc)
at
/home/bryner/Source/mozilla/layout/html/content/src/nsHTMLBodyElement.cpp:714
#32 0x412c836e in nsGenericDOMDataNode::HandleDOMEvent (this=0x85ee258,
aPresContext=0x84872e0, aEvent=0xbffff7b0, aDOMEvent=0xbffff474, aFlags=1,
aEventStatus=0xbffff6cc)
at /home/bryner/Source/mozilla/layout/base/src/nsGenericDOMDataNode.cpp:799
#33 0x412f9f4d in nsTextNode::HandleDOMEvent (this=0x85ee240,
aPresContext=0x84872e0, aEvent=0xbffff7b0, aDOMEvent=0x0, aFlags=1,
aEventStatus=0xbffff6cc)
at /home/bryner/Source/mozilla/layout/base/src/nsTextNode.cpp:233
#34 0x410c205a in PresShell::HandleEvent (this=0x85d4588, aView=0x85e9c98,
aEvent=0xbffff7b0, aEventStatus=0xbffff6cc)
at /home/bryner/Source/mozilla/layout/html/base/src/nsPresShell.cpp:2766
#35 0x415073f9 in nsView::HandleEvent (this=0x85e9c98, event=0xbffff7b0,
aEventFlags=8, aStatus=0xbffff6cc, aHandled=@0xbffff670)
at /home/bryner/Source/mozilla/view/src/nsView.cpp:840
#36 0x4150738d in nsView::HandleEvent (this=0x85e9570, event=0xbffff7b0,
aEventFlags=8, aStatus=0xbffff6cc, aHandled=@0xbffff670)
at /home/bryner/Source/mozilla/view/src/nsView.cpp:824
#37 0x4150738d in nsView::HandleEvent (this=0x85d41e0, event=0xbffff7b0,
aEventFlags=28, aStatus=0xbffff6cc, aHandled=@0xbffff670)
at /home/bryner/Source/mozilla/view/src/nsView.cpp:824
#38 0x41513243 in nsViewManager::DispatchEvent (this=0x85db6c8,
aEvent=0xbffff7b0, aStatus=0xbffff6cc)
at /home/bryner/Source/mozilla/view/src/nsViewManager.cpp:1676
#39 0x415054c4 in HandleEvent (aEvent=0xbffff7b0)
at /home/bryner/Source/mozilla/view/src/nsView.cpp:68
#40 0x406e950b in nsWidget::DispatchEvent (this=0x85e95f8, aEvent=0xbffff7b0,
aStatus=@0xbffff768)
at /home/bryner/Source/mozilla/widget/src/gtk/nsWidget.cpp:1345
#41 0x406e913c in nsWidget::DispatchWindowEvent (this=0x85e95f8,
event=0xbffff7b0)
at /home/bryner/Source/mozilla/widget/src/gtk/nsWidget.cpp:1236
#42 0x406f2060 in nsWindow::OnKey (this=0x85e95f8, aEvent=@0xbffff7b0)
at /home/bryner/Source/mozilla/widget/src/gtk/nsWindow.cpp:2244
#43 0x406df9d5 in handle_key_press_event (w=0x0, event=0x817a2d0, p=0x85e95f8)
at /home/bryner/Source/mozilla/widget/src/gtk/nsGtkEventHandler.cpp:716
#44 0x406dfd10 in handle_gdk_event (event=0x817a2d0, data=0x0)
at /home/bryner/Source/mozilla/widget/src/gtk/nsGtkEventHandler.cpp:815
#45 0x4085600b in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0
#46 0x40883be6 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0
#47 0x408841a1 in g_main_iterate () from /usr/lib/libglib-1.2.so.0
#48 0x40884341 in g_main_run () from /usr/lib/libglib-1.2.so.0
#49 0x407ab339 in gtk_main () from /usr/lib/libgtk-1.2.so.0
#50 0x406d6fe7 in nsAppShell::Run (this=0x80957e0)
at /home/bryner/Source/mozilla/widget/src/gtk/nsAppShell.cpp:304
#51 0x4059719d in nsAppShellService::Run (this=0x80abc18)
at /home/bryner/Source/mozilla/xpfe/appshell/src/nsAppShellService.cpp:465
#52 0x804bd0d in main1 (argc=1, argv=0xbffffac4)
at /home/bryner/Source/mozilla/xpfe/bootstrap/nsAppRunner.cpp:596
#53 0x804c197 in main (argc=1, argv=0xbffffac4)
at /home/bryner/Source/mozilla/xpfe/bootstrap/nsAppRunner.cpp:689
Comment 4•26 years ago
|
||
From 24883 (Hey! I was here first!):
On today's Linux build 2000.01.24.08, I crash whenever I hit the delete or
backspace button after I've typed something. This happens in every text entry
box (location bar, abook search box, address field in message compose, HTML form
inputs fields, etc.)
Note that my stacktrace looks different than the one bryner posted above.
| Assignee | ||
Comment 6•26 years ago
|
||
I just checked in the fix. Marking resolved.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Nisheeth's fix:
mozilla/layout/html/base/src/nsPresShell.cpp revision 3.240
also fixes bug #24881 (Autoscrolling while typing in editor is broken)
Comment 10•26 years ago
|
||
*** Bug 24899 has been marked as a duplicate of this bug. ***
Comment 11•26 years ago
|
||
*** Bug 24914 has been marked as a duplicate of this bug. ***
Comment 12•26 years ago
|
||
*** Bug 24923 has been marked as a duplicate of this bug. ***
Comment 13•26 years ago
|
||
*** Bug 24913 has been marked as a duplicate of this bug. ***
Comment 14•26 years ago
|
||
*** Bug 24913 has been marked as a duplicate of this bug. ***
Comment 15•26 years ago
|
||
*** Bug 24900 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•