[Qt-interest] Analyze memory errors

Constantin Makshin cmakshin at gmail.com
Fri Jul 8 10:40:32 CEST 2011


QListData::insert() doesn't use memcpy(), so my guess is that this warning can be ignored:
http://qt.gitorious.org/qt/qt/blobs/4.7/src/corelib/tools/qlist.cpp#line328
http://qt.gitorious.org/qt/qt/blobs/4.7/src/corelib/tools/qlist.cpp#line330

On Friday, July 08, 2011 12:08:06 PM Linos wrote:
> Hello,
> 	i am testing my small Qt app in Qt Creator with the Debug, Start analyzer and i 
> am getting any errors like this:
> 
> Source and destination overlap in memcpy(0xd20fb58, 0xd20fb60, 16)
>    in memcpy in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
>    1: memcpy in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
>    2: QListData::insert(int) in /usr/lib/libQtCore.so.4.7.3
>    3: QWidget::insertAction(QAction*, QAction*) in /usr/lib/libQtGui.so.4.7.3
>    4: QMenu::insertSeparator(QAction*) in /usr/lib/libQtGui.so.4.7.3
>    5: MainWindow::crearAcciones() in <a 
> href="file:///tmp/pda_almacen/mainwindow.cpp:206" 
>  >/tmp/pda_almacen/mainwindow.cpp:206</a>
>    6: MainWindow::MainWindow(QWidget*) in <a 
> href="file:///tmp/pda_almacen/mainwindow.cpp:30" 
>  >/tmp/pda_almacen/mainwindow.cpp:30</a>
>    7: main in <a href="file:///tmp/pda_almacen/main.cpp:36" 
>  >/tmp/pda_almacen/main.cpp:36</a>
> 
> I think that happens when i use QList::insert method.
> 
> This is noise and can be ignored or this is reporting a problem in QList?
> 
> Regards,
> Miguel Angel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110708/96e28d87/attachment.bin 


More information about the Qt-interest-old mailing list