kdevelop 3.0.0 segv in kdelibs/kdeui/kxmlguiclient.cpp

Albert Chin kdevelop at mlists.thewrittenword.com
Wed Mar 10 12:44:34 GMT 2004


On Tue, Mar 09, 2004 at 06:27:56PM -0600, Albert Chin wrote:
> I've built kdevelop on Tru64 UNIX 5.1 and am getting a SEGV on
> startup. The backtrace:
> #10 0x30007214918 in ((KInstance*)0x0)->KInstance::instanceName()
> "kinstance.cpp":248
> 				  ^^^ the problem
> 
> #11 0x30006325828 in
> ((KXMLGUIClient*)0x140223650)->KXMLGUIClient::setXMLFile(_file=& class
> QString { ... }, merge='\000', setXMLDoc='\001')
> "kxmlguiclient.cpp":181
> #12 0x30010022710 in
> ((MakeViewPart*)0x140223600)->MakeViewPart::MakeViewPart(parent=0x1401b3f00,
> name=0x0, =& class QStringList { ... }) "makeviewpart.cpp":35
> #13 0x30010020d88 in
> create__Q110KDEPrivate40ConcreteFactory__T12MakeViewPart7QObjectXP7QWidgetPCcP7QObjectPCcRC11QStringListQ110KDEPrivate20Type2Type__T7QObject(=0x0,
> =0x0, parent=0x1401b3f00, name=0x0, args=& class QStringList { ... },
> =struct Type2Type<QObject> { ... })
> "/opt/TWWfsw/kde32/include/kgenericfactory.tcc":167
> 
> The SEGV comes from kdelibs/kdeui/kxmlguiclient.cpp in
> KXMLGUIClient::setXMLFile():
>   ...
>   QString filter = QString::fromLatin1( instance()->instanceName() +
> 					'/' ) + _file;
> 
> How do I debug this? I added some print statements to debug this and
> noticed that instance() changed after the call to
> KXMLGUIClient::setXMLFile for "kdevmakeview.rc". On Redhat Linux 9, it
> changed to a non-NULL value (ditto for IRIX 6.5). However, on Tru64
> UNIX, it seems to be NULL.
> 
> The failure is from kdevelop 3.0.0.

Ditto for 3.0.2.

In makeviewpart.cpp, we have:
  MakeViewPart::MakeViewPart(QObject *parent, const char *name,
  const QStringList &)
      : KDevMakeFrontend("MakeOutput", "makeoutput", parent, name)
  {
      setInstance(OutputViewsFactory::instance());

      setXMLFile("kdevmakeview.rc");

Turns out OutputViewsFactory::instance() == 0x0. Any ideas why?

-- 
albert chin (china at thewrittenword.com)

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list