Bug 254955 - konqueror freezes when using tinymce editor
Summary: konqueror freezes when using tinymce editor
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 4.8.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 13:41 UTC by kavol
Modified: 2023-01-22 05:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2010-10-22 13:41:54 UTC
Version:           4.5.2 (using KDE 4.5.2) 
OS:                Linux

When trying to use the tinymce editor, konqueror freezes and eats 100% CPU.

Reproducible: Always

Steps to Reproduce:
I've met this problem with our internal tool, in this case:

1. open a page with the editor
2. write a few characters then delete them with backspace (possibly with a few extra backspace strokes)
3. repeat 2. until the freeze (usually just two or three times)

in this case, the freeze is nearly 100% reproducible

however, as the site is not publicly accessible, I've tried to repeat the problem with the tinymce demo, in this case:

1. open http://tinymce.moxiecode.com/examples/full.php
2. delete the pre filled text
3. write and delete characters, repeat

in this case, you have to repeat step 3 many times and it is more likely to get a crash than the freeze



attaching gdb, I can get:

(gdb) bt full
#0  0x0000003ab86b5212 in DOM::PositionIterator::peekNext (this=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_positioniterator.cpp:68
No locals.
#1  0x0000003ab86b2893 in next (this=0x7fff4a4519f0) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_positioniterator.h:45
No locals.
#2  DOM::Position::equivalentDownstreamPosition (this=0x7fff4a4519f0) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_position.cpp:465
        __PRETTY_FUNCTION__ = "DOM::Position DOM::Position::equivalentDownstreamPosition() const"
        block = 0x0
        it = {m_current = {m_node = 0x29b6b20, m_offset = 1}}
#3  0x0000003ab880890e in khtml::DeleteCollapsibleWhitespaceCommandImpl::deleteWhitespace (this=0x2df29e0, pos=...) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:1049
        downstream = {m_node = 0x3ff0000000000000, m_offset = 0}
        __PRETTY_FUNCTION__ = "DOM::Position khtml::DeleteCollapsibleWhitespaceCommandImpl::deleteWhitespace(const DOM::Position&)"
        del = <value optimized out>
        iter = {m_current = {m_node = 0x0, m_offset = 0}}
        deleteStart = {m_node = 0x0, m_offset = 0}
        endingPosition = {m_node = 0x0, m_offset = 4607182418800017408}
        upstream = {m_node = 0x29b6b20, m_offset = 0}
        it = {m_current = {m_node = 0x3ff0000000000000, m_offset = 42836992}}
#4  0x0000003ab8809eda in khtml::DeleteCollapsibleWhitespaceCommandImpl::doApply (this=0x2df29e0) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:1146
        endPosition = {m_node = 0x1, m_offset = 252202145933}
        state = <value optimized out>
        __PRETTY_FUNCTION__ = "virtual void khtml::DeleteCollapsibleWhitespaceCommandImpl::doApply()"
#5  0x0000003ab880252a in khtml::EditCommandImpl::apply (this=0x2df29e0) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:236
No locals.
#6  0x0000003ab8805580 in khtml::CompositeEditCommandImpl::applyCommandToComposite (this=0x29d8a10, cmd=<value optimized out>)
    at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:351
No locals.
#7  0x0000003ab8806671 in khtml::CompositeEditCommandImpl::deleteCollapsibleWhitespace (this=0x29d8a10) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:477
        cmd = {m_ptr = 0x2df29e0}
#8  0x0000003ab880ee9f in khtml::InputTextCommandImpl::execute (this=0x29d8a10, text=...) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:1903
        __PRETTY_FUNCTION__ = "void khtml::InputTextCommandImpl::execute(const DOM::DOMString&)"
        selection = {m_base = {m_node = 0x29b6b20, m_offset = 1}, m_extent = {m_node = 0x29b6b20, m_offset = 1}, m_start = {m_node = 0x29b6b20, m_offset = 1}, m_end = {m_node = 0x29b6b20, 
            m_offset = 1}, m_state = DOM::Selection::CARET, m_affinity = DOM::Selection::DOWNSTREAM, m_caretX = 0, m_caretY = 0, m_caretSize = 0, m_baseIsStart = true, m_needsCaretLayout = true, 
          m_modifyBiasSet = false, m_visible = false}
        adjustDownstream = false
        pos = {m_node = 0x7fff4a451df0, m_offset = 140734439432112}
        textNode = <value optimized out>
        offset = 0
#9  0x0000003ab880ff9b in input (this=0x295d600, text=...) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:1779
No locals.
#10 khtml::TypingCommandImpl::insertText (this=0x295d600, text=...) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:2581
        lastCommand = 0x29d8a10
#11 0x0000003ab8810173 in khtml::TypingCommandImpl::insertText0 (document=0x28346d0, text=...) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:2717
        __PRETTY_FUNCTION__ = "static void khtml::TypingCommandImpl::insertText0(DOM::DocumentImpl*, const DOM::DOMString&)"
        ed = <value optimized out>
        lastEditCommand = 0x295d600
#12 0x0000003ab8800386 in DOM::Editor::handleKeyEvent (this=0x2a44a90, _ke=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/editor.cpp:579
        alt = <value optimized out>
        __PRETTY_FUNCTION__ = "bool DOM::Editor::handleKeyEvent(QKeyEvent*)"
        handled = false
        ctrl = <value optimized out>
        meta = <value optimized out>
#13 0x0000003ab868b052 in DOM::ElementImpl::defaultEventHandler (this=0x2828ec0, e=0x2999de0) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_elementimpl.cpp:838
        part = 0x28e2080
        isContentEditableElement = <value optimized out>
