Bug 51658 - crash after quit without saving
Summary: crash after quit without saving
Status: RESOLVED FIXED
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Laurent Montel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-08 22:21 UTC by Edwin Schepers
Modified: 2002-12-12 19:37 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 Edwin Schepers 2002-12-08 22:21:16 UTC
Version:           cvs (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)
OS:          Linux (i686) release 2.4.18-3

Hi,
Sometimes when I close kspread, it crashes.

Regards,
Edwin

[New Thread 1024 (LWP 27534)]
0x420b4769 in wait4 () from /lib/i686/libc.so.6
#0  0x420b4769 in wait4 () from /lib/i686/libc.so.6
#1  0x4213030c in __DTOR_END__ () from /lib/i686/libc.so.6
#2  0x40e23ca3 in waitpid () from /lib/i686/libpthread.so.0
#3  0x405a9adc in KCrash::defaultCrashHandler (sig=11) at kcrash.cpp:235
#4  0x40e21f75 in pthread_sighandler () from /lib/i686/libpthread.so.0
#5  <signal handler called>
#6  0x080b5340 in ?? ()
#7  0x4109f0a3 in KoPartManager::~KoPartManager (this=0x8196020, __in_chrg=3)
    at koMainWindow.moc:28
#8  0x4109871e in KoMainWindow::~KoMainWindow (this=0x81296a8, __in_chrg=3)
    at koMainWindow.cc:313
#9  0x40911e34 in QObject::event () from /opt/qt-copy/lib/libqt-mt.so.3
#10 0x4093e610 in QWidget::event () from /opt/qt-copy/lib/libqt-mt.so.3
#11 0x409cd632 in QMainWindow::event () from /opt/qt-copy/lib/libqt-mt.so.3
#12 0x408c28ec in QApplication::internalNotify ()
   from /opt/qt-copy/lib/libqt-mt.so.3
#13 0x408c26f7 in QApplication::notify () from /opt/qt-copy/lib/libqt-mt.so.3
#14 0x4052e6ae in KApplication::notify (this=0xbffff430, receiver=0x81296a8, 
    event=0x81b14f8) at kapplication.cpp:437
#15 0x408c35ea in QApplication::sendPostedEvents ()
   from /opt/qt-copy/lib/libqt-mt.so.3
#16 0x408d28ef in QEventLoop::enterLoop () from /opt/qt-copy/lib/libqt-mt.so.3
#17 0x408d2831 in QEventLoop::exec () from /opt/qt-copy/lib/libqt-mt.so.3
#18 0x408c2a42 in QApplication::exec () from /opt/qt-copy/lib/libqt-mt.so.3
#19 0x40686fe2 in main (argc=1, argv=0x8058b30) at main.cc:46
#20 0x0804c99c in launch (argc=1, _name=0x805ecdc "kspread", 
    args=0x805ece4 "\001", cwd=0x0, envc=1, envs=0x805ecf5 "", 
    reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x805ecf9 "CC90001-A;1039385372;391354;1556")
    at kinit.cpp:547
#21 0x0804d6b7 in handle_launcher_request (sock=7) at kinit.cpp:1023
#22 0x0804db5e in handle_requests (waitForPid=0) at kinit.cpp:1189
#23 0x0804ea57 in main (argc=3, argv=0xbffffca4, envp=0xbffffcb4)
    at kinit.cpp:1534
#24 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6
Comment 1 Philipp Müller 2002-12-12 13:42:58 UTC
Hello,

I don't think this is a KSpread or KOffice issue, as the backtrace is competely
kdelibs related. But before I hand this over to another module, can you update
KDE and KOffice again and see if it still crashes and if yes if the backtrace is
similar.

I've seen some changes to the way parts are handled and some fixes for crashes
in the cvs commits, so I asume this is fixed in KDE already.

So can you check again please?

Philipp
Comment 2 David Faure 2002-12-12 19:37:07 UTC
Subject: koffice/lib/kofficecore

CVS commit by faure: 

Fix crash on exit after using "New View". The previous fix (1.277) was wrong.
Simon: how does this look?
CCMAIL: 51658-done@bugs.kde.org


  M +4 -6      koMainWindow.cc   1.279


--- koffice/lib/kofficecore/koMainWindow.cc  #1.278:1.279
@@ -308,5 +308,4 @@ KoMainWindow::~KoMainWindow()
     {
         //kdDebug(30003) << "Destructor. No more views, deleting old doc " << d->m_rootDoc << endl;
-        d->m_manager->removePart( d->m_rootDoc ); // otherwise ~PartManager will try to access the deleted doc
         delete d->m_rootDoc;
     }
@@ -334,5 +333,5 @@ void KoMainWindow::setRootDocument( KoDo
   {
     doc->setSelectable( false );
-    d->m_manager->addPart( doc, false );
+    //d->m_manager->addPart( doc, false ); // done by KoView::setPartManager
     d->m_rootViews.append( doc->createView( d->m_splitter ) );
     d->m_rootViews.current()->setPartManager( d->m_manager );
@@ -363,5 +362,4 @@ void KoMainWindow::setRootDocument( KoDo
   {
     //kdDebug(30003) << "No more views, deleting old doc " << oldRootDoc << endl;
-    d->m_manager->removePart( oldRootDoc ); // otherwise ~PartManager will try to access the deleted doc
     delete oldRootDoc;
   }