Segmentation fault on exit

Johnas @ Work jic at atl.meitca.com
Fri Apr 28 16:36:16 UTC 2000


Here is a detail on this problem which I did not notice before:  When exiting the QScribble program using the menu selection:  "File->Exit", the program exits normally and the isLastView() method is never called.  However, when the program is exited using the "X" on the upperleft box of the application's window, I get the problem listed below.
  ----- Original Message ----- 
  From: Johnas @ Work 
  To: kdevelop at barney.cs.uni-potsdam.de 
  Sent: Thursday, April 27, 2000 5:12 PM
  Subject: Segmentation fault on exit


  I recently resolved problems with creating and debugging a KDE MDI project (KScribble example) using KDE2.  So, I moved on to creating and debugging a Qt MDI project (QScribble example which is the same as the KScribble example only created by choosing Qt MDI project in the wizard).  I overcame two problems when the linker could not find the libqt.so.2 library.  I created a link to the Qt 2.1 library (in the /usr/lib/qt-2.1.0/lib directory).  Also, the autoconf warned about not finding the KDE2 libraries, so I added "--prefix=/opt/kde2".  That seemed to solve the build.  The program runs fine until I decide to exit.  When simply running the program I get a segmentation fault error.  When I run the debugger, the debugger stops at the "isLastView()" method.  The status line says:  "No source:  0x804fffa in QScribbleDoc::isLastView (this=0x1) at qscribbledoc.cpp:73".  I understand that the this pointer (=0x1) is invalid.  I did not touch this part of the code (it was generated by the wizard).  If I close the child window within the app, the same routine is called with a valid pointer.  This does not happen in the KDE MDI project (KScribble).  The two (KScribble and QScribble) source codes are almost identical.  Is this a bug or am I missing something?

  Appreciate any help.

  Thanks,

  Johnas  Cukier
  Principal Technical Staff
  Mitsubishi Electric ITA
  571 Central Avenue, Suite 115
  New Providence, NJ 07974
  Phone:  (908)665-1200 ext. 20
  FAX:    (908)665-2414
  email:  jic at atl.meitca.com
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20000428/5a012865/attachment.html>


More information about the KDevelop mailing list