[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Release: critical bug in kplato, advice needed
From:       Dag Andersen <danders () get2net ! dk>
Date:       2009-05-22 9:28:07
Message-ID: 200905221128.07864.danders () get2net ! dk
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,
I got a report a few days ago that rc1 release of kplato acted strange, it 
does not schedule projects correctly. The reporter used kubuntu/jaunty so I've 
installed that to check it out.

I suspect that this will be a problem also for the just tagged release also so 
how do we handle that?

I've tracked it down to the following code in kptschedule.cpp line 840:
    Q_ASSERT ( add( a ) == true );
    Q_ASSERT ( node->add( a ) == true );

AFAICS the add() method is never called.

Changing the code to:
    bool result = add( a );
    Q_ASSERT ( result == true );
    result = node->add( a );
    Q_ASSERT ( result == true );

seems to work

I don't know what causes this, maybe compile options/optimaization?
Any advice?
-- 
Mvh.
Dag Andersen

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; \
font-weight:400; font-style:normal;">Hi,<br> I got a report a few days ago that rc1 \
release of kplato acted strange, it does not schedule projects correctly. The \
reporter used kubuntu/jaunty so I've installed that to check it out.<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I \
suspect that this will be a problem also for the just tagged release also so how do \
we handle that?<br> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>I've tracked it down to the following \
code in kptschedule.cpp line 840:<br>  Q_ASSERT ( add( a ) == true );<br>
    Q_ASSERT ( node-&gt;add( a ) == true );<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>AFAICS the add() method is never called.<br> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>Changing the code to:<br>  bool result = add( a );<br>
    Q_ASSERT ( result == true );<br>
    result = node-&gt;add( a );<br>
    Q_ASSERT ( result == true );<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>seems to work<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I don't know what \
causes this, maybe compile options/optimaization?<br> Any advice?<br>
-- <br>
Mvh.<br>
Dag Andersen</p></body></html>



_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic