Bug 295172 - [Reproducible] Pasting text into a document, when text is already selected there crashes Words
Summary: [Reproducible] Pasting text into a document, when text is already selected th...
Status: RESOLVED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Chakra Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-01 20:12 UTC by Kubuntiac
Modified: 2012-03-01 20:35 UTC (History)
0 users

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 Kubuntiac 2012-03-01 20:12:39 UTC
Application: calligrawords (2.4 Beta 7)
KDE Platform Version: 4.8.00 (4.8.0
Qt Version: 4.8.0
Operating System: Linux 3.2-CHAKRA x86_64
Distribution: "Chakra Linux"

-- Information about the crash:
If I have some text selected in Words and I paste (either with Ctrl+V, ctrl+shift+v or Edit > Paste) words crashes instantly.

It does it regardless of whether the text was copied from LibreOffice or Kate.

It is 100% reproducible on my machine.

QT 4.8.0
Calligra v2.3.86-897-gd660af2

The crash can be reproduced every time.

-- Backtrace:
Application: Calligra Words (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f6680273760 (LWP 25366))]

Thread 2 (Thread 0x7f665c4b4700 (LWP 25367)):
#0  0x00007f667d850123 in poll () from /lib/libc.so.6
#1  0x00007f667a87cc14 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f667a87d14d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f667ee9cfc6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f667ee6ce22 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f667ee6d077 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f667ed6cbf7 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f667ee4cc9f in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f667ed6fc1b in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f667eadedf0 in start_thread () from /lib/libpthread.so.0
#10 0x00007f667d85839d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f6680273760 (LWP 25366)):
[KCrash Handler]
#6  KoChangeTracker::recordChanges (this=0x0) at /home/user/Apps/calligra/calligra-src/libs/kotext/changetracker/KoChangeTracker.cpp:107
#7  0x00007f666b205228 in redo (this=0x2b65150) at /home/user/Apps/calligra/calligra-src/libs/kotext/commands/TextPasteCommand.cpp:87
#8  TextPasteCommand::redo (this=0x2b65150) at /home/user/Apps/calligra/calligra-src/libs/kotext/commands/TextPasteCommand.cpp:72
#9  0x00007f666b13209e in KoTextEditor::addCommand (this=0x2411550, command=0x2b65150) at /home/user/Apps/calligra/calligra-src/libs/kotext/KoTextEditor_undo.cpp:237
#10 0x00007f665f34a70b in TextTool::paste (this=0x289d040) at /home/user/Apps/calligra/calligra-src/plugins/textshape/TextTool.cpp:882
#11 0x00007f666adaf827 in paste (this=0x2e5ac70) at /home/user/Apps/calligra/calligra-src/libs/flake/KoPasteController.cpp:35
#12 qt_static_metacall (_id=<optimized out>, _o=<optimized out>, _c=<optimized out>, _a=<optimized out>) at /home/user/Apps/calligra/calligra-build/libs/flake/KoPasteController.moc:49
#13 KoPasteController::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/user/Apps/calligra/calligra-build/libs/flake/KoPasteController.moc:43
#14 0x00007f667ee81dc1 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#15 0x00007f667dfd8272 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#16 0x00007f667dfd845f in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#17 0x00007f667dfd85cf in QAction::event(QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x00007f667fb6d8ea in KAction::event(QEvent*) () from /usr/lib/libkdeui.so.5
#19 0x00007f667dfde724 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007f667dfe35a3 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#21 0x00007f667fc554f6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#22 0x00007f667ee6e03c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#23 0x00007f667e010559 in ?? () from /usr/lib/libQtGui.so.4
#24 0x00007f667e011a4d in ?? () from /usr/lib/libQtGui.so.4
#25 0x00007f667dfe51d9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007f667fc554f6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#27 0x00007f667ee6e03c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#28 0x00007f667e07d839 in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007f667e07dc7b in ?? () from /usr/lib/libQtGui.so.4
#30 0x00007f667e05a1c4 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#31 0x00007f667e081c82 in ?? () from /usr/lib/libQtGui.so.4
#32 0x00007f667a87c6d3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0x00007f667a87ceb0 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0x00007f667a87d14d in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0x00007f667ee9cf5f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0x00007f667e08191e in ?? () from /usr/lib/libQtGui.so.4
#37 0x00007f667ee6ce22 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#38 0x00007f667ee6d077 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0x00007f667ee71bd5 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#40 0x00007f666ba6424d in kdemain (argc=<optimized out>, argv=0x1ba0110) at /home/user/Apps/calligra/calligra-src/words/part/main.cpp:43
#41 0x00000000004087df in _start ()

Reported using DrKonqi
Comment 1 Camilla Boemann 2012-03-01 20:35:30 UTC
Git commit d89e013a142979e547ddb35428b6325ecb9db92f by C. Boemann.
Committed on 01/03/2012 at 21:33.
Pushed by boemann into branch 'master'.

Don't access changetracker unconditionally

M  +1    -1    libs/kotext/commands/TextPasteCommand.cpp

http://commits.kde.org/calligra/d89e013a142979e547ddb35428b6325ecb9db92f