Bug 132836

Summary: segfault when loading c++ header file
Product: [Applications] umbrello Reporter: F Hammer <f.hammer>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED WORKSFORME    
Severity: crash    
Priority: NOR    
Version: 1.5.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description F Hammer 2006-08-23 02:31:40 UTC
Version:           1.5.2 (using KDE 3.5.2, Gentoo)
Compiler:          gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
OS:                Linux (i686) release 2.6.16-gentoo-r13

if i load this header file umbrello crashes:

-------------------------------------------------------------

#ifndef MAINWINDOWIMPL_H
#define MAINWINDOWIMPL_H

#include "ui_mainwindow.h"
#include "newgamedialogimpl.h"
#include <iostream>

#include "game.h"
#include "bettingrounds.h"
#include "session.h"

// #include <Qt3Support>
#include <QtGui>
#include <QtCore>

class Game;
class BettingRounds;
class Session;

class mainWindowImpl: public Q3MainWindow, public Ui::mainWindow {
Q_OBJECT
public:
	mainWindowImpl(Q3MainWindow *parent = 0, const char *name = 0);
	void takeGame(Game*);
	void takeBettingRounds(BettingRounds*);
	void takeSession(Session*);
	

public slots:

	void callNewGameDialog() ;

private: 
	
	Game *actualGame;
	BettingRounds *actualBettingRounds;
	Session *mySession;
};

#endif

------------------------------------------------------------

here is the backtrace from gdb:

doitux@hammer2 ~ $ gdb /usr/kde/3.5/bin/umbrello
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/kde/3.5/bin/umbrello
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1231771984 (LWP 11200)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1231771984 (LWP 11200)]
0x08203cbb in QMapPrivate<QString, QMap<QString, QPair<QString, int> > >::find
    ()
(gdb) bt
#0  0x08203cbb in QMapPrivate<QString, QMap<QString, QPair<QString, int> > >::find ()
#1  0x08201ad7 in Driver::dependences ()
#2  0x0813d88a in CppImport::feedTheModel ()
#3  0x0813dc25 in CppImport::feedTheModel ()
#4  0x0813dc25 in CppImport::feedTheModel ()
#5  0x0813dc25 in CppImport::feedTheModel ()
#6  0x0813dc25 in CppImport::feedTheModel ()
#7  0x0813dc25 in CppImport::feedTheModel ()
#8  0x0813dc25 in CppImport::feedTheModel ()
#9  0x0813dc25 in CppImport::feedTheModel ()
#10 0x0813dc25 in CppImport::feedTheModel ()
#11 0x0813dc25 in CppImport::feedTheModel ()
#12 0x0813dc25 in CppImport::feedTheModel ()
#13 0x0813dc25 in CppImport::feedTheModel ()
#14 0x0813dc25 in CppImport::feedTheModel ()
#15 0x0813dc25 in CppImport::feedTheModel ()
#16 0x0813dc25 in CppImport::feedTheModel ()
#17 0x0813dc25 in CppImport::feedTheModel ()
#18 0x0813dc25 in CppImport::feedTheModel ()
#19 0x0813dc25 in CppImport::feedTheModel ()
#20 0x0813dc25 in CppImport::feedTheModel ()
#21 0x0813dc25 in CppImport::feedTheModel ()
---Type <return> to continue, or q <return> to quit---
Comment 1 Oliver Kellogg 2006-09-20 19:10:42 UTC
Cannot confirm on branches/KDE/3.5 when none of the #included files are
visible to the importer.
If #included files were visible when you imported this file
then please attach all the visible includefiles.
Comment 2 Oliver Kellogg 2007-02-07 23:40:40 UTC
Closing due to lack of requested info.