Crash on loading project

Roberto Raggi roberto at kdevelop.org
Fri Mar 7 10:22:06 UTC 2003


On Fri, 2003-03-07 at 10:04, Thierry RAMANAMPANOHARANA wrote:
> Hi,
> 
> I am experiencing a 4/5 times crash when loading the gideon project 
> (gideon.kdevprj converted to gideon.kdevelop). Sometimes it crashes at 12% 
> when scanning files, and ofent at 41%. Here is a backtrace from kde crash 
> handler:
> 
> [New Thread 8192 (LWP 5926)]
> [New Thread 16385 (LWP 5927)]
> [New Thread 8194 (LWP 5928)]
> 0x420ae169 in wait4 () from /lib/i686/libc.so.6
> #0  0x420ae169 in wait4 () from /lib/i686/libc.so.6
> #1  0x4212a2d0 in __DTOR_END__ () from /lib/i686/libc.so.6
> #2  0x410e3c63 in waitpid () from /lib/i686/libpthread.so.0
> #3  0x40906d94 in KCrash::defaultCrashHandler(int) ()
>    from /usr/lib/libkdecore.so.4
> #4  <signal handler called>
> #5  0x40e3a7cb in QString::QString(QString const&) ()
>    from /usr/lib/qt-3.1/lib/libqt-mt.so.3
> #6  0x442bf1a3 in Lexer::nextToken(Token&) ()
>    from /usr/local/kde/lib/kde3/libkdevcppsupport.so
> #7  0x442bfd79 in Lexer::tokenize() ()
hmmm, it seems a problem of the lexer ;) please can you replace the
tokenize method in the lexer with something like

void Lexer::tokenize()
{
    m_startLine = true;
    m_size = 0;

    qDebug( "!!!!!!!!!! START TOKENIZE !!!!!!!!!!!!! %s",
m_driver->currentFileName().latin1() );

    for( ;; ) {
        Token tk;
        nextToken( tk );

        if( tk.type() != -1 ){
            addToken( tk );
            qDebug( "added token %d - %s", (int)tk,
toString(tk).latin1() );
        }

        if( currentChar().isNull() )
            break;
    }

    Token tk = Token( Token_eof, currentPosition(), 0 );
    tk.setStartPosition( m_currentLine, m_currentColumn );
    tk.setEndPosition( m_currentLine, m_currentColumn );
    addToken( tk );

    qDebug( "!!!!!!!!!! TOKENIZED !!!!!!!!!!!!! %s",
m_driver->currentFileName().latin1() );
}


and send the output to me?

ciao robe






More information about the KDevelop-devel mailing list