#14 0x0000003ab8683d92 in DOM::NodeImpl::dispatchGenericEvent (this=0x2828ec0, evt=0x2999de0) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:494
        nodeChain = {{p = {static shared_null = {ref = {_q_value = 14155}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x288ae80}, d = 0x288ae80}}
        curn = <value optimized out>
        n = <value optimized out>
        it = {c = {{p = {static shared_null = {ref = {_q_value = 14155}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x288ae80}, d = 0x288ae80}}, i = {i = 0x288aeb0}}
        propagationSentinel = 0x0
        doc = 0x0
#15 0x0000003ab868417e in DOM::NodeImpl::dispatchEvent (this=0x2828ec0, evt=0x2999de0, exceptioncode=@0x7fff4a45235c, tempEvent=true) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:401
        view = 0x28da410
#16 0x0000003ab8684a62 in DOM::NodeImpl::dispatchKeyEvent (this=<value optimized out>, key=0x2e44ba0, keypress=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:661
        exceptioncode = 0
        keyEventImpl = 0x2999de0
        r = <value optimized out>
#17 0x0000003ab85dc0e5 in KHTMLView::dispatchKeyEvent (this=0x28da410, _ke=0x2e44ba0) at /usr/src/debug/kdelibs-4.5.2/khtml/khtmlview.cpp:1638
        ret = <value optimized out>
#18 0x0000003ab85ebbee in KHTMLView::keyPressEvent (this=0x28da410, _ke=0x2e44ba0) at /usr/src/debug/kdelibs-4.5.2/khtml/khtmlview.cpp:1762
        offs = <value optimized out>
#19 0x0000003ab876a6c7 in khtml::RenderWidget::handleEvent (this=0x1cc1150, ev=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/rendering/render_replaced.cpp:1168
        domKeyEv = <value optimized out>
        fw = <value optimized out>
        ret = false
#20 0x0000003ab86e0c94 in DOM::HTMLFrameElementImpl::defaultEventHandler (this=0x28d6be0, e=0x29c5d00) at /usr/src/debug/kdelibs-4.5.2/khtml/html/html_baseimpl.cpp:303
No locals.
#21 0x0000003ab8683d92 in DOM::NodeImpl::dispatchGenericEvent (this=0x28d6bf0, evt=0x29c5d00) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:494
        nodeChain = {{p = {static shared_null = {ref = {_q_value = 14155}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x293afb0}, d = 0x293afb0}}
        curn = <value optimized out>
        n = <value optimized out>
        it = {c = {{p = {static shared_null = {ref = {_q_value = 14155}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x293afb0}, d = 0x293afb0}}, i = {i = 0x293b0a8}}
        propagationSentinel = 0x0
        doc = 0x0
#22 0x0000003ab868417e in DOM::NodeImpl::dispatchEvent (this=0x28d6bf0, evt=0x29c5d00, exceptioncode=@0x7fff4a45283c, tempEvent=true) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:401
        view = 0x1539b90
#23 0x0000003ab8684a62 in DOM::NodeImpl::dispatchKeyEvent (this=<value optimized out>, key=0x7fff4a453010, keypress=<value optimized out>)
    at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:661
        exceptioncode = 0
        keyEventImpl = 0x29c5d00
        r = <value optimized out>
#24 0x0000003ab85dc0e5 in KHTMLView::dispatchKeyEvent (this=0x1539b90, _ke=0x7fff4a453010) at /usr/src/debug/kdelibs-4.5.2/khtml/khtmlview.cpp:1638
        ret = <value optimized out>
#25 0x0000003ab85ebbee in KHTMLView::keyPressEvent (this=0x1539b90, _ke=0x7fff4a453010) at /usr/src/debug/kdelibs-4.5.2/khtml/khtmlview.cpp:1762
---Type <return> to continue, or q <return> to quit---
        offs = <value optimized out>
#26 0x0000003ab85e7203 in KHTMLView::eventFilter (this=0x1539b90, o=0x28da410, e=0x7fff4a453010) at /usr/src/debug/kdelibs-4.5.2/khtml/khtmlview.cpp:2303
        ke = 0x7fff4a453010
        block = false
        isUpdate = false
        w = 0x28da410
        v = <value optimized out>
        c = 0x28da410
        k = <value optimized out>
        view = <value optimized out>
#27 0x0000003aa055b947 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x28da410, event=0x7fff4a453010) at kernel/qcoreapplication.cpp:847
        obj = 0x29b6b20
        i = <value optimized out>
#28 0x0000003aa27b4b31 in QApplicationPrivate::notify_helper (this=0xf73610, receiver=0x28da410, e=0x7fff4a453010) at kernel/qapplication.cpp:4392
        consumed = <value optimized out>
#29 0x0000003aa27b9d02 in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=0x7fff4a453010) at kernel/qapplication.cpp:3857
        w = <value optimized out>
        gw = <value optimized out>
        isWidget = true
        key = 0x7fff4a453010
        pr = {o = 0x28da410}
        isGraphicsWidget = false
        d = 0xf73610
        res = <value optimized out>
#30 0x0000003aa5020416 in KApplication::notify (this=0x7fff4a454120, receiver=0x28da410, event=0x7fff4a453010) at /usr/src/debug/kdelibs-4.5.2/kdeui/kernel/kapplication.cpp:310
No locals.
#31 0x0000003aa055b7bc in QCoreApplication::notifyInternal (this=0x7fff4a454120, receiver=0x28da410, event=0x7fff4a453010) at kernel/qcoreapplication.cpp:732
        threadData = 0xf58600
        returnValue = <value optimized out>
        result = false
        cbdata = {0x28da410, 0x7fff4a453010, 0x7fff4a452f7f}
        d = <value optimized out>
#32 0x0000003aa285461a in QKeyMapper::sendKeyEvent (keyWidget=0x28da410, grab=<value optimized out>, type=QEvent::KeyPress, code=72, modifiers=<value optimized out>, text=..., autorepeat=false, 
    count=1, nativeScanCode=43, nativeVirtualKey=104, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1867
        e = {<QKeyEvent> = {<QInputEvent> = {<QEvent> = {_vptr.QEvent = 0x3aa3250c10, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x3aa0628fa0 "QEvent", data = 0x3aa0629980, 
                    extradata = 0x0}}, d = 0x7fff4a453010, t = 6, posted = 0, spont = 1, m_accept = 1, reserved = 31}, modState = {i = 0}}, txt = {static null = {<No data fields>}, 
              static shared_null = {ref = {_q_value = 18662}, alloc = 0, size = 0, data = 0x3aa088df3a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, 
                array = {0}}, static shared_empty = {ref = {_q_value = 182}, alloc = 0, size = 0, data = 0x3aa088df5a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
                reserved = 0, array = {0}}, d = 0x26bef10, static codecForCStrings = 0x0}, k = 72, c = 1, autor = 0}, nScanCode = 43, nVirtualKey = 104, nModifiers = 16}
#33 0x0000003aa2854a9d in QKeyMapperPrivate::translateKeyEvent (this=<value optimized out>, keyWidget=0x28da410, event=<value optimized out>, grab=false) at kernel/qkeymapper_x11.cpp:1837
        autor = false
        auto_repeat_data = {window = 23072726, keycode = 43 '+', timestamp = 1705474, release = false, error = false}
        curr_autorep = 0
        qic = 0x0
        count = 1
        dpy = 0xf78fd0
        type = QEvent::KeyPress
        text = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 18662}, alloc = 0, size = 0, data = 0x3aa088df3a, clean = 0, simpletext = 0, righttoleft = 0, 
            asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 182}, alloc = 0, size = 0, data = 0x3aa088df5a, clean = 0, simpletext = 0, 
            righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x26bef10, static codecForCStrings = 0x0}
        keysym = 104
        code = 72
        modifiers = {i = 0}
#34 0x0000003aa28312e4 in QApplication::x11ProcessEvent (this=0x7fff4a454120, event=0x7fff4a453be0) at kernel/qapplication_x11.cpp:3429
        loopLevelCounter = {threadData = 0xf58600}
        widget = 0x28da410
        keywidget = <value optimized out>
        grabbed = false
        d = 0xf73610
