View Full Version : Memcheck showing issues for external errors and Leaks.

4th April 2017, 17:34
On running memcheck for the following code:

#include <QApplication>
#include <QPushButton>

int main(int argc, char *argv[])
QApplication app(argc, argv);
QWidget window;

window.resize(600, 600);
QPushButton button(&window);

return app.exec();

These errors are obtained on checking the external error flag for memcheck:

Syscall param writev(vector[...]) points to uninitialised byte(s)
Address 0xcc7be09 is 4,537 bytes inside a block of size 21,152 alloc'd 1: calloc in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
Uninitialised value was created by a stack allocation 1: non-virtual thunk to QXcbWindow::setVisible(bool) in /home/captaindavinci/Qt/5.8/gcc_64/lib/libQt5XcbQpa.so.5.8.0

Location is main.cpp: 7
and so on..

4th April 2017, 21:16
And so is there a question here (and so on)?