Bug 180238 - Crash when saving document
Summary: Crash when saving document
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
: 180936 180949 180992 181263 181899 182301 182666 183110 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-10 12:43 UTC by T Zachmann
Modified: 2009-02-04 10:22 UTC (History)
8 users (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 T Zachmann 2009-01-10 12:43:58 UTC
Version:            (using KDE 4.1.3)
OS:                Linux
Installed from:    Compiled From Sources

To reproduce:
o create a new empty document
o add the text abc
o save document as odt
->crash

Application: KWord (kword), signal SIGSEGV
[Current thread is 0 (LWP 32626)]

Thread 4 (Thread 0xb1bffb90 (LWP 32633)):
#0  0xb7f8b410 in __kernel_vsyscall ()
#1  0xb6b63aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6bcd16c in QWaitConditionPrivate::wait (this=0x8a44a70, time=4294967295) at thread/qwaitcondition_unix.cpp:82
#3  0xb6bccc6b in QWaitCondition::wait (this=0x8a45908, mutex=0x8a44c00, time=4294967295) at thread/qwaitcondition_unix.cpp:154
#4  0xb6239130 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8a458f0, th=0x8985760) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0xb623dbbe in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8a44058, th=0x8985760) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0xb62387b9 in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x8a458f0, th=0x8985760) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0xb623dcdb in ThreadWeaver::WorkingHardState::applyForWork (this=0x8a44058, th=0x8985760) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb623939e in ThreadWeaver::WeaverImpl::applyForWork (this=0x8a458f0, th=0x8985760, previous=0x0) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb623dd03 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8a44058, th=0x8985760) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#10 0xb623939e in ThreadWeaver::WeaverImpl::applyForWork (this=0x8a458f0, th=0x8985760, previous=0x83949d0) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#11 0xb623bd8f in ThreadWeaver::ThreadRunHelper::run (this=0xb1bff358, parent=0x8a458f0, th=0x8985760) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/Thread.cpp:87
#12 0xb623bf32 in ThreadWeaver::Thread::run (this=0x8985760) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/Thread.cpp:142
#13 0xb6bcc71f in QThreadPrivate::start (arg=0x8985760) at thread/qthread_unix.cpp:185
#14 0xb6b5f4fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#15 0xb6980e5e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xb2535b90 (LWP 32634)):
#0  0xb7f8b410 in __kernel_vsyscall ()
#1  0xb6b63aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6bcd16c in QWaitConditionPrivate::wait (this=0x8a44a70, time=4294967295) at thread/qwaitcondition_unix.cpp:82
#3  0xb6bccc6b in QWaitCondition::wait (this=0x8a45908, mutex=0x8a44c00, time=4294967295) at thread/qwaitcondition_unix.cpp:154
#4  0xb6239130 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8a458f0, th=0x8f77098) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0xb623dbbe in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8a44058, th=0x8f77098) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0xb62387b9 in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x8a458f0, th=0x8f77098) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0xb623dcdb in ThreadWeaver::WorkingHardState::applyForWork (this=0x8a44058, th=0x8f77098) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb623939e in ThreadWeaver::WeaverImpl::applyForWork (this=0x8a458f0, th=0x8f77098, previous=0xb0a16aa8) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb623bd8f in ThreadWeaver::ThreadRunHelper::run (this=0xb2535358, parent=0x8a458f0, th=0x8f77098) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/Thread.cpp:87
#10 0xb623bf32 in ThreadWeaver::Thread::run (this=0x8f77098) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/Thread.cpp:142
#11 0xb6bcc71f in QThreadPrivate::start (arg=0x8f77098) at thread/qthread_unix.cpp:185
#12 0xb6b5f4fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0xb6980e5e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb13feb90 (LWP 32635)):
#0  0xb7f8b410 in __kernel_vsyscall ()
#1  0xb6b63aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6bcd16c in QWaitConditionPrivate::wait (this=0x8a44a70, time=4294967295) at thread/qwaitcondition_unix.cpp:82
#3  0xb6bccc6b in QWaitCondition::wait (this=0x8a45908, mutex=0x8a44c00, time=4294967295) at thread/qwaitcondition_unix.cpp:154
#4  0xb6239130 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8a458f0, th=0xb0a00a38) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0xb623dbbe in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8a44058, th=0xb0a00a38) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0xb62387b9 in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x8a458f0, th=0xb0a00a38) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0xb623dcdb in ThreadWeaver::WorkingHardState::applyForWork (this=0x8a44058, th=0xb0a00a38) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb623939e in ThreadWeaver::WeaverImpl::applyForWork (this=0x8a458f0, th=0xb0a00a38, previous=0x0) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb623bd8f in ThreadWeaver::ThreadRunHelper::run (this=0xb13fe358, parent=0x8a458f0, th=0xb0a00a38) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/Thread.cpp:87
#10 0xb623bf32 in ThreadWeaver::Thread::run (this=0xb0a00a38) at /home/tz/develop/kde/svn/kdelibs/threadweaver/Weaver/Thread.cpp:142
#11 0xb6bcc71f in QThreadPrivate::start (arg=0xb0a00a38) at thread/qthread_unix.cpp:185
#12 0xb6b5f4fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0xb6980e5e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb59c36c0 (LWP 32626)):
[KCrash Handler]
#6  0xb691d9bc in memcpy () from /lib/tls/i686/cmov/libc.so.6
#7  0xb4295427 in KWPageStyle::pageLayout (this=0xbfc52874) at /home/tz/develop/kde/svn/koffice/kword/part/KWPageStyle.cpp:113
#8  0xb429c6e0 in KWOdfWriter::saveHeaderFooter (this=0xbfc529b4, embeddedSaver=@0xbfc52ad0, mainStyles=@0xbfc52984) at /home/tz/develop/kde/svn/koffice/kword/part/KWOdfWriter.cpp:93
#9  0xb429cc63 in KWOdfWriter::save (this=0xbfc529b4, odfStore=@0xbfc52ae4, embeddedSaver=@0xbfc52ad0) at /home/tz/develop/kde/svn/koffice/kword/part/KWOdfWriter.cpp:154
#10 0xb42807ab in KWDocument::saveOdf (this=0x8199ad0, documentContext=@0xbfc52ac8) at /home/tz/develop/kde/svn/koffice/kword/part/KWDocument.cpp:627
#11 0xb77df737 in KoDocument::saveNativeFormat (this=0x8199ad0, file=@0xbfc52c78) at /home/tz/develop/kde/svn/koffice/libs/main/KoDocument.cpp:1012
#12 0xb77e348f in KoDocument::saveFile (this=0x8199ad0) at /home/tz/develop/kde/svn/koffice/libs/main/KoDocument.cpp:443
#13 0xb6493768 in KParts::ReadWritePart::save (this=0x8199ad0) at /home/tz/develop/kde/svn/kdelibs/kparts/part.cpp:821
#14 0xb6493941 in KParts::ReadWritePart::saveAs (this=0x8199ad0, kurl=@0xbfc52e2c) at /home/tz/develop/kde/svn/kdelibs/kparts/part.cpp:842
#15 0xb78009dd in KoMainWindow::saveDocument (this=0x819f2d8, saveas=true, silent=false) at /home/tz/develop/kde/svn/koffice/libs/main/KoMainWindow.cpp:992
#16 0xb77f9bd0 in KoMainWindow::slotFileSave (this=0x819f2d8) at /home/tz/develop/kde/svn/koffice/libs/main/KoMainWindow.cpp:1246
#17 0xb78048f0 in KoMainWindow::qt_metacall (this=0x819f2d8, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfc5304c) at /home/ko2/koffice-build/libs/main/KoMainWindow.moc:129
#18 0xb6cd5635 in QMetaObject::activate (sender=0x82057d0, from_signal_index=5, to_signal_index=6, argv=0xbfc5304c) at kernel/qobject.cpp:3028
#19 0xb6cd583e in QMetaObject::activate (sender=0x82057d0, m=0xb777aaf8, from_local_signal_index=1, to_local_signal_index=2, argv=0xbfc5304c) at kernel/qobject.cpp:3121
#20 0xb7076b16 in QAction::triggered (this=0x82057d0, _t1=false) at .moc/debug-shared/moc_qaction.cpp:216
#21 0xb70786b8 in QAction::activate (this=0x82057d0, event=QAction::Trigger) at kernel/qaction.cpp:1125
#22 0xb707c4f9 in QAction::trigger (this=0x82057d0) at ../../include/QtGui/../../src/gui/kernel/qaction.h:195
#23 0xb74e1d37 in QToolButton::nextCheckState (this=0x822bbb0) at widgets/qtoolbutton.cpp:1097
#24 0xb73fddeb in QAbstractButtonPrivate::click (this=0x821bb30) at widgets/qabstractbutton.cpp:520
#25 0xb73fe112 in QAbstractButton::mouseReleaseEvent (this=0x822bbb0, e=0xbfc53708) at widgets/qabstractbutton.cpp:1110
#26 0xb74e3180 in QToolButton::mouseReleaseEvent (this=0x822bbb0, e=0xbfc53708) at widgets/qtoolbutton.cpp:671
#27 0xb70dbc69 in QWidget::event (this=0x822bbb0, event=0xbfc53708) at kernel/qwidget.cpp:7163
#28 0xb73fcb9c in QAbstractButton::event (this=0x822bbb0, e=0xbfc53708) at widgets/qabstractbutton.cpp:1072
#29 0xb74e1ce2 in QToolButton::event (this=0x822bbb0, e=0xbfc53708) at widgets/qtoolbutton.cpp:1103
#30 0xb707e8c5 in QApplicationPrivate::notify_helper (this=0x805afd8, receiver=0x822bbb0, e=0xbfc53708) at kernel/qapplication.cpp:3803
#31 0xb707f399 in QApplication::notify (this=0xbfc53f3c, receiver=0x822bbb0, e=0xbfc53708) at kernel/qapplication.cpp:3528
#32 0xb7a41ebb in KApplication::notify (this=0xbfc53f3c, receiver=0x822bbb0, event=0xbfc53708) at /home/tz/develop/kde/svn/kdelibs/kdeui/kernel/kapplication.cpp:311
#33 0xb6cc070a in QCoreApplication::notifyInternal (this=0xbfc53f3c, receiver=0x822bbb0, event=0xbfc53708) at kernel/qcoreapplication.cpp:583
#34 0xb708a79f in QCoreApplication::sendSpontaneousEvent (receiver=0x822bbb0, event=0xbfc53708) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#35 0xb708329c in QApplicationPrivate::sendMouseEvent (receiver=0x822bbb0, event=0xbfc53708, alienWidget=0x822bbb0, nativeWidget=0x819f2d8, buttonDown=0xb7798a60, lastMouseReceiver=@0xb7798a64)
    at kernel/qapplication.cpp:2793
#36 0xb70fdead in QETWidget::translateMouseEvent (this=0x819f2d8, event=0xbfc53c9c) at kernel/qapplication_x11.cpp:4042
#37 0xb70fb51b in QApplication::x11ProcessEvent (this=0xbfc53f3c, event=0xbfc53c9c) at kernel/qapplication_x11.cpp:3038
#38 0xb7127e71 in x11EventSourceDispatch (s=0x805df20, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142
#39 0xb6759cc6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0xb675d083 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0xb675d63e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#42 0xb6cefb8c in QEventDispatcherGlib::processEvents (this=0x805b128, flags=@0xbfc53e34) at kernel/qeventdispatcher_glib.cpp:319
#43 0xb712768c in QGuiEventDispatcherGlib::processEvents (this=0x805b128, flags=@0xbfc53e64) at kernel/qguieventdispatcher_glib.cpp:198
#44 0xb6cbd5ca in QEventLoop::processEvents (this=0xbfc53ee0, flags=@0xbfc53ea4) at kernel/qeventloop.cpp:143
#45 0xb6cbd809 in QEventLoop::exec (this=0xbfc53ee0, flags=@0xbfc53ee8) at kernel/qeventloop.cpp:190
#46 0xb6cc0ef3 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#47 0xb707e5de in QApplication::exec () at kernel/qapplication.cpp:3331
#48 0xb7f86e82 in kdemain (argc=1, argv=0xbfc54034) at /home/tz/develop/kde/svn/koffice/kword/part/main.cpp:38
#49 0x08048736 in main (argc=) at /home/ko2/koffice-build/kword/part/kword_dummy.cpp:3
Comment 1 T Zachmann 2009-01-11 06:55:12 UTC
SVN commit 909160 by zachmann:

o Fix crash when saving in kword

Thanks to Ralf Habacker for providing the patch.

BUG: 180238
CCMAIL: ralf.habacker@freenet.de


 M  +2 -0      KWPageStyle.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=909160
Comment 2 T Zachmann 2009-01-16 10:01:33 UTC
*** Bug 180936 has been marked as a duplicate of this bug. ***
Comment 3 T Zachmann 2009-01-16 10:45:39 UTC
*** Bug 180949 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-01-16 18:00:22 UTC
*** Bug 180992 has been marked as a duplicate of this bug. ***
Comment 5 T Zachmann 2009-01-19 07:58:09 UTC
*** Bug 181263 has been marked as a duplicate of this bug. ***
Comment 6 T Zachmann 2009-01-25 19:42:36 UTC
*** Bug 181899 has been marked as a duplicate of this bug. ***
Comment 7 Dario Andres 2009-01-29 17:10:49 UTC
*** Bug 182301 has been marked as a duplicate of this bug. ***
Comment 8 Thomas Zander 2009-01-30 16:48:14 UTC
SVN commit 918725 by zander:

Revert changing of behavior of the pageStyle and add proper fix for this
crash.
BUG:180238

 M  +3 -0      KWOdfWriter.cpp  
 M  +0 -2      KWPageStyle.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=918725
Comment 9 Thomas Zander 2009-02-01 10:38:40 UTC
*** Bug 182666 has been marked as a duplicate of this bug. ***
Comment 10 Thomas Zander 2009-02-04 10:22:05 UTC
*** Bug 183110 has been marked as a duplicate of this bug. ***