#35 0x0000003aa2858b12 in x11EventSourceDispatch (s=0xf77400, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
        event = {type = 2, xany = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726}, xkey = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, 
            window = 23072726, root = 190, subwindow = 0, time = 1705474, x = 412, y = 483, x_root = 412, y_root = 503, state = 16, keycode = 43, same_screen = 1}, xbutton = {type = 2, serial = 
    226826, send_event = 0, display = 0xf78fd0, window = 23072726, root = 190, subwindow = 0, time = 1705474, x = 412, y = 483, x_root = 412, y_root = 503, state = 16, button = 43, same_screen = 
    1}, xmotion = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726, root = 190, subwindow = 0, time = 1705474, x = 412, y = 483, x_root = 412, y_root = 503, 
            state = 16, is_hint = 43 '+', same_screen = 1}, xcrossing = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726, root = 190, subwindow = 0, time = 
    1705474, x = 412, y = 483, x_root = 412, y_root = 503, mode = 16, detail = 43, same_screen = 1, focus = 1072693248, state = 0}, xfocus = {type = 2, serial = 226826, send_event = 0, display = 
    0xf78fd0, window = 23072726, mode = 190, detail = 0}, xexpose = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726, x = 190, y = 0, width = 0, height = 0, 
            count = 1705474}, xgraphicsexpose = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, drawable = 23072726, x = 190, y = 0, width = 0, height = 0, count = 1705474, 
            major_code = 0, minor_code = 412}, xnoexpose = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, drawable = 23072726, major_code = 190, minor_code = 0}, xvisibility = {
            type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726, state = 190}, xcreatewindow = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, 
            parent = 23072726, window = 190, x = 0, y = 0, width = 1705474, height = 0, border_width = 412, override_redirect = 483}, xdestroywindow = {type = 2, serial = 226826, send_event = 0, 
            display = 0xf78fd0, event = 23072726, window = 190}, xunmap = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, event = 23072726, window = 190, from_configure = 0}, 
          xmap = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, event = 23072726, window = 190, override_redirect = 0}, xmaprequest = {type = 2, serial = 226826, send_event = 0, 
            display = 0xf78fd0, parent = 23072726, window = 190}, xreparent = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, event = 23072726, window = 190, parent = 0, x = 
    1705474, y = 0, override_redirect = 412}, xconfigure = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, event = 23072726, window = 190, x = 0, y = 0, width = 1705474, height = 
    0, border_width = 412, above = 2160368550300, override_redirect = 16}, xgravity = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, event = 23072726, window = 190, x = 0, y = 
    0}, xresizerequest = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726, width = 190, height = 0}, xconfigurerequest = {type = 2, serial = 226826, send_event = 
    0, display = 0xf78fd0, parent = 23072726, window = 190, x = 0, y = 0, width = 1705474, height = 0, border_width = 412, above = 2160368550300, detail = 16, value_mask = 4607182418800017409}, 
          xcirculate = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, event = 23072726, window = 190, place = 0}, xcirculaterequest = {type = 2, serial = 226826, send_event = 0, 
            display = 0xf78fd0, parent = 23072726, window = 190, place = 0}, xproperty = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726, atom = 190, time = 0, 
            state = 1705474}, xselectionclear = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726, selection = 190, time = 0}, xselectionrequest = {type = 2, 
            serial = 226826, send_event = 0, display = 0xf78fd0, owner = 23072726, requestor = 190, selection = 0, target = 1705474, property = 2074469204380, time = 2160368550300}, xselection = {
            type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, requestor = 23072726, selection = 190, target = 0, property = 1705474, time = 2074469204380}, xcolormap = {type = 2, 
            serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726, colormap = 190, c_new = 0, state = 0}, xclient = {type = 2, serial = 226826, send_event = 0, display = 
    0xf78fd0, window = 23072726, message_type = 190, format = 0, data = {b = "\002\006\032\000\000\000\000\000\234\001\000\000\343\001\000\000\234\001\000", s = {1538, 26, 0, 0, 412, 0, 483, 0, 
    412, 0}, l = {1705474, 2074469204380, 2160368550300, 184683593744, 4607182418800017409}}}, xmapping = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726, 
            request = 190, first_keycode = 0, count = 0}, xerror = {type = 2, display = 0x3760a, resourceid = 4628011567076605952, serial = 16224208, error_code = 214 '\326', request_code = 
    15 '\017', minor_code = 96 '`'}, xkeymap = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, window = 23072726, key_vector = 
    "\276", '\000' <repeats 15 times>, "\002\006\032\000\000\000\000\000\234\001\000\000\343\001\000"}, xgeneric = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, extension = 
    23072726, evtype = 0}, xcookie = {type = 2, serial = 226826, send_event = 0, display = 0xf78fd0, extension = 23072726, evtype = 0, cookie = 190, data = 0x0}, pad = {249108103170, 226826, 
    4628011567076605952, 16224208, 23072726, 190, 0, 1705474, 2074469204380, 2160368550300, 184683593744, 4607182418800017409, 4644671367260667904, 4628011567076605952, 0, 0, 4607182418800017408, 
    6970946280809495553, 0, 0, 107374183709, 0, 107374183709, 4607182418800017408}}
        source = 0xf77400
        marker = 226827
#36 0x0000003a98841e33 in g_main_dispatch (context=0xf76120) at gmain.c:2149
        dispatch = 0x3aa2858980 <x11EventSourceDispatch(GSource*, GSourceFunc, gpointer)>
        was_in_call = 0
        user_data = 0x0
        callback = 0
        cb_funcs = 0x0
        cb_data = 0x0
        current_source_link = {data = 0xf77400, next = 0x0}
        need_destroy = <value optimized out>
        source = 0xf77400
        current = 0xf753b0
        i = <value optimized out>
#37 g_main_context_dispatch (context=0xf76120) at gmain.c:2702
No locals.
#38 0x0000003a98842610 in g_main_context_iterate (context=0xf76120, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2780
        max_priority = 2147483647
        timeout = 6223
        some_ready = 1
        nfds = 14
        allocated_nfds = <value optimized out>
        fds = <value optimized out>
#39 0x0000003a988428ad in g_main_context_iteration (context=0xf76120, may_block=1) at gmain.c:2843
        retval = <value optimized out>
#40 0x0000003aa05868df in QEventDispatcherGlib::processEvents (this=0xf57cf0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
        d = 0xf73890
        canWait = true
        savedFlags = {i = 0}
        result = <value optimized out>
#41 0x0000003aa28587ae in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
        d = 0xf73890
        saved_flags = {i = 0}
        returnValue = 80
#42 0x0000003aa055ab52 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
        d = 0x167f9b0
#43 0x0000003aa055ad9c in QEventLoop::exec (this=0x7fff4a453ef0, flags=...) at kernel/qeventloop.cpp:201
        d = 0x167f9b0
        app = 0x7fff4a454120
#44 0x0000003aa055f21b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
        threadData = 0xf58600
        eventLoop = {<QObject> = {_vptr.QObject = 0x3aa088bfd0, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x3aa0616b00 "QObject", data = 0x3aa0616ba0, extradata = 
    0x3aa0883c00}}, d_ptr = {d = 0x167f9b0}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x3aa061f760 "Qt", data = 0x3aa0622ea0, extradata = 0x0}}}, static staticMetaObject = {
            d = {superdata = 0x3aa0883be0, stringdata = 0x3aa0628da0 "QEventLoop", data = 0x3aa0628dc0, extradata = 0x0}}}
        returnCode = <value optimized out>
#45 0x0000003aa5eb28fa in kdemain () from /usr/lib64/libkdeinit4_konqueror.so
No symbol table info available.
#46 0x0000003a95c1ee7d in __libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#47 0x00000000004007c9 in _start ()
No symbol table info available.


and in the second case:

(gdb) bt full
#0  0x0000003ab86af40b in deref (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/misc/shared.h:63
No locals.
#1  DOM::Position::~Position (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_position.cpp:154
No locals.
#2  0x0000003ab86b28df in DOM::Position::equivalentDownstreamPosition (this=0x7fff25b6d500) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_position.cpp:465
        __PRETTY_FUNCTION__ = "DOM::Position DOM::Position::equivalentDownstreamPosition() const"
        block = 0x0
        it = {m_current = {m_node = 0x320e4a0, m_offset = 1}}
