#599 crash when pressing enter

None
closed
nobody
None
5
2012-11-09
2012-08-25
No

TXS crashed, when I wrote a stackoverflow reply in it (http://stackoverflow.com/a/12121142/1501222).

89 0x0000000000518ec1 in QMap<int, QVariant="">::findNode (this=0x3064110, akey=@0x7fff71681154: 42) at /usr/include/qt4/QtCore/qmap.h:487 <-- usually means the map doesn't exist anymore, because the line was deleted

90 0x000000000076be6b in QMap<int, QVariant="">::contains (this=0x3064110, akey=@0x7fff71681154: 42) at /usr/include/qt4/QtCore/qmap.h:555

91 0x000000000076b787 in QDocumentLineHandle::hasCookie (this=0x3064070, type=42) at qcodeedit/lib/document/qdocumentline_p.h:174

92 0x0000000000753a84 in QDocumentLineHandle::updateWrap (this=0x3064070) at qcodeedit/lib/document/qdocument.cpp:2469

93 0x000000000076661e in QDocumentPrivate::adjustWidth (this=0x2552190, line=21) at qcodeedit/lib/document/qdocument.cpp:6704

94 0x000000000076a7b5 in QDocumentPrivate::emitContentsChange (this=0x2552190, line=21, lines=1) at qcodeedit/lib/document/qdocument.cpp:7824

95 0x000000000077df65 in QDocumentInsertCommand::redo (this=0x2f77890) at qcodeedit/lib/document/qdocumentcommand.cpp:623

96 0x0000000000763398 in QDocumentPrivate::execute (this=0x2552190, cmd=0x2f77890) at qcodeedit/lib/document/qdocument.cpp:6098

97 0x00000000007512b4 in QDocument::execute (this=0x258cd10, cmd=0x2f77890) at qcodeedit/lib/document/qdocument.cpp:1665

98 0x000000000075fc26 in QDocumentCursorHandle::execute (this=0x2dd3a10, c=0x2f77890) at qcodeedit/lib/document/qdocument.cpp:5227

99 0x000000000075f1b9 in QDocumentCursorHandle::insertText (this=0x2dd3a10, s=..., keepAnchor=false) at qcodeedit/lib/document/qdocument.cpp:5066

100 0x0000000000783449 in QDocumentCursor::insertText (this=0x2580690, s=..., keepAnchor=false) at qcodeedit/lib/document/qdocumentcursor.cpp:696

101 0x00000000007306d8 in QEditor::insertText (this=0x2580600, c=..., text=...) at qcodeedit/lib/qeditor.cpp:4516

102 0x000000000073154c in QEditor::insertText (this=0x2580600, text=...) at qcodeedit/lib/qeditor.cpp:4589

103 0x000000000072f0a9 in QEditor::processEditOperation (this=0x2580600, c=..., e=0x7fff716826c0, op=QEditor::NewLine) at qcodeedit/lib/qeditor.cpp:4312

104 0x0000000000728708 in QEditor::keyPressEvent (this=0x2580600, e=0x7fff716826c0) at qcodeedit/lib/qeditor.cpp:2980

105 0x00007f3fbfad7e9b in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

106 0x00007f3fbfe82d56 in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

107 0x00007f3fbff0299b in QAbstractScrollArea::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

108 0x0000000000726b03 in QEditor::event (this=0x2580600, e=0x7fff716826c0) at qcodeedit/lib/qeditor.cpp:2606

109 0x00007f3fbfa8870c in QApplicationPrivate::notify_helper(QObject, QEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

110 0x00007f3fbfa8d704 in QApplication::notify(QObject, QEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

111 0x00007f3fbf214b5e in QCoreApplication::notifyInternal(QObject, QEvent) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

112 0x00007f3fbfb25a9a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

113 0x00007f3fbfb25ed1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

114 0x00007f3fbfb02b28 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

115 0x00007f3fbfb29bc2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

116 0x00007f3fbd17b205 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

117 0x00007f3fbd17b538 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

118 0x00007f3fbd17b5f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

119 0x00007f3fbf243276 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

120 0x00007f3fbfb2983e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4

121 0x00007f3fbf2138af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

122 0x00007f3fbf213b38 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

123 0x00007f3fbf218cf8 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

124 0x00000000004523cf in main (argc=1, argv=0x7fff71683798) at main.cpp:179

104 0x0000000000728708 in QEditor::keyPressEvent (this=0x2580600, e=0x7fff716826c0) at qcodeedit/lib/qeditor.cpp:2980

2980 processEditOperation(m_cursor, e, op);
(gdb) lis
2975 if ( macroing )
2976 m_doc->beginMacro();
2977
2978 //TODO: blocked key
2979 if(!m_blockKey)
2980 processEditOperation(m_cursor, e, op);
2981 else
2982 m_blockKey=false;
2983
2984 if ( atPlaceholder() ) // need new evaluation, because edit operation might have changed things

103 0x000000000072f0a9 in QEditor::processEditOperation (this=0x2580600, c=..., e=0x7fff716826c0, op=QEditor::NewLine) at qcodeedit/lib/qeditor.cpp:4312

4312 insertText("\n");
(gdb) lis
4307 c.removeSelectedText();
4308 cutBuffer.clear();
4309 break;
4310
4311 case NewLine:
4312 insertText("\n");
4313 cutBuffer.clear();
4314 break;
4315
4316 default :

(gdb) down

102 0x000000000073154c in QEditor::insertText (this=0x2580600, text=...) at qcodeedit/lib/qeditor.cpp:4589

4589 insertText(m_cursor, text);
(gdb)

101 0x00000000007306d8 in QEditor::insertText (this=0x2580600, c=..., text=...) at qcodeedit/lib/qeditor.cpp:4516

4516 c.insertText(indent);
(gdb)

100 0x0000000000783449 in QDocumentCursor::insertText (this=0x2580690, s=..., keepAnchor=false) at qcodeedit/lib/document/qdocumentcursor.cpp:696

696 m_handle->insertText(s, keepAnchor);
(gdb)

99 0x000000000075f1b9 in QDocumentCursorHandle::insertText (this=0x2dd3a10, s=..., keepAnchor=false) at qcodeedit/lib/document/qdocument.cpp:5066

5066 execute(command);
(gdb)

98 0x000000000075fc26 in QDocumentCursorHandle::execute (this=0x2dd3a10, c=0x2f77890) at qcodeedit/lib/document/qdocument.cpp:5227

5227 m_doc->execute(c);
(gdb)

97 0x00000000007512b4 in QDocument::execute (this=0x258cd10, cmd=0x2f77890) at qcodeedit/lib/document/qdocument.cpp:1665

1665 m_impl->execute(cmd);
(gdb)

96 0x0000000000763398 in QDocumentPrivate::execute (this=0x2552190, cmd=0x2f77890) at qcodeedit/lib/document/qdocument.cpp:6098

6098 cmd->redo();
(gdb)

95 0x000000000077df65 in QDocumentInsertCommand::redo (this=0x2f77890) at qcodeedit/lib/document/qdocumentcommand.cpp:623

623 m_doc->impl()->emitContentsChange(m_data.lineNumber, m_data.handles.count() + 1);
(gdb)

94 0x000000000076a7b5 in QDocumentPrivate::emitContentsChange (this=0x2552190, line=21, lines=1) at qcodeedit/lib/document/qdocument.cpp:7824

7824 adjustWidth(i);
(gdb)

93 0x000000000076661e in QDocumentPrivate::adjustWidth (this=0x2552190, line=21) at qcodeedit/lib/document/qdocument.cpp:6704

6704 l->updateWrap();
(gdb)

92 0x0000000000753a84 in QDocumentLineHandle::updateWrap (this=0x3064070) at qcodeedit/lib/document/qdocument.cpp:2469

2469 if (hasCookie(QDocumentLine::PICTURE_COOKIE)) {
(gdb)

91 0x000000000076b787 in QDocumentLineHandle::hasCookie (this=0x3064070, type=42) at qcodeedit/lib/document/qdocumentline_p.h:174

174 return mCookies.contains(type);
(gdb)

(gdb) info threads
Id Target Id Frame
8 Thread 0x7f3fa896a700 (LWP 7172) "texstudio" 0x00007f3fbe423ac3 in GIpoll (fds=<optimized out="">, nfds=<optimized out="">, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:87
7 Thread 0x7f3fa353c700 (LWP 7173) "texstudio" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
6 Thread 0x7f3fa2d3b700 (LWP 7191) "texstudio" 0x00007f3fbe423ac3 in *__GI
poll (fds=<optimized out="">, nfds=<optimized out="">, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:87
5 Thread 0x7f3fa187c700 (LWP 7192) "texstudio" 0x00007f3fbe423ac3 in *
GI___poll (fds=<optimized out="">, nfds=<optimized out="">, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:87
4 Thread 0x7f3fa087a700 (LWP 7194) "texstudio" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
3 Thread 0x7f3f1bee7700 (LWP 7195) "texstudio" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
2 Thread 0x7f3f1b6e6700 (LWP 7196) "texstudio" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
1 Thread 0x7f3fc1721760 (LWP 7170) "texstudio" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
(gdb) thread 2
[Switching to thread 2 (Thread 0x7f3f1b6e6700 (LWP 7196))]

0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162

162 in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
(gdb) b
Breakpoint 1 at 0x7f3fbee872d4: file ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S, line 162.
(gdb) bt

0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162

1 0x00007f3fbf11a20b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

2 0x00007f3fbf114e06 in QReadWriteLock::lockForWrite() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

3 0x00000000006a560a in QDocumentLineHandle::lockForWrite (this=0x3064070) at qcodeedit/lib/document/qdocumentline_p.h:157

4 0x00000000006a1dea in SyntaxCheck::run (this=0x19037d8) at syntaxcheck.cpp:83

5 0x00007f3fbf119d0b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

6 0x00007f3fbee82b50 in start_thread (arg=<optimized out="">) at pthread_create.c:304

7 0x00007f3fbe42e70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

8 0x0000000000000000 in ?? ()

(gdb) thread 3
[Switching to thread 3 (Thread 0x7f3f1bee7700 (LWP 7195))]

0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216

216 ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: No such file or directory.
(gdb) thread 4
[Switching to thread 4 (Thread 0x7f3fa087a700 (LWP 7194))]

0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162

162 ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory.
(gdb) thread 5
[Switching to thread 5 (Thread 0x7f3fa187c700 (LWP 7192))]

0 0x00007f3fbe423ac3 in *GI_poll (fds=<optimized out="">, nfds=<optimized out="">, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87

87 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
(gdb) thread 6
[Switching to thread 6 (Thread 0x7f3fa2d3b700 (LWP 7191))]

0 0x00007f3fbe423ac3 in *GI_poll (fds=<optimized out="">, nfds=<optimized out="">, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87

87 in ../sysdeps/unix/sysv/linux/poll.c
(gdb) thread 7
[Switching to thread 7 (Thread 0x7f3fa353c700 (LWP 7173))]

0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162

162 ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory.
(gdb) thread 3
[Switching to thread 3 (Thread 0x7f3f1bee7700 (LWP 7195))]

0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216

216 ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: No such file or directory.
(gdb) bt

0 pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216

1 0x00007f3fbf118956 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

2 0x00007f3fbf1190f6 in QThread::sleep(unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

3 0x00000000005b8d84 in Guardian::run (this=0x167e020) at debughelper.cpp:908

4 0x00007f3fbf119d0b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

5 0x00007f3fbee82b50 in start_thread (arg=<optimized out="">) at pthread_create.c:304

6 0x00007f3fbe42e70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

7 0x0000000000000000 in ?? ()

(gdb) thread 4
[Switching to thread 4 (Thread 0x7f3fa087a700 (LWP 7194))]

0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162

162 ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory.
(gdb) bt

0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162

1 0x00007f3fc092ce87 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4

2 0x00007f3fc092ceb9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4

3 0x00007f3fbee82b50 in start_thread (arg=<optimized out="">) at pthread_create.c:304

4 0x00007f3fbe42e70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

5 0x0000000000000000 in ?? ()

(gdb) thread 5
[Switching to thread 5 (Thread 0x7f3fa187c700 (LWP 7192))]

0 0x00007f3fbe423ac3 in *GI_poll (fds=<optimized out="">, nfds=<optimized out="">, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87

87 ../sysdeps/unix/sysv/linux/poll.c: No such file or directory.
(gdb) bt

0 0x00007f3fbe423ac3 in *GI_poll (fds=<optimized out="">, nfds=<optimized out="">, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87

1 0x00007f3fbd17b4d4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

2 0x00007f3fbd17b5f4 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

3 0x00007f3fbf243276 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

4 0x00007f3fbf2138af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

5 0x00007f3fbf213b38 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

6 0x00007f3fbf116d70 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

7 0x00007f3fbf119d0b in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

8 0x00007f3fbee82b50 in start_thread (arg=<optimized out="">) at pthread_create.c:304

9 0x00007f3fbe42e70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

10 0x0000000000000000 in ?? ()

93 0x000000000076661e in QDocumentPrivate::adjustWidth (this=0x2552190, line=21) at qcodeedit/lib/document/qdocument.cpp:6704

6704 l->updateWrap();
(gdb) print l
$1 = (QDocumentLineHandle ) 0x3064070
(gdb) print
l
$2 = {m_text = {static null = {<No data="" fields="">}, static shared_null = {ref = {_q_value = 11696}, alloc = 0, size = 0, data = 0xdb6dba, clean = 0, simpletext = 0,
righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 113}, alloc = 0, size = 0, data = 0x7f3fbf56a8da,
clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d = 0x3111160, static codecForCStrings = 0x0}, m_doc = 0x258cd10,
m_ref = {<QBasicAtomicInt> = {_q_value = 4}, <No data="" fields="">}, m_indent = 64, m_state = 48, m_layout = 0x0, m_cache = {{d = 0x2da6d20, p = 0x2da6d20}}, m_frontiers = {{
d = 0xdb6140, p = 0xdb6140}}, m_context = {context = 0x25f1110, meaningless = {m_data = 0x0, size = 0}, parents = {<QVector<QNFA*>> = {{d = 0xdb6140,
p = 0xdb6140}}, <No data="" fields="">}}, m_formats = {{d = 0x195eea0, p = 0x195eea0}}, m_parens = {{d = 0xdb6140, p = 0xdb6140}}, m_overlays = {{p = {
static shared_null = {ref = {_q_value = 8590}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xdb7220}, d = 0xdb7220}},
lineHasSelection = QDocumentLineHandle::noSel, wv = <incomplete type="">, mLock = {d = 0x2e5aa50}, mTicket = 1, mCookies = {{d = 0x7f3f9c1a6a70, e = 0x7f3f9c1a6a70}}}

Discussion

  • Jan  Sundermeyer

    Jan Sundermeyer - 2012-08-25

    we need a reproducible test case ...

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2012-11-09

    not reproducible

     
  • Jan  Sundermeyer

    Jan Sundermeyer - 2012-11-09
    • status: open --> closed
    • milestone: -->
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks