Results 1 to 2 of 2

Thread: Memcheck showing issues for external errors and Leaks.

  1. #1
    Join Date
    Apr 2017
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Memcheck showing issues for external errors and Leaks.

    On running memcheck for the following code:

    Qt Code:
    1. #include <QApplication>
    2. #include <QPushButton>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication app(argc, argv);
    7. QWidget window;
    8.  
    9. window.resize(600, 600);
    10. QPushButton button(&window);
    11. window.show();
    12.  
    13. return app.exec();
    14. }
    To copy to clipboard, switch view to plain text mode 

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

    Qt Code:
    1. Syscall param writev(vector[...]) points to uninitialised byte(s)
    2. 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
    3. 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
    4.  
    5. Location is main.cpp: 7
    6. and so on..
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Memcheck showing issues for external errors and Leaks.

    And so is there a question here (and so on)?
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 11
    Last Post: 24th February 2016, 15:47
  2. Replies: 5
    Last Post: 4th March 2015, 23:02
  3. Replies: 0
    Last Post: 23rd November 2014, 20:05
  4. Replies: 2
    Last Post: 17th April 2014, 09:25
  5. Replies: 5
    Last Post: 9th June 2011, 12:22

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.