#3  0x0000003ab880890e in khtml::DeleteCollapsibleWhitespaceCommandImpl::deleteWhitespace (this=0x344d270, pos=...) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:1049
        downstream = {m_node = 0x0, m_offset = 0}
        __PRETTY_FUNCTION__ = "DOM::Position khtml::DeleteCollapsibleWhitespaceCommandImpl::deleteWhitespace(const DOM::Position&)"
        del = <value optimized out>
        iter = {m_current = {m_node = 0x0, m_offset = 4607182418800017408}}
        deleteStart = {m_node = 0x344d270, m_offset = 54561040}
        endingPosition = {m_node = 0x7fff25b6d360, m_offset = 54841968}
        upstream = {m_node = 0x320e4a0, m_offset = 0}
        it = {m_current = {m_node = 0x7fff25b6d0e0, m_offset = 251835395168}}
#4  0x0000003ab8809eda in khtml::DeleteCollapsibleWhitespaceCommandImpl::doApply (this=0x344d270) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:1146
        endPosition = {m_node = 0x0, m_offset = 252202145933}
        state = <value optimized out>
        __PRETTY_FUNCTION__ = "virtual void khtml::DeleteCollapsibleWhitespaceCommandImpl::doApply()"
#5  0x0000003ab880252a in khtml::EditCommandImpl::apply (this=0x344d270) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:236
No locals.
#6  0x0000003ab8805580 in khtml::CompositeEditCommandImpl::applyCommandToComposite (this=0x3474310, cmd=<value optimized out>)
    at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:351
No locals.
#7  0x0000003ab8806671 in khtml::CompositeEditCommandImpl::deleteCollapsibleWhitespace (this=0x3474310) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:477
        cmd = {m_ptr = 0x344d270}
#8  0x0000003ab880ee9f in khtml::InputTextCommandImpl::execute (this=0x3474310, text=...) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:1903
        __PRETTY_FUNCTION__ = "void khtml::InputTextCommandImpl::execute(const DOM::DOMString&)"
        selection = {m_base = {m_node = 0x320e4a0, m_offset = 1}, m_extent = {m_node = 0x320e4a0, m_offset = 1}, m_start = {m_node = 0x320e4a0, m_offset = 1}, m_end = {m_node = 0x320e4a0, 
            m_offset = 1}, m_state = DOM::Selection::CARET, m_affinity = DOM::Selection::DOWNSTREAM, m_caretX = 0, m_caretY = 0, m_caretSize = 0, m_baseIsStart = true, m_needsCaretLayout = true, 
          m_modifyBiasSet = false, m_visible = true}
        adjustDownstream = false
        pos = {m_node = 0x7fff25b6dd00, m_offset = 0}
        textNode = <value optimized out>
        offset = 0
#9  0x0000003ab880ff9b in input (this=0x3447c60, text=...) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:1779
No locals.
#10 khtml::TypingCommandImpl::insertText (this=0x3447c60, text=...) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:2581
        lastCommand = 0x3474310
#11 0x0000003ab8810173 in khtml::TypingCommandImpl::insertText0 (document=0x2fc36c0, text=...) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/htmlediting_impl.cpp:2717
        __PRETTY_FUNCTION__ = "static void khtml::TypingCommandImpl::insertText0(DOM::DocumentImpl*, const DOM::DOMString&)"
        ed = <value optimized out>
        lastEditCommand = 0x3447c60
#12 0x0000003ab8800386 in DOM::Editor::handleKeyEvent (this=0x2e12070, _ke=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/editing/editor.cpp:579
        alt = <value optimized out>
        __PRETTY_FUNCTION__ = "bool DOM::Editor::handleKeyEvent(QKeyEvent*)"
        handled = false
        ctrl = <value optimized out>
        meta = <value optimized out>
#13 0x0000003ab868b052 in DOM::ElementImpl::defaultEventHandler (this=0x320e420, e=0x3248420) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_elementimpl.cpp:838
        part = 0x30e3740
        isContentEditableElement = <value optimized out>
#14 0x0000003ab86dd41b in DOM::HTMLAnchorElementImpl::defaultEventHandler (this=0x320e420, evt=0x3248420) at /usr/src/debug/kdelibs-4.5.2/khtml/html/html_inlineimpl.cpp:163
        keydown = <value optimized out>
