Bug 74336

Summary: much qDebug output in an application crashes kdevelop
Product: [Applications] kdevelop Reporter: Holger Schröder <holger-kde>
Component: Output ViewsAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 3.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Holger Schröder 2004-02-06 13:14:03 UTC
Version:           3.0.0 (using KDE 3.2.0, Gentoo)
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)
OS:          Linux (i686) release 2.6.0-gentoo

Hi,

on much debug output of a program kdevelop 3.0.0 silently dies without a backtrace. to reproduce do the following:

create a new project: a kde application framework, compile it, run it, verify that it works. now edit the <project>view.cpp. for example in the method fileNew and add a loop, that only produces debug output:

void crashtestdummy::fileNew()
{
    // this slot is called whenever the File->New menu is selected,
    // the New shortcut is pressed (usually CTRL+N) or the New toolbar
    // button is clicked
    while ( true )
    {
	qDebug( "this is a debug statement..." );
	qDebug( "this is a very looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong debug statement..." );
    }

    // create a new window
    (new crashtestdummy)->show();
}


now run the program. for me it runs about 3 seconds and then the kdevelop window disappears. then i have to kill the test app.

also sometimes it seems as some debug lines in the kdevelop application window are printed more than once...

i hope this is enough description to reproduce.

thanks, Holger
Comment 1 Jens Dagerbo 2004-02-06 18:46:05 UTC
I'm not surprised.. it's busted in many interesting ways. Still trying to find a good and not too unfeatured solution.
Comment 2 Waldo Bastian 2004-02-29 16:03:03 UTC
ProcessWidget::maybeScrollToBottom() uses processEvents which is very suspicious and is likely to cause unwanted recursion in this case.
Comment 3 Jens Dagerbo 2004-02-29 17:28:36 UTC
Not anymore, so maybe it won't crash now. Hmm.. forgot to backport it, I think..
Comment 4 Jens Dagerbo 2004-03-01 08:18:03 UTC
I just realized, this is very probably a dupe.



*** This bug has been marked as a duplicate of 67217 ***