https://bugs.kde.org/show_bug.cgi?id=411240
Bug ID: 411240 Summary: Calligra Sheets crashes when saving sheet with specific date format Product: calligrasheets Version: 3.1.0 Platform: Neon Packages OS: Linux Status: REPORTED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: calligra-sheets-bugs-n...@kde.org Reporter: ulrich.id...@gmail.com Target Milestone: --- Application: calligrasheets (3.1.0) Qt Version: 5.12.3 Frameworks Version: 5.61.0 Operating System: Linux 5.0.0-25-generic x86_64 Distribution: KDE neon User Edition 5.16 -- Information about the crash: - What I was doing when the application crashed: When using =CURRENTDATE() and change Cell Format to Date with long notation (second option in the list), example: System: Saturday, August 24, 2019) and try to save the sheet, the program crashes. Other date formats like 2019-08-24 are no problem. The crash can be reproduced every time. -- Backtrace: Application: Calligra Sheets (calligrasheets), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0x7f7b3f0c2880 (LWP 2685))] Thread 6 (Thread 0x7f7b02a70700 (LWP 2705)): #0 0x00007f7b3ea2c615 in pthread_mutex_unlock (mutex=0x564ac3f39470) at forward.c:194 #1 0x00007f7b1a1795fe in pa_mutex_unlock () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so #2 0x00007f7b1a809473 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0 #3 0x00007f7b1a7fae40 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0 #4 0x00007f7b1a7fb4d0 in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0 #5 0x00007f7b1a7fb560 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0 #6 0x00007f7b1a8093c9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0 #7 0x00007f7b1a17a318 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so #8 0x00007f7b34bc86db in start_thread (arg=0x7f7b02a70700) at pthread_create.c:463 #9 0x00007f7b3ea1d88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 5 (Thread 0x7f7b03aa0700 (LWP 2690)): #0 0x00007f7b34bce9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564ac1fd13a8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x564ac1fd1358, cond=0x564ac1fd1380) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x564ac1fd1380, mutex=0x564ac1fd1358) at pthread_cond_wait.c:655 #3 0x00007f7b0dd9023a in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so #4 0x00007f7b0dd8ff67 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so #5 0x00007f7b34bc86db in start_thread (arg=0x7f7b03aa0700) at pthread_create.c:463 #6 0x00007f7b3ea1d88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 4 (Thread 0x7f7b08aad700 (LWP 2689)): #0 0x00007f7b34bce9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564ac2071760) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x564ac2071710, cond=0x564ac2071738) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x564ac2071738, mutex=0x564ac2071710) at pthread_cond_wait.c:655 #3 0x00007f7b0dd9023a in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so #4 0x00007f7b0dd8ff67 in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so #5 0x00007f7b34bc86db in start_thread (arg=0x7f7b08aad700) at pthread_create.c:463 #6 0x00007f7b3ea1d88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 3 (Thread 0x7f7b21715700 (LWP 2688)): #0 0x00007f7b3ea0c0b4 in __GI___libc_read (fd=7, buf=0x7f7b21714ae0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27 #1 0x00007f7b3383a2d0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007f7b337f50b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007f7b337f5570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007f7b337f56dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007f7b3cffbdcb in QEventDispatcherGlib::processEvents (this=0x7f7b1c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424 #6 0x00007f7b3cf9d03a in QEventLoop::exec (this=this@entry=0x7f7b21714cf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225 #7 0x00007f7b3cdc44ca in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531 #8 0x00007f7b3796e015 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5 #9 0x00007f7b3cdc5c72 in QThreadPrivate::start (arg=0x7f7b37be5d80) at thread/qthread_unix.cpp:361 #10 0x00007f7b34bc86db in start_thread (arg=0x7f7b21715700) at pthread_create.c:463 #11 0x00007f7b3ea1d88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 2 (Thread 0x7f7b28903700 (LWP 2687)): #0 0x00007f7b3ea10bf9 in __GI___poll (fds=0x7f7b28902c28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007f7b304d3747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #2 0x00007f7b304d536a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #3 0x00007f7b2ac49578 in QXcbEventQueue::run (this=0x564ac1bb1ae0) at qxcbeventqueue.cpp:228 #4 0x00007f7b3cdc5c72 in QThreadPrivate::start (arg=0x564ac1bb1ae0) at thread/qthread_unix.cpp:361 #5 0x00007f7b34bc86db in start_thread (arg=0x7f7b28903700) at pthread_create.c:463 #6 0x00007f7b3ea1d88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 1 (Thread 0x7f7b3f0c2880 (LWP 2685)): [KCrash Handler] #6 QVector<KoXmlWriter::Tag>::reallocData (this=this@entry=0x564ac3d317f8, asize=0, aalloc=<optimized out>, options=..., options@entry=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:569 #7 0x00007f7b3ac59f6e in QVector<KoXmlWriter::Tag>::detach (this=0x564ac3d317f8) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:389 #8 QVector<KoXmlWriter::Tag>::data (this=0x564ac3d317f8) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qvector.h:127 #9 QStack<KoXmlWriter::Tag>::pop (this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstack.h:62 #10 KoXmlWriter::endElement (this=0x7ffcf785edc8) at ./libs/store/KoXmlWriter.cpp:182 #11 0x00007f7b3aeae410 in OdfWriter::end (this=this@entry=0x7ffcf785edf0) at ./libs/odf/writeodf/odfwriter.h:72 #12 0x00007f7b3aeb3c35 in OdfWriter::end (this=0x7ffcf785edf0) at ./libs/odf/writeodf/odfwriter.h:70 #13 OdfWriter::~OdfWriter (this=0x7ffcf785edf0, __in_chrg=<optimized out>) at ./libs/odf/writeodf/odfwriter.h:52 #14 writeodf::number_day_of_week::~number_day_of_week (this=0x7ffcf785edf0, __in_chrg=<optimized out>) at ./obj-x86_64-linux-gnu/libs/odf/writeodf/writeodfnumber.h:211 #15 KoOdfNumberStyles::parseOdfDatelocale (text=..., format=..., elementWriter=...) at ./libs/odf/KoOdfNumberStyles.cpp:878 #16 KoOdfNumberStyles::saveOdfDateStyle (mainStyles=..., _format=..., localeFormat=<optimized out>, _prefix=..., _suffix=...) at ./libs/odf/KoOdfNumberStyles.cpp:906 #17 0x00007f7b1b937314 in Calligra::Sheets::Odf::saveStyleNumericDate (mainStyles=..., _style=<optimized out>, _prefix=..., _postfix=...) at ./sheets/odf/SheetsOdfStyle.cpp:1286 #18 0x00007f7b1b938e27 in Calligra::Sheets::Odf::saveStyleNumeric (style=..., mainStyles=..., _style=<optimized out>, _prefix=..., _postfix=..., _precision=0, symbol=..., thousandsSep=false) at ./sheets/odf/SheetsOdfStyle.cpp:1059 #19 0x00007f7b1b93a09b in Calligra::Sheets::Odf::saveStyle (style=style@entry=0x7ffcf785f330, keysToStore=..., xmlstyle=..., mainStyles=..., manager=<optimized out>) at ./sheets/odf/SheetsOdfStyle.cpp:894 #20 0x00007f7b1b93ac3a in Calligra::Sheets::Odf::saveStyle (style=style@entry=0x7ffcf785f330, xmlstyle=..., mainStyles=..., manager=<optimized out>) at ./sheets/odf/SheetsOdfStyle.cpp:953 #21 0x00007f7b1b92e600 in Calligra::Sheets::Odf::saveCellStyle (cell=cell@entry=0x7ffcf785f808, currentCellStyle=..., mainStyles=...) at ./sheets/odf/SheetsOdfCell.cpp:888 #22 0x00007f7b1b92fd33 in Calligra::Sheets::Odf::saveCell (cell=cell@entry=0x7ffcf785f808, repeated=@0x7ffcf785f7f4: 1, tableContext=...) at ./sheets/odf/SheetsOdfCell.cpp:417 #23 0x00007f7b1b9231d0 in Calligra::Sheets::Odf::saveCells (sheet=sheet@entry=0x564ac213e810, row=3, maxCols=2, tableContext=...) at ./sheets/odf/SheetsOdfSheet.cpp:1379 #24 0x00007f7b1b9269b2 in Calligra::Sheets::Odf::saveColRowCell (sheet=sheet@entry=0x564ac213e810, maxCols=<optimized out>, maxRows=<optimized out>, tableContext=...) at ./sheets/odf/SheetsOdfSheet.cpp:1332 #25 0x00007f7b1b92b010 in Calligra::Sheets::Odf::saveSheet (sheet=0x564ac213e810, tableContext=...) at ./sheets/odf/SheetsOdfSheet.cpp:1066 #26 0x00007f7b1b91e18b in Calligra::Sheets::Odf::saveMap (map=0x564ac1cd0df0, xmlWriter=..., savingContext=...) at ./sheets/odf/SheetsOdfMap.cpp:300 #27 0x00007f7b1b9153c0 in Calligra::Sheets::Odf::saveDocument (doc=0x564ac1c66230, documentContext=...) at ./sheets/odf/SheetsOdfDoc.cpp:186 #28 0x00007f7b1b87706b in Calligra::Sheets::DocBase::saveOdf (this=0x564ac1c66230, documentContext=...) at ./sheets/DocBase.cpp:134 #29 0x00007f7b3e660239 in KoDocument::saveNativeFormatODF (this=this@entry=0x564ac1c66230, store=store@entry=0x564ac3f3e690, mimeType=...) at ./libs/main/KoDocument.cpp:848 #30 0x00007f7b3e66144f in KoDocument::saveNativeFormat (this=this@entry=0x564ac1c66230, file=...) at ./libs/main/KoDocument.cpp:832 #31 0x00007f7b3e65c24b in KoDocument::saveFile (this=0x564ac1c66230) at ./libs/main/KoDocument.cpp:585 #32 0x00007f7b3e6649c7 in KoDocument::save (this=0x564ac1c66230) at ./libs/main/KoDocument.cpp:2509 #33 0x00007f7b3e674b06 in KoMainWindow::saveDocument (this=this@entry=0x564ac1d55db0, saveas=<optimized out>, saveas@entry=false, silent=silent@entry=false, specialOutputFlag=specialOutputFlag@entry=0) at ./libs/main/KoMainWindow.cpp:1104 #34 0x00007f7b3e675b9f in KoMainWindow::slotFileSave (this=0x564ac1d55db0) at ./libs/main/KoMainWindow.cpp:1325 #35 0x00007f7b3e6c8125 in KoMainWindow::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffcf7860600) at ./obj-x86_64-linux-gnu/libs/main/komain_autogen/EWIEGA46WW/moc_KoMainWindow.cpp:255 #36 0x00007f7b3cfce875 in QMetaObject::activate (sender=sender@entry=0x564ac1db73d0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffcf7860600) at kernel/qobject.cpp:3795 #37 0x00007f7b3cfcef47 in QMetaObject::activate (sender=sender@entry=0x564ac1db73d0, m=m@entry=0x7f7b3dc844a0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffcf7860600) at kernel/qobject.cpp:3648 #38 0x00007f7b3d5a9f12 in QAction::triggered (this=this@entry=0x564ac1db73d0, _t1=<optimized out>) at .moc/moc_qaction.cpp:380 #39 0x00007f7b3d5ac52c in QAction::activate (this=0x564ac1db73d0, event=<optimized out>) at kernel/qaction.cpp:1166 #40 0x00007f7b3d69978b in QAbstractButtonPrivate::click (this=0x564ac1d0a840) at widgets/qabstractbutton.cpp:397 #41 0x00007f7b3d6999ed in QAbstractButton::mouseReleaseEvent (this=0x564ac1dcf780, e=0x7ffcf7860c10) at widgets/qabstractbutton.cpp:1011 #42 0x00007f7b3d78896a in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:622 #43 0x00007f7b3d5f09c8 in QWidget::event (this=0x564ac1dcf780, event=0x7ffcf7860c10) at kernel/qwidget.cpp:9322 #44 0x00007f7b3d69abbb in QAbstractButton::event (this=this@entry=0x564ac1dcf780, e=e@entry=0x7ffcf7860c10) at widgets/qabstractbutton.cpp:968 #45 0x00007f7b3d788a04 in QToolButton::event (this=0x564ac1dcf780, event=0x7ffcf7860c10) at widgets/qtoolbutton.cpp:1001 #46 0x00007f7b3d5b065c in QApplicationPrivate::notify_helper (this=this@entry=0x564ac1ba3b60, receiver=receiver@entry=0x564ac1dcf780, e=e@entry=0x7ffcf7860c10) at kernel/qapplication.cpp:3736 #47 0x00007f7b3d5b8a58 in QApplication::notify (this=<optimized out>, receiver=0x564ac1dcf780, e=0x7ffcf7860c10) at kernel/qapplication.cpp:3197 #48 0x00007f7b3e6562f7 in KoApplication::notify (this=<optimized out>, receiver=0x564ac1dcf780, event=0x7ffcf7860c10) at ./libs/main/KoApplication.cpp:658 #49 0x00007f7b3cf9ed18 in QCoreApplication::notifyInternal2 (receiver=0x564ac1dcf780, event=0x7ffcf7860c10) at kernel/qcoreapplication.cpp:1060 #50 0x00007f7b3cf9eefe in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x564ac1dcf780, event=event@entry=0x7ffcf7860c10) at kernel/qcoreapplication.cpp:1462 #51 0x00007f7b3d5b705f in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x564ac1dcf780, event=event@entry=0x7ffcf7860c10, alienWidget=0x564ac1dcf780, nativeWidget=0x564ac1d55db0, buttonDown=buttonDown@entry=0x7f7b3dcb38d0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2683 #52 0x00007f7b3d60b8a1 in QWidgetWindow::handleMouseEvent (this=this@entry=0x564ac1fecdc0, event=event@entry=0x7ffcf7861110) at kernel/qwidgetwindow.cpp:662 #53 0x00007f7b3d60e6fa in QWidgetWindow::event (this=0x564ac1fecdc0, event=0x7ffcf7861110) at kernel/qwidgetwindow.cpp:281 #54 0x00007f7b3d5b065c in QApplicationPrivate::notify_helper (this=this@entry=0x564ac1ba3b60, receiver=receiver@entry=0x564ac1fecdc0, e=e@entry=0x7ffcf7861110) at kernel/qapplication.cpp:3736 #55 0x00007f7b3d5b7b90 in QApplication::notify (this=0x7ffcf7861540, receiver=0x564ac1fecdc0, e=0x7ffcf7861110) at kernel/qapplication.cpp:3483 #56 0x00007f7b3e6562f7 in KoApplication::notify (this=<optimized out>, receiver=0x564ac1fecdc0, event=0x7ffcf7861110) at ./libs/main/KoApplication.cpp:658 #57 0x00007f7b3cf9ed18 in QCoreApplication::notifyInternal2 (receiver=0x564ac1fecdc0, event=0x7ffcf7861110) at kernel/qcoreapplication.cpp:1060 #58 0x00007f7b3cf9eefe in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x564ac1fecdc0, event=event@entry=0x7ffcf7861110) at kernel/qcoreapplication.cpp:1462 #59 0x00007f7b37f371fb in QGuiApplicationPrivate::processMouseEvent (e=0x564ac4020460) at kernel/qguiapplication.cpp:2102 #60 0x00007f7b37f38365 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x564ac4020460) at kernel/qguiapplication.cpp:1837 #61 0x00007f7b37f10b4b in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1151 #62 0x00007f7b2ac4a59a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105 #63 0x00007f7b337f5417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #64 0x00007f7b337f5650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #65 0x00007f7b337f56dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #66 0x00007f7b3cffbdaf in QEventDispatcherGlib::processEvents (this=0x564ac1c14120, flags=...) at kernel/qeventdispatcher_glib.cpp:422 #67 0x00007f7b3cf9d03a in QEventLoop::exec (this=this@entry=0x7ffcf78614b0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225 #68 0x00007f7b3cfa6170 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1363 #69 0x00007f7b3ecf0d0a in kdemain (argc=<optimized out>, argv=<optimized out>) at ./sheets/part/Main.cpp:59 #70 0x00007f7b3e91db97 in __libc_start_main (main=0x564ac160e980 <main>, argc=1, argv=0x7ffcf7861698, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcf7861688) at ../csu/libc-start.c:310 #71 0x0000564ac160e9ba in _start () Reported using DrKonqi -- You are receiving this mail because: You are watching all bug changes.