#15 0x0000003ab8683d92 in DOM::NodeImpl::dispatchGenericEvent (this=0x320e420, evt=0x3248420) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:494
        nodeChain = {{p = {static shared_null = {ref = {_q_value = 12809}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x3482b90}, d = 0x3482b90}}
        curn = <value optimized out>
        n = <value optimized out>
        it = {c = {{p = {static shared_null = {ref = {_q_value = 12809}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x3482b90}, d = 0x3482b90}}, i = {i = 0x3482ba8}}
        propagationSentinel = 0x0
        doc = 0x0
#16 0x0000003ab868417e in DOM::NodeImpl::dispatchEvent (this=0x320e420, evt=0x3248420, exceptioncode=@0x7fff25b6e00c, tempEvent=true) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:401
        view = 0x30eb970
#17 0x0000003ab8684a62 in DOM::NodeImpl::dispatchKeyEvent (this=<value optimized out>, key=0x3480830, keypress=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:661
        exceptioncode = 0
        keyEventImpl = 0x3248420
        r = <value optimized out>
#18 0x0000003ab85dc076 in KHTMLView::dispatchKeyEvent (this=0x30eb970, _ke=0x3480830) at /usr/src/debug/kdelibs-4.5.2/khtml/khtmlview.cpp:1644
        ret = <value optimized out>
#19 0x0000003ab85ebbee in KHTMLView::keyPressEvent (this=0x30eb970, _ke=0x3480830) at /usr/src/debug/kdelibs-4.5.2/khtml/khtmlview.cpp:1762
        offs = <value optimized out>
#20 0x0000003ab876a6c7 in khtml::RenderWidget::handleEvent (this=0x32dde80, ev=<value optimized out>) at /usr/src/debug/kdelibs-4.5.2/khtml/rendering/render_replaced.cpp:1168
        domKeyEv = <value optimized out>
        fw = <value optimized out>
        ret = false
#21 0x0000003ab86e0c94 in DOM::HTMLFrameElementImpl::defaultEventHandler (this=0x30dfe70, e=0x34d3610) at /usr/src/debug/kdelibs-4.5.2/khtml/html/html_baseimpl.cpp:303
No locals.
#22 0x0000003ab8683d92 in DOM::NodeImpl::dispatchGenericEvent (this=0x30dfe80, evt=0x34d3610) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:494
        nodeChain = {{p = {static shared_null = {ref = {_q_value = 12809}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x3482990}, d = 0x3482990}}
        curn = <value optimized out>
        n = <value optimized out>
        it = {c = {{p = {static shared_null = {ref = {_q_value = 12809}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x3482990}, d = 0x3482990}}, i = {i = 0x3482a88}}
        propagationSentinel = 0x0
        doc = 0x0
#23 0x0000003ab868417e in DOM::NodeImpl::dispatchEvent (this=0x30dfe80, evt=0x34d3610, exceptioncode=@0x7fff25b6e4ec, tempEvent=true) at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:401
        view = 0x21ebc30
#24 0x0000003ab8684a62 in DOM::NodeImpl::dispatchKeyEvent (this=<value optimized out>, key=0x7fff25b6ecc0, keypress=<value optimized out>)
    at /usr/src/debug/kdelibs-4.5.2/khtml/xml/dom_nodeimpl.cpp:661
        exceptioncode = 0
        keyEventImpl = 0x34d3610
        r = <value optimized out>
#25 0x0000003ab85dc076 in KHTMLView::dispatchKeyEvent (this=0x21ebc30, _ke=0x7fff25b6ecc0) at /usr/src/debug/kdelibs-4.5.2/khtml/khtmlview.cpp:1644
        ret = <value optimized out>
#26 0x0000003ab85ebbee in KHTMLView::keyPressEvent (this=0x21ebc30, _ke=0x7fff25b6ecc0) at /usr/src/debug/kdelibs-4.5.2/khtml/khtmlview.cpp:1762
        offs = <value optimized out>
#27 0x0000003ab85e7203 in KHTMLView::eventFilter (this=0x21ebc30, o=0x30eb970, e=0x7fff25b6ecc0) at /usr/src/debug/kdelibs-4.5.2/khtml/khtmlview.cpp:2303
        ke = 0x7fff25b6ecc0
        block = false
        isUpdate = false
        w = 0x30eb970
        v = <value optimized out>
        c = 0x30eb970
        k = <value optimized out>
        view = <value optimized out>
#28 0x0000003aa055b947 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x30eb970, event=0x7fff25b6ecc0) at kernel/qcoreapplication.cpp:847
        obj = 0x320e4a0
        i = <value optimized out>
#29 0x0000003aa27b4b31 in QApplicationPrivate::notify_helper (this=0x1d086c0, receiver=0x30eb970, e=0x7fff25b6ecc0) at kernel/qapplication.cpp:4392
        consumed = <value optimized out>
#30 0x0000003aa27b9d02 in QApplication::notify (this=<value optimized out>, receiver=<value optimized out>, e=0x7fff25b6ecc0) at kernel/qapplication.cpp:3857
        w = <value optimized out>
        gw = <value optimized out>
        isWidget = true
        key = 0x7fff25b6ecc0
        pr = {o = 0x30eb970}
        isGraphicsWidget = false
        d = 0x1d086c0
        res = <value optimized out>
#31 0x0000003aa5020416 in KApplication::notify (this=0x7fff25b6fdd0, receiver=0x30eb970, event=0x7fff25b6ecc0) at /usr/src/debug/kdelibs-4.5.2/kdeui/kernel/kapplication.cpp:310
No locals.
#32 0x0000003aa055b7bc in QCoreApplication::notifyInternal (this=0x7fff25b6fdd0, receiver=0x30eb970, event=0x7fff25b6ecc0) at kernel/qcoreapplication.cpp:732
        threadData = 0x1ced600
        returnValue = <value optimized out>
        result = false
        cbdata = {0x30eb970, 0x7fff25b6ecc0, 0x7fff25b6ec2f}
        d = <value optimized out>
#33 0x0000003aa285461a in QKeyMapper::sendKeyEvent (keyWidget=0x30eb970, grab=<value optimized out>, type=QEvent::KeyPress, code=71, modifiers=<value optimized out>, text=..., autorepeat=true, 
    count=1, nativeScanCode=42, nativeVirtualKey=103, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1867
        e = {<QKeyEvent> = {<QInputEvent> = {<QEvent> = {_vptr.QEvent = 0x3aa3250c10, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x3aa0628fa0 "QEvent", data = 0x3aa0629980, 
                    extradata = 0x0}}, d = 0x7fff25b6ecc0, t = 6, posted = 0, spont = 1, m_accept = 1, reserved = 58}, modState = {i = 0}}, txt = {static null = {<No data fields>}, 
              static shared_null = {ref = {_q_value = 17263}, alloc = 0, size = 0, data = 0x3aa088df3a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, 
                array = {0}}, static shared_empty = {ref = {_q_value = 182}, alloc = 0, size = 0, data = 0x3aa088df5a, clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
                reserved = 0, array = {0}}, d = 0x33d76c0, static codecForCStrings = 0x0}, k = 71, c = 1, autor = 1}, nScanCode = 42, nVirtualKey = 103, nModifiers = 16}
#34 0x0000003aa2854a9d in QKeyMapperPrivate::translateKeyEvent (this=<value optimized out>, keyWidget=0x30eb970, event=<value optimized out>, grab=false) at kernel/qkeymapper_x11.cpp:1837
        autor = true
        auto_repeat_data = {window = 23068820, keycode = 42 '*', timestamp = 5406846, release = false, error = false}
        curr_autorep = 0
        qic = 0x0
        count = 1
        dpy = 0x1d0e090
        type = QEvent::KeyPress
        text = {static null = {<No data fields>}, static shared_null = {ref = {_q_value = 17263}, alloc = 0, size = 0, data = 0x3aa088df3a, clean = 0, simpletext = 0, righttoleft = 0, 
            asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 182}, alloc = 0, size = 0, data = 0x3aa088df5a, clean = 0, simpletext = 0, 
            righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x33d76c0, static codecForCStrings = 0x0}
        keysym = 103
        code = 71
        modifiers = {i = 0}
#35 0x0000003aa28312e4 in QApplication::x11ProcessEvent (this=0x7fff25b6fdd0, event=0x7fff25b6f890) at kernel/qapplication_x11.cpp:3429
        loopLevelCounter = {threadData = 0x1ced600}
        widget = 0x30eb970
        keywidget = <value optimized out>
        grabbed = false
        d = 0x1d086c0
#36 0x0000003aa2858b12 in x11EventSourceDispatch (s=0x1d0c4c0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
        event = {type = 2, xany = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, window = 23068820}, xkey = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, 
            window = 23068820, root = 190, subwindow = 0, time = 5406846, x = 276, y = 551, x_root = 276, y_root = 571, state = 16, keycode = 42, same_screen = 1}, xbutton = {type = 2, serial = 
    150520, send_event = 0, display = 0x1d0e090, window = 23068820, root = 190, subwindow = 0, time = 5406846, x = 276, y = 551, x_root = 276, y_root = 571, state = 16, button = 42, same_screen = 
    1}, xmotion = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, window = 23068820, root = 190, subwindow = 0, time = 5406846, x = 276, y = 551, x_root = 276, y_root = 571, 
            state = 16, is_hint = 42 '*', same_screen = 1}, xcrossing = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, window = 23068820, root = 190, subwindow = 0, time = 
    5406846, x = 276, y = 551, x_root = 276, y_root = 571, mode = 16, detail = 42, same_screen = 1, focus = 0, state = 0}, xfocus = {type = 2, serial = 150520, send_event = 0, display = 
    0x1d0e090, window = 23068820, mode = 190, detail = 0}, xexpose = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, window = 23068820, x = 190, y = 0, width = 0, height = 0, 
            count = 5406846}, xgraphicsexpose = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, drawable = 23068820, x = 190, y = 0, width = 0, height = 0, count = 5406846, 
            major_code = 0, minor_code = 276}, xnoexpose = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, drawable = 23068820, major_code = 190, minor_code = 0}, xvisibility = {
            type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, window = 23068820, state = 190}, xcreatewindow = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, 
            parent = 23068820, window = 190, x = 0, y = 0, width = 5406846, height = 0, border_width = 276, override_redirect = 551}, xdestroywindow = {type = 2, serial = 150520, send_event = 0, 
            display = 0x1d0e090, event = 23068820, window = 190}, xunmap = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, event = 23068820, window = 190, from_configure = 0}, 
          xmap = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, event = 23068820, window = 190, override_redirect = 0}, xmaprequest = {type = 2, serial = 150520, send_event = 0, 
            display = 0x1d0e090, parent = 23068820, window = 190}, xreparent = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, event = 23068820, window = 190, parent = 0, x = 
    5406846, y = 0, override_redirect = 276}, xconfigure = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, event = 23068820, window = 190, x = 0, y = 0, width = 5406846, height = 
    0, border_width = 276, above = 2452426326292, override_redirect = 16}, xgravity = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, event = 23068820, window = 190, x = 0, y = 
    0}, xresizerequest = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, window = 23068820, width = 190, height = 0}, xconfigurerequest = {type = 2, serial = 150520, send_event = 
    0, display = 0x1d0e090, parent = 23068820, window = 190, x = 0, y = 0, width = 5406846, height = 0, border_width = 276, above = 2452426326292, detail = 16, value_mask = 1}, xcirculate = {
            type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, event = 23068820, window = 190, place = 0}, xcirculaterequest = {type = 2, serial = 150520, send_event = 0, display = 
    0x1d0e090, parent = 23068820, window = 190, place = 0}, xproperty = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, window = 23068820, atom = 190, time = 0, state = 5406846}, 
          xselectionclear = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, window = 23068820, selection = 190, time = 0}, xselectionrequest = {type = 2, serial = 150520, 
            send_event = 0, display = 0x1d0e090, owner = 23068820, requestor = 190, selection = 0, target = 5406846, property = 2366526980372, time = 2452426326292}, xselection = {type = 2, 
            serial = 150520, send_event = 0, display = 0x1d0e090, requestor = 23068820, selection = 190, target = 0, property = 5406846, time = 2366526980372}, xcolormap = {type = 2, serial = 
    150520, send_event = 0, display = 0x1d0e090, window = 23068820, colormap = 190, c_new = 0, state = 0}, xclient = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, window = 
    23068820, message_type = 190, format = 0, data = {b = "~\200R\000\000\000\000\000\024\001\000\000'\002\000\000\024\001\000", s = {-32642, 82, 0, 0, 276, 0, 551, 0, 276, 0}, l = {5406846, 
    2366526980372, 2452426326292, 180388626448, 1}}}, xmapping = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, window = 23068820, request = 190, first_keycode = 0, count = 0}, 
          xerror = {type = 2, display = 0x24bf8, resourceid = 0, serial = 30466192, error_code = 148 '\224', request_code = 0 '\000', minor_code = 96 '`'}, xkeymap = {type = 2, serial = 150520, 
            send_event = 0, display = 0x1d0e090, window = 23068820, key_vector = "\276", '\000' <repeats 15 times>, "~\200R\000\000\000\000\000\024\001\000\000'\002\000"}, xgeneric = {type = 2, 
            serial = 150520, send_event = 0, display = 0x1d0e090, extension = 23068820, evtype = 0}, xcookie = {type = 2, serial = 150520, send_event = 0, display = 0x1d0e090, extension = 
    23068820, evtype = 0, cookie = 190, data = 0x0}, pad = {2, 150520, 0, 30466192, 23068820, 190, 0, 5406846, 2366526980372, 2452426326292, 180388626448, 1, 0 <repeats 12 times>}}
        source = 0x1d0c4c0
        marker = 150521
