Bug 74336 - much qDebug output in an application crashes kdevelop
Summary: much qDebug output in an application crashes kdevelop
Status: RESOLVED DUPLICATE of bug 67217
Alias: None
Product: kdevelop
Classification: Applications
Component: Output Views (show other bugs)
Version: 3.0.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-06 13:14 UTC by Holger Schröder
Modified: 2004-03-01 08:18 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 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 ***