Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Valgrind faild to run in Qt to analyze any qt application



  • Hi,

    Recently I attempt to analyze qt application inside qt creator but it faild to run valgrind and the below mwssage appear :

    :-1: error: Memcheck: Error occurred parsing Valgrind output: The remote host closed the connection
    

    When I try to run valgrind in command prompt with the following command:

    valgrind --child-silent-after-fork=yes --xml-socket=127.0.0.1:45497 --log-socket=127.0.0.1:40789 --xml=yes --smc-check=stack --tool=memcheck --gen-suppressions=all --track-origins=yes --leak-check=summary --num-callers=25 /home/alien/test-debug/test
    

    I faced to below error in console :

    ==30411== Failed to connect to logging server '127.0.0.1:40789'.
    ==30411== Logging messages will be sent to stderr instead.
    ==30411== Failed to connect to XML logging server '127.0.0.1:45497'.
    ==30411== XML output will be sent to stderr instead.
    
    valgrind: m_libcprint.c:404 (prepare_sink_socket): Assertion 'sink->fd == 2' failed.
    Segmentation fault (core dumped)
    

    I have no clue what should I do so I really appreciate any help.

    Extra Information:

    Linux ubuntu 5.0.0-27-generic
    Ubuntu 19.04 x64
    Qt creator 4.9.1
    QT SDK 5.12.3
    valgrind-3.15.0

Log in to reply