#37 0x0000003a98841e33 in g_main_dispatch (context=0x1d0b520) at gmain.c:2149
        dispatch = 0x3aa2858980 <x11EventSourceDispatch(GSource*, GSourceFunc, gpointer)>
        was_in_call = 0
        user_data = 0x0
        callback = 0
        cb_funcs = 0x0
        cb_data = 0x0
        current_source_link = {data = 0x1d0c4c0, next = 0x0}
        need_destroy = <value optimized out>
        source = 0x1d0c4c0
        current = 0x1d0a4b0
        i = <value optimized out>
#38 g_main_context_dispatch (context=0x1d0b520) at gmain.c:2702
No locals.
#39 0x0000003a98842610 in g_main_context_iterate (context=0x1d0b520, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2780
        max_priority = 2147483647
        timeout = 5057
        some_ready = 1
        nfds = 16
        allocated_nfds = <value optimized out>
        fds = <value optimized out>
#40 0x0000003a988428ad in g_main_context_iteration (context=0x1d0b520, may_block=1) at gmain.c:2843
        retval = <value optimized out>
#41 0x0000003aa05868df in QEventDispatcherGlib::processEvents (this=0x1ceccf0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
        d = 0x1d08940
        canWait = true
        savedFlags = {i = 0}
        result = <value optimized out>
#42 0x0000003aa28587ae in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
        d = 0x1d08940
        saved_flags = {i = 0}
        returnValue = 51
#43 0x0000003aa055ab52 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
        d = 0x22cbb00
#44 0x0000003aa055ad9c in QEventLoop::exec (this=0x7fff25b6fba0, flags=...) at kernel/qeventloop.cpp:201
        d = 0x22cbb00
        app = 0x7fff25b6fdd0
#45 0x0000003aa055f21b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
        threadData = 0x1ced600
        eventLoop = {<QObject> = {_vptr.QObject = 0x3aa088bfd0, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x3aa0616b00 "QObject", data = 0x3aa0616ba0, extradata = 
    0x3aa0883c00}}, d_ptr = {d = 0x22cbb00}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x3aa061f760 "Qt", data = 0x3aa0622ea0, extradata = 0x0}}}, static staticMetaObject = {
            d = {superdata = 0x3aa0883be0, stringdata = 0x3aa0628da0 "QEventLoop", data = 0x3aa0628dc0, extradata = 0x0}}}
        returnCode = <value optimized out>
#46 0x0000003aa5eb28fa in kdemain () from /usr/lib64/libkdeinit4_konqueror.so
No symbol table info available.
#47 0x0000003a95c1ee7d in __libc_start_main () from /lib64/libc.so.6
No symbol table info available.
#48 0x00000000004007c9 in _start ()
No symbol table info available.
Comment 1 Raúl 2012-05-04 08:03:43 UTC
Hello:
Same problem here with 4.7.4. This is the backtrace of the freeze:
#0  DOM::Position::equivalentDownstreamPosition (this=0x7fffe3e1b180) at ../../khtml/xml/dom_position.cpp:466
#1  0x00007f3c006632aa in khtml::DeleteCollapsibleWhitespaceCommandImpl::deleteWhitespace (this=0x90799f0, pos=...)
    at ../../khtml/editing/htmlediting_impl.cpp:1049
#2  0x00007f3c006648bb in khtml::DeleteCollapsibleWhitespaceCommandImpl::doApply (this=0x90799f0) at ../../khtml/editing/htmlediting_impl.cpp:1146
#3  0x00007f3c0065d2ea in khtml::EditCommandImpl::apply (this=0x90799f0) at ../../khtml/editing/htmlediting_impl.cpp:236
#4  0x00007f3c0065ffa1 in khtml::CompositeEditCommandImpl::applyCommandToComposite (this=0x90836e0, cmd=...) at ../../khtml/editing/htmlediting_impl.cpp:351
#5  0x00007f3c00661028 in khtml::CompositeEditCommandImpl::deleteCollapsibleWhitespace (this=0x90836e0) at ../../khtml/editing/htmlediting_impl.cpp:477
#6  0x00007f3c00669eb0 in khtml::InputTextCommandImpl::execute (this=0x90836e0, text=...) at ../../khtml/editing/htmlediting_impl.cpp:1903
#7  0x00007f3c0066b113 in input (text=..., this=0x90836e0) at ../../khtml/editing/htmlediting_impl.cpp:1779
#8  khtml::TypingCommandImpl::insertText (this=0x907f4a0, text=...) at ../../khtml/editing/htmlediting_impl.cpp:2581
#9  0x00007f3c0066b2c5 in khtml::TypingCommandImpl::insertText0 (document=0x48b6ae0, text=...) at ../../khtml/editing/htmlediting_impl.cpp:2717
#10 0x00007f3c0065abb2 in DOM::Editor::handleKeyEvent (this=0xe22e810, _ke=0x93b9240) at ../../khtml/editing/editor.cpp:579
#11 0x00007f3c004e3540 in DOM::ElementImpl::defaultEventHandler (this=0x9cf6310, e=0x4febf60) at ../../khtml/xml/dom_elementimpl.cpp:851
#12 0x00007f3c004dc2d1 in DOM::NodeImpl::dispatchGenericEvent (this=0x9cf6310, evt=0x4febf60) at ../../khtml/xml/dom_nodeimpl.cpp:494
#13 0x00007f3c004dc78e in DOM::NodeImpl::dispatchEvent (this=0x9cf6310, evt=0x4febf60, exceptioncode=@0x7fffe3e1baec: 0, tempEvent=true)
    at ../../khtml/xml/dom_nodeimpl.cpp:401
