Bug 51670 - konsole crashes on startup
Summary: konsole crashes on startup
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-09 07:19 UTC by David Robins
Modified: 2002-12-09 08:11 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 David Robins 2002-12-09 07:19:03 UTC
Version:            (using KDE KDE 3.0.5)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2.1 
OS:          Linux

Installing KDE 3.0.5 (new Qt first, 3.1.0); installed kdelibs OK, and then kdebase (both form source).  Rebooted to clear out old libs etc.  Most apps run OK, except Konsole immediately crashes on startup (no main window, kcrash starts) - backtrace:

0x40ff1489 in __wait4 () at __wait4:-1
	in __wait4
#0  0x40ff1489 in __wait4 () at __wait4:-1
#1  0x4104f48c in __DTOR_END__ () from /lib/libc.so.6
#2  0x40ea68e5 in waitpid (pid=18747, stat_loc=0x0, options=0)
    at wrapsyscall.c:134
#3  0x405e8215 in KCrash::defaultCrashHandler(int) ()
   from /usr/local/kde/lib/libkdecore.so.4
#4  <signal handler called>
#5  0x40918f07 in QObject::inherits(char const*) const ()
   from /usr/local/qt/lib/libqt-mt.so.3
#6  0x08066461 in Konsole::makeGUI() ()
#7  0x0806a71b in Konsole::activateSession(TESession*) ()
#8  0x0806a43b in Konsole::activateSession() ()
#9  0x08069e3f in Konsole::runSession(TESession*) ()
#10 0x0806b86e in Konsole::newSession(KSimpleConfig*, QString, QStrList const&, QString const&, QString const&, QString const&) ()
#11 0x0806232a in Konsole::Konsole(char const*, QString const&, QStrList&, int, bool, bool, bool, bool, QString const&, QString const&, QCString, QString const&, bool) ()
#12 0x080605c8 in main ()
#13 0x40f791eb in __libc_start_main (main=0x805eb10 <main>, argc=1, 
    argv=0xbffff994, init=0x80581e0 <_init>, fini=0x808cd70 <_fini>, 
    rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffff98c)
    at ../sysdeps/generic/libc-start.c:90

Using this, I tracked down makeGUI's single call to 'inherits' and saw something described in a comment as a "hack" to reomve an empty separator that Qt erroneously adds.  I tried commenting out that code [the if(!(isRestored)) block] and did "make && make install" in the konsole directory.  No longer crashed.  (Assumption: latest Qt fixes the bug, and now the workaround is invalid.)
Comment 1 Stephan Binner 2002-12-09 08:11:28 UTC
Konsole of KDE 3.0.6 will not crash anymore with Qt 3.1.