2009/1/6 Gunnar Sletta <[email protected]>:
> Henk Jan Priester wrote:
>>
>> Using valgrind on application compiled with 4.5beta I get a lot of
>> valgrind errors.
>>
>> ==365== Conditional jump or move depends on uninitialised value(s)
>> ==365==    at 0x82E35C6: QRasterPaintEngine::updatePen(QPen const&)
>> (in /home/hj /mtjcgmu42/montage2/justedit/justedit)
>> ==365==    by 0x82E668C: QRasterPaintEngine::drawPolygon(QPoint
>> const*, int, QPa intEngine::PolygonDrawMode) (in
>> /home/hj/mtjcgmu42/montage2/justedit/justedit)
>> ==365==    by 0x8285681: QPainter::drawPolygon(QPoint const*, int,
>> Qt::FillRule)  (in /home/hj/mtjcgmu42/montage2/justedit/justedit)
>> ==365==    by 0x84AACFC:
>> QWindowsStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption
>> const*, QPainter*, QWidget const*) const (in /home/hj/mtjcgmu42/mon
>> tage2/justedit/justedit)
>> ==365==    by 0x848A217:
>> QCleanlooksStyle::drawPrimitive(QStyle::PrimitiveElemen t,
>> QStyleOption const*, QPainter*, QWidget const*) const (in
>> /home/hj/mtjcgmu42/ montage2/justedit/justedit)
>> ==365==    by 0x849D96A:
>> QCleanlooksStyle::drawComplexControl(QStyle::ComplexCon trol,
>> QStyleOptionComplex const*, QPainter*, QWidget const*) const (in
>> /home/hj/ mtjcgmu42/montage2/justedit/justedit)
>> ==365==    by 0x8786D5D: QScrollBar::paintEvent(QPaintEvent*) (in
>> /home/hj/mtjcg mu42/montage2/justedit/justedit)
>> ==365==    by 0x81F05A9: QWidget::event(QEvent*) (in
>> /home/hj/mtjcgmu42/montage2 /justedit/justedit)
>> ==365==    by 0x84C6B4D: QAbstractSlider::event(QEvent*) (in
>> /home/hj/mtjcgmu42/ montage2/justedit/justedit)
>> ==365==    by 0x8786CB5: QScrollBar::event(QEvent*) (in
>> /home/hj/mtjcgmu42/monta ge2/justedit/justedit)
>> ==365==    by 0x81AB119: QApplicationPrivate::notify_helper(QObject*,
>> QEvent*) ( in /home/hj/mtjcgmu42/montage2/justedit/justedit)
>> ==365==    by 0x81AC1F3: QApplication::notify(QObject*, QEvent*) (in
>> /home/hj/mt jcgmu42/montage2/justedit/justedit)
>> ==365==
>
>
> Hi,
>
> I ran a few examples from the current snapshots through valgrind and found
> one of these in the clipping code which I fixed yesterday, but not the one
> you report here. It could have been caused by a bug in the beta. Do you have
> a means of reproducing it?

I have compiled the qt-all-commercial-src-4.5.0-snapshot-20090106 and not been
able to reproduce this problem. It seems to be solved, they were quite a lot
of compiler warnings when I compiled beta1 but I have not look it one of these
was related to updatePen.

I found another one with popups, this can be reproduced
with the following test program:

#include <QtGui>
#include <QtDebug>

int main(int argc, char *argv[])
{
   QApplication app(argc, argv);
   QMessageBox::critical(NULL, "error", "error message");
   return app.exec();
}


running the program result in:

==1491== Conditional jump or move depends on uninitialised value(s)
==1491==    at 0x822E39F: QTextDocumentPrivate::insertBlock(QChar
const&, int, int, int, QTextUndoCommand::Operation) (in
/home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x822E6C8: QTextDocumentPrivate::insertBlock(int, int,
int, QTextUndoCommand::Operation) (in /home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x822E775: QTextDocumentPrivate::init() (in
/home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x821B2BE: QTextDocument::QTextDocument(QObject*) (in
/home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x85119BE:
QTextControlPrivate::setContent(Qt::TextFormat, QString const&,
QTextDocument*) (in /home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x85160EC: QTextControlPrivate::init(Qt::TextFormat,
QString const&, QTextDocument*) (in /home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x85164A4: QTextControl::QTextControl(QObject*) (in
/home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x8341D87: QLabelPrivate::ensureTextControl() const (in
/home/hj/devel/qtpopup/qtpopup)
--1491-- memcheck GC: 2048 nodes, 2048 survivors (100.0%)
--1491-- memcheck GC: increase table size to 4096
==1491==
==1491== Conditional jump or move depends on uninitialised value(s)
==1491==    at 0x822E39F: QTextDocumentPrivate::insertBlock(QChar
const&, int, int, int, QTextUndoCommand::Operation) (in
/home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x822E6C8: QTextDocumentPrivate::insertBlock(int, int,
int, QTextUndoCommand::Operation) (in /home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x822E775: QTextDocumentPrivate::init() (in
/home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x822EEBD: QTextDocumentPrivate::clear() (in
/home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x821C710: QTextDocument::clear() (in
/home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x851166B:
QTextControlPrivate::setContent(Qt::TextFormat, QString const&,
QTextDocument*) (in /home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x85160EC: QTextControlPrivate::init(Qt::TextFormat,
QString const&, QTextDocument*) (in /home/hj/devel/qtpopup/qtpopup)
==1491==    by 0x85164A4: QTextControl::QTextControl(QObject*) (in
/home/hj/devel/qtpopup/qtpopup)




>
> -
> Gunnar
>
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to