#14 0x00007f3c004dd04e in DOM::NodeImpl::dispatchKeyEvent (this=<optimized out>, key=0x4fec5b0, keypress=<optimized out>)
    at ../../khtml/xml/dom_nodeimpl.cpp:668
#15 0x00007f3c00431a65 in KHTMLView::dispatchKeyEvent (this=0x429bc30, _ke=0x4fec5b0) at ../../khtml/khtmlview.cpp:1626
#16 0x00007f3c0043f115 in keyPressEvent (_ke=0x4fec5b0, this=0x429bc30) at ../../khtml/khtmlview.cpp:1705
#17 KHTMLView::keyPressEvent (this=0x429bc30, _ke=0x4fec5b0) at ../../khtml/khtmlview.cpp:1674
#18 0x00007f3c005c0e3c in khtml::RenderWidget::handleEvent (this=0xb752fd8, ev=...) at ../../khtml/rendering/render_replaced.cpp:1168
#19 0x00007f3c0053803d in DOM::HTMLFrameElementImpl::defaultEventHandler (this=0x4556610, e=0x4ff1400) at ../../khtml/html/html_baseimpl.cpp:312
#20 0x00007f3c004dc2d1 in DOM::NodeImpl::dispatchGenericEvent (this=0x4556620, evt=0x4ff1400) at ../../khtml/xml/dom_nodeimpl.cpp:494
#21 0x00007f3c004dc78e in DOM::NodeImpl::dispatchEvent (this=0x4556620, evt=0x4ff1400, exceptioncode=@0x7fffe3e1bf9c: 0, tempEvent=true)
    at ../../khtml/xml/dom_nodeimpl.cpp:401
#22 0x00007f3c004dd04e in DOM::NodeImpl::dispatchKeyEvent (this=<optimized out>, key=0x7fffe3e1c6f0, keypress=<optimized out>)
    at ../../khtml/xml/dom_nodeimpl.cpp:668
#23 0x00007f3c00431a65 in KHTMLView::dispatchKeyEvent (this=0xdf78700, _ke=0x7fffe3e1c6f0) at ../../khtml/khtmlview.cpp:1626
#24 0x00007f3c0043f115 in keyPressEvent (_ke=0x7fffe3e1c6f0, this=0xdf78700) at ../../khtml/khtmlview.cpp:1705
(...)

I stopped gdb bt there, but if you need the rest of the backtrace, it's likely to be:
#33 KHTMLView::keyPressEvent (this=0x429bc30, _ke=0x4fec5b0) at ../../khtml/khtmlview.cpp:1674
#34 0x00007f3c005c0e3c in khtml::RenderWidget::handleEvent (this=0xb752fd8, ev=...) at ../../khtml/rendering/render_replaced.cpp:1168
#35 0x00007f3c0053803d in DOM::HTMLFrameElementImpl::defaultEventHandler (this=0x4556610, e=0x4ff1400) at ../../khtml/html/html_baseimpl.cpp:312
#36 0x00007f3c004dc2d1 in DOM::NodeImpl::dispatchGenericEvent (this=0x4556620, evt=0x4ff1400) at ../../khtml/xml/dom_nodeimpl.cpp:494
#37 0x00007f3c004dc78e in DOM::NodeImpl::dispatchEvent (this=0x4556620, evt=0x4ff1400, exceptioncode=@0x7fffe3e1bf9c: 0, tempEvent=true)
    at ../../khtml/xml/dom_nodeimpl.cpp:401
#38 0x00007f3c004dd04e in DOM::NodeImpl::dispatchKeyEvent (this=<optimized out>, key=0x7fffe3e1c6f0, keypress=<optimized out>)
    at ../../khtml/xml/dom_nodeimpl.cpp:668
#39 0x00007f3c00431a65 in KHTMLView::dispatchKeyEvent (this=0xdf78700, _ke=0x7fffe3e1c6f0) at ../../khtml/khtmlview.cpp:1626
#40 0x00007f3c0043f115 in keyPressEvent (_ke=0x7fffe3e1c6f0, this=0xdf78700) at ../../khtml/khtmlview.cpp:1705
#41 KHTMLView::keyPressEvent (this=0xdf78700, _ke=0x7fffe3e1c6f0) at ../../khtml/khtmlview.cpp:1674
#42 0x00007f3c0043c789 in KHTMLView::eventFilter (this=0xdf78700, o=0x429bc30, e=0x7fffe3e1c6f0) at ../../khtml/khtmlview.cpp:2150
#43 0x00007f3c186a0338 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x429bc30, event=0x7fffe3e1c6f0)
    at kernel/qcoreapplication.cpp:986
#44 0x00007f3c177a41cf in notify_helper (e=0x7fffe3e1c6f0, receiver=0x429bc30, this=0x18d8b80) at kernel/qapplication.cpp:4555
#45 QApplicationPrivate::notify_helper (this=0x18d8b80, receiver=0x429bc30, e=0x7fffe3e1c6f0) at kernel/qapplication.cpp:4531
#46 0x00007f3c177a974e in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fffe3e1c6f0) at kernel/qapplication.cpp:4000
#47 0x00007f3c19149b26 in KApplication::notify (this=0x7fffe3e1d740, receiver=0x429bc30, event=0x7fffe3e1c6f0) at ../../kdeui/kernel/kapplication.cpp:311
#48 0x00007f3c186a01ac in QCoreApplication::notifyInternal (this=0x7fffe3e1d740, receiver=0x429bc30, event=0x7fffe3e1c6f0) at kernel/qcoreapplication.cpp:876
---Type <return> to continue, or q <return> to quit---
#49 0x00007f3c178449d9 in QKeyMapper::sendKeyEvent (keyWidget=0x429bc30, grab=<optimized out>, type=QEvent::KeyPress, code=79, modifiers=..., text=..., 
    autorepeat=false, count=1, nativeScanCode=32, nativeVirtualKey=111, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1866
#50 0x00007f3c17844e4b in QKeyMapperPrivate::translateKeyEvent (this=0x192dd50, keyWidget=0x429bc30, event=0x7fffe3e1d1d0, grab=false)
    at kernel/qkeymapper_x11.cpp:1836
#51 0x00007f3c17820034 in QApplication::x11ProcessEvent (this=0x7fffe3e1d740, event=0x7fffe3e1d1d0) at kernel/qapplication_x11.cpp:3539
#52 0x00007f3c17848e62 in x11EventSourceDispatch (s=0x18d3b40, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#53 0x00007f3c138db853 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#54 0x0000000000000000 in ?? ()

