Bug 271807 - kspread crashed when attempting to remove a row
Summary: kspread crashed when attempting to remove a row
Status: RESOLVED FIXED
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Calligra Sheets (KSpread) Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-26 21:13 UTC by Craig Magina
Modified: 2011-07-30 15:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Magina 2011-04-26 21:13:47 UTC
Application: kspread (2.3.3)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:
I had right clicked on a row and clicked the remove row entry.

The crash can be reproduced some of the time.

-- Backtrace:
Application: KSpread (kspread), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fb878ed27a0 (LWP 15363))]

Thread 2 (Thread 0x7fb856fae700 (LWP 15440)):
#0  0x00007fb87883ef03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fb8732b6104 in g_main_context_poll (context=0x2ea5e90, block=<value optimized out>, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3404
#2  g_main_context_iterate (context=0x2ea5e90, block=<value optimized out>, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3086
#3  0x00007fb8732b6639 in g_main_context_iteration (context=0x2ea5e90, may_block=1) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3154
#4  0x00007fb876f9a446 in QEventDispatcherGlib::processEvents (this=0x2ea5b30, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fb876f6e882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fb876f6eabc in QEventLoop::exec (this=0x7fb856faddb0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007fb876e85924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007fb876f50c2f in QInotifyFileSystemWatcherEngine::run (this=0x2ea5000) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fb876e88175 in QThreadPrivate::start (arg=0x2ea5000) at thread/qthread_unix.cpp:320
#10 0x00007fb873781d8c in start_thread (arg=0x7fb856fae700) at pthread_create.c:304
#11 0x00007fb87884c04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fb878ed27a0 (LWP 15363)):
[KCrash Handler]
#6  KSpread::Sheet::cellStorage (this=0x0) at ../../kspread/Sheet.cpp:497
#7  0x00007fb8640dfef4 in KSpread::NamedAreaManager::remove (this=0x1d333b0, name=...) at ../../kspread/NamedAreaManager.cpp:96
#8  0x00007fb8640e0320 in KSpread::NamedAreaManager::qt_metacall (this=0x1d333b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff670a7ea0) at ./NamedAreaManager.moc:86
#9  0x00007fb876f845f8 in QMetaObject::activate (sender=0x2044a30, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff670a7ea0) at kernel/qobject.cpp:3287
#10 0x00007fb864035995 in KSpread::CellStorage::namedAreaRemoved (this=<value optimized out>, _t1=<value optimized out>) at ./CellStorage.moc:95
#11 0x00007fb86403cd6b in KSpread::CellStorage::stopUndoRecording (this=0x2044a30, parent=<value optimized out>) at ../../kspread/CellStorage.cpp:1471
#12 0x00007fb864481945 in KSpread::InsertDeleteRowManipulator::postProcessing (this=0x2068bf0) at ../../kspread/commands/RowColumnManipulators.cpp:796
#13 0x00007fb86446aa03 in KSpread::AbstractRegionCommand::redo (this=0x2068bf0) at ../../kspread/commands/AbstractRegionCommand.cpp:112
#14 0x00007fb877f8c433 in QUndoStack::push (this=0x1d32920, cmd=0x2068c00) at util/qundostack.cpp:541
#15 0x00007fb86446b292 in KSpread::AbstractRegionCommand::execute (this=0x2068bf0, canvas=0x246be88) at ../../kspread/commands/AbstractRegionCommand.cpp:81
#16 0x00007fb86446428d in KSpread::CellToolBase::qt_metacall (this=0x2d229d0, _c=QMetaObject::InvokeMetaMethod, _id=65, _a=0x7fff670a81f0) at moc_CellToolBase.cpp:337
#17 0x00007fb8644f5a10 in KSpread::CellTool::qt_metacall (this=0x2d229d0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff670a81f0) at ./CellTool.moc:70
#18 0x00007fb876f845f8 in QMetaObject::activate (sender=0x2d3ec60, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff670a81f0) at kernel/qobject.cpp:3287
#19 0x00007fb877928112 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#20 0x00007fb8779282ff in QAction::activate (this=0x2d3ec60, event=<value optimized out>) at kernel/qaction.cpp:1257
#21 0x00007fb877d6a303 in QMenuPrivate::activateCausedStack (this=0x2f08eb0, causedStack=..., action=0x2d3ec60, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#22 0x00007fb877d702ba in QMenuPrivate::activateAction (this=0x2f08eb0, action=0x2d3ec60, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1085
#23 0x00007fb8743cce8d in KMenu::mouseReleaseEvent (this=0x2eb6520, e=<value optimized out>) at ../../kdeui/widgets/kmenu.cpp:458
#24 0x00007fb87797fcb8 in QWidget::event (this=0x2eb6520, event=0x7fff670a8e20) at kernel/qwidget.cpp:8259
#25 0x00007fb877d7149b in QMenu::event (this=0x2eb6520, e=0x7fff670a8e20) at widgets/qmenu.cpp:2415
#26 0x00007fb87792e9e4 in QApplicationPrivate::notify_helper (this=0x1b276e0, receiver=0x2eb6520, e=0x7fff670a8e20) at kernel/qapplication.cpp:4462
#27 0x00007fb877933db3 in QApplication::notify (this=<value optimized out>, receiver=0x2eb6520, e=0x7fff670a8e20) at kernel/qapplication.cpp:4023
#28 0x00007fb874306866 in KApplication::notify (this=0x7fff670ab2b0, receiver=0x2eb6520, event=0x7fff670a8e20) at ../../kdeui/kernel/kapplication.cpp:311
#29 0x00007fb876f6f49c in QCoreApplication::notifyInternal (this=0x7fff670ab2b0, receiver=0x2eb6520, event=0x7fff670a8e20) at kernel/qcoreapplication.cpp:731
#30 0x00007fb87792fa0d in sendEvent (receiver=0x2eb6520, event=0x7fff670a8e20, alienWidget=0x0, nativeWidget=0x2eb6520, buttonDown=0x7fb87840f218, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#31 QApplicationPrivate::sendMouseEvent (receiver=0x2eb6520, event=0x7fff670a8e20, alienWidget=0x0, nativeWidget=0x2eb6520, buttonDown=0x7fb87840f218, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#32 0x00007fb8779af854 in QETWidget::translateMouseEvent (this=0x2eb6520, event=<value optimized out>) at kernel/qapplication_x11.cpp:4490
#33 0x00007fb8779ae04a in QApplication::x11ProcessEvent (this=0x7fff670ab2b0, event=0x7fff670a9770) at kernel/qapplication_x11.cpp:3678
#34 0x00007fb8779d6162 in x11EventSourceDispatch (s=0x1b2af10, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#35 0x00007fb8732b5bcd in g_main_dispatch (context=0x1b2a0e0) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:2440
#36 g_main_context_dispatch (context=0x1b2a0e0) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3013
#37 0x00007fb8732b63a8 in g_main_context_iterate (context=0x1b2a0e0, block=<value optimized out>, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3091
#38 0x00007fb8732b6639 in g_main_context_iteration (context=0x1b2a0e0, may_block=1) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3154
#39 0x00007fb876f9a3ef in QEventDispatcherGlib::processEvents (this=0x1acc340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#40 0x00007fb8779d5dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#41 0x00007fb876f6e882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#42 0x00007fb876f6eabc in QEventLoop::exec (this=0x7fff670a9a70, flags=...) at kernel/qeventloop.cpp:201
#43 0x00007fb877d6da11 in QMenu::exec (this=0x2eb6520, p=..., action=0x0) at widgets/qmenu.cpp:2059
#44 0x00007fb8644f31ba in KSpread::Canvas::showContextMenu (this=<value optimized out>, globalPos=...) at ../../kspread/part/Canvas.cpp:215
#45 0x00007fb8644eec21 in KSpread::CanvasBase::mousePressed (this=0x246be88, event=0x32c4b70) at ../../kspread/part/CanvasBase.cpp:341
#46 0x00007fb8644fd83c in KSpread::RowHeader::mousePress (this=0x2e82da8, _ev=0x7fff670a9d40) at ../../kspread/part/Headers.cpp:182
#47 0x00007fb86450293d in KSpread::RowHeaderWidget::mousePressEvent (this=0x2e82d80, _ev=<value optimized out>) at ../../kspread/part/HeaderWidgets.cpp:112
#48 0x00007fb87797ffa1 in QWidget::event (this=0x2e82d80, event=0x7fff670aa620) at kernel/qwidget.cpp:8255
#49 0x00007fb87792e9e4 in QApplicationPrivate::notify_helper (this=0x1b276e0, receiver=0x2e82d80, e=0x7fff670aa620) at kernel/qapplication.cpp:4462
#50 0x00007fb877933db3 in QApplication::notify (this=<value optimized out>, receiver=0x2e82d80, e=0x7fff670aa620) at kernel/qapplication.cpp:4023
#51 0x00007fb874306866 in KApplication::notify (this=0x7fff670ab2b0, receiver=0x2e82d80, event=0x7fff670aa620) at ../../kdeui/kernel/kapplication.cpp:311
#52 0x00007fb876f6f49c in QCoreApplication::notifyInternal (this=0x7fff670ab2b0, receiver=0x2e82d80, event=0x7fff670aa620) at kernel/qcoreapplication.cpp:731
#53 0x00007fb87792fa0d in sendEvent (receiver=0x2e82d80, event=0x7fff670aa620, alienWidget=0x2e82d80, nativeWidget=0x1db3410, buttonDown=0x7fb87840f218, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#54 QApplicationPrivate::sendMouseEvent (receiver=0x2e82d80, event=0x7fff670aa620, alienWidget=0x2e82d80, nativeWidget=0x1db3410, buttonDown=0x7fb87840f218, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#55 0x00007fb8779af600 in QETWidget::translateMouseEvent (this=0x1db3410, event=<value optimized out>) at kernel/qapplication_x11.cpp:4556
#56 0x00007fb8779ae04a in QApplication::x11ProcessEvent (this=0x7fff670ab2b0, event=0x7fff670aaf70) at kernel/qapplication_x11.cpp:3678
#57 0x00007fb8779d6162 in x11EventSourceDispatch (s=0x1b2af10, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#58 0x00007fb8732b5bcd in g_main_dispatch (context=0x1b2a0e0) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:2440
#59 g_main_context_dispatch (context=0x1b2a0e0) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3013
#60 0x00007fb8732b63a8 in g_main_context_iterate (context=0x1b2a0e0, block=<value optimized out>, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3091
#61 0x00007fb8732b6639 in g_main_context_iteration (context=0x1b2a0e0, may_block=1) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3154
#62 0x00007fb876f9a3ef in QEventDispatcherGlib::processEvents (this=0x1acc340, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#63 0x00007fb8779d5dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#64 0x00007fb876f6e882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#65 0x00007fb876f6eabc in QEventLoop::exec (this=0x7fff670ab270, flags=...) at kernel/qeventloop.cpp:201
#66 0x00007fb876f72ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#67 0x00007fb878afc645 in kdemain (argc=<value optimized out>, argv=0x7fff670ab478) at ../../kspread/part/Main.cpp:43
#68 0x00007fb878784eff in __libc_start_main (main=0x400730 <main(int, char**)>, argc=2, ubp_av=0x7fff670ab478, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff670ab468) at libc-start.c:226
#69 0x0000000000400659 in _start ()

Reported using DrKonqi
Comment 1 Tomas Mecir 2011-07-30 15:34:53 UTC
Git commit 8a5dd233ac7af0ed56dafc313da0bd0a5fe31848 by Tomas Mecir.
Committed on 30/07/2011 at 17:32.
Pushed by mecir into branch 'master'.

Properly remove named areas when deleting rows.

BUG: 271807

M  +1    -1    tables/NamedAreaManager.cpp
M  +13   -0    tables/CellStorage.cpp
M  +1    -0    tables/CellStorage.h

http://commits.kde.org/calligra/8a5dd233ac7af0ed56dafc313da0bd0a5fe31848