I also have a messages like this repeated indefinately on .xsession-errors:
konqueror(7984)/khtml (caret) DOM::Position::equivalentLeafPosition: Position( 0xa2812f0 "BR" : 0 )
konqueror(7984)/khtml (caret) DOM::Position::equivalentLeafPosition: Position( 0xa2812f0 "BR" : 0 )
konqueror(7984)/khtml (caret) DOM::Position::equivalentLeafPosition: Position( 0xa2812f0 "BR" : 0 )
konqueror(7984)/khtml (caret) DOM::Position::equivalentLeafPosition: Position( 0xead9ba0 "#text" : 21443 )

If I use webkit kpart editor works and konqueror doesn't freeze.
Comment 2 Raúl 2012-06-03 09:01:45 UTC
Still alive on 4.8.3 (backtrace excerpt)
#0  DOM::Position::equivalentDownstreamPosition (this=0x7fffab4da060) at ../../khtml/xml/dom_position.cpp:466
#1  0x00007f313eb11f9a in khtml::DeleteCollapsibleWhitespaceCommandImpl::deleteWhitespace (this=this@entry=0x16b446e0, pos=...)
    at ../../khtml/editing/htmlediting_impl.cpp:1049
#2  0x00007f313eb1358c in khtml::DeleteCollapsibleWhitespaceCommandImpl::doApply (this=0x16b446e0) at ../../khtml/editing/htmlediting_impl.cpp:1146
#3  0x00007f313eb0c1aa in khtml::EditCommandImpl::apply (this=0x16b446e0) at ../../khtml/editing/htmlediting_impl.cpp:236
#4  0x00007f313eb0ec80 in khtml::CompositeEditCommandImpl::applyCommandToComposite (this=this@entry=0x6349600, cmd=...)
    at ../../khtml/editing/htmlediting_impl.cpp:351
#5  0x00007f313eb0fcf0 in khtml::CompositeEditCommandImpl::deleteCollapsibleWhitespace (this=this@entry=0x6349600)
    at ../../khtml/editing/htmlediting_impl.cpp:477
#6  0x00007f313eb188fd in khtml::InputTextCommandImpl::execute (this=this@entry=0x6349600, text=...) at ../../khtml/editing/htmlediting_impl.cpp:1903
#7  0x00007f313eb1c4eb in input (text=..., this=0x6349600) at ../../khtml/editing/htmlediting_impl.cpp:1779
#8  khtml::TypingCommandImpl::insertText (this=this@entry=0x5e35d90, text=...) at ../../khtml/editing/htmlediting_impl.cpp:2581
#9  0x00007f313eb1c69b in khtml::TypingCommandImpl::insertText0 (document=0x43fe7a0, text=...) at ../../khtml/editing/htmlediting_impl.cpp:2717
#10 0x00007f313eb09c4b in DOM::Editor::handleKeyEvent (this=0x9c87a10, _ke=0xaa70320) at ../../khtml/editing/editor.cpp:579
#11 0x00007f313e99f720 in DOM::ElementImpl::defaultEventHandler (this=0xb9e6b90, e=0x3cf3e60) at ../../khtml/xml/dom_elementimpl.cpp:851
#12 0x00007f313e9986a8 in DOM::NodeImpl::dispatchGenericEvent (this=this@entry=0xb9e6b90, evt=evt@entry=0x3cf3e60) at ../../khtml/xml/dom_nodeimpl.cpp:494
#13 0x00007f313e998bfe in DOM::NodeImpl::dispatchEvent (this=this@entry=0xb9e6b90, evt=evt@entry=0x3cf3e60, exceptioncode=@0x7fffab4da77c: 0, 
    tempEvent=tempEvent@entry=true) at ../../khtml/xml/dom_nodeimpl.cpp:401
#14 0x00007f313e9994ad in DOM::NodeImpl::dispatchKeyEvent (this=0xb9e6b90, key=0xfecbec0, keypress=<optimized out>) at ../../khtml/xml/dom_nodeimpl.cpp:668
#15 0x00007f313e8f1005 in KHTMLView::dispatchKeyEvent (this=this@entry=0x9368010, _ke=0xfecbec0) at ../../khtml/khtmlview.cpp:1626
#16 0x00007f313e900585 in keyPressEvent (_ke=0xfecbec0, this=0x9368010) at ../../khtml/khtmlview.cpp:1705
#17 KHTMLView::keyPressEvent (this=0x9368010, _ke=0xfecbec0) at ../../khtml/khtmlview.cpp:1674
#18 0x00007f313ea77367 in khtml::RenderWidget::handleEvent (this=0xd4a89b0, ev=...) at ../../khtml/rendering/render_replaced.cpp:1168
#19 0x00007f313e9f1bd0 in DOM::HTMLFrameElementImpl::defaultEventHandler (this=0x69d3a40, e=0x3e94ac0) at ../../khtml/html/html_baseimpl.cpp:311
#20 0x00007f313e9986a8 in DOM::NodeImpl::dispatchGenericEvent (this=this@entry=0x69d3a50, evt=evt@entry=0x3e94ac0) at ../../khtml/xml/dom_nodeimpl.cpp:494
#21 0x00007f313e998bfe in DOM::NodeImpl::dispatchEvent (this=this@entry=0x69d3a50, evt=evt@entry=0x3e94ac0, exceptioncode=@0x7fffab4daafc: 0, 
    tempEvent=tempEvent@entry=true) at ../../khtml/xml/dom_nodeimpl.cpp:401
#22 0x00007f313e9994ad in DOM::NodeImpl::dispatchKeyEvent (this=0x69d3a50, key=0x7fffab4db5d0, keypress=<optimized out>) at ../../khtml/xml/dom_nodeimpl.cpp:668
#23 0x00007f313e8f1005 in KHTMLView::dispatchKeyEvent (this=this@entry=0x7dbdce0, _ke=0x7fffab4db5d0) at ../../khtml/khtmlview.cpp:1626
#24 0x00007f313e900585 in keyPressEvent (_ke=0x7fffab4db5d0, this=0x7dbdce0) at ../../khtml/khtmlview.cpp:1705
#25 KHTMLView::keyPressEvent (this=0x7dbdce0, _ke=0x7fffab4db5d0) at ../../khtml/khtmlview.cpp:1674
Comment 3 Raúl 2012-12-05 16:50:58 UTC
Also confirmed on 4.8.4. I'm unable to test on newer KDE versions.
Comment 4 Andrew Crouthamel 2018-11-09 00:57:27 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Andrew Crouthamel 2018-11-18 03:37:14 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Raúl 2018-11-18 15:44:39 UTC
I've tested this on a recent konqueror version:
- konqueror 5.0.97
- KDE Frameworks 5.51.0
- Qt 5.11.2

Either basic[0] or full[1] tinymce version loads but fails to work. Konqueror does not crash and cpu load is more than acceptable (2% to 6%). This is all with khtml backend. When I say that it fails to work is that even that web page loads, the editor doesn't show any text and I can't either write anything on the edit frame.
[0] https://www.tiny.cloud/docs/demo/basic-example/
[1] https://www.tiny.cloud/docs/demo/full-featured/

I also know that it doesn't work since webengine backend does show text and I can edit/write into the frame.

Anyway, I'm not sure if this bug is useful as it is, probably developers would like one or several test cases in order to fix issues.

HTH, regards,
Comment 7 Justin Zobel 2022-12-23 00:28:06 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 8 Bug Janitor Service 2023-01-07 05:22:02 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2023-01-22 05:06:14 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!