⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)

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= --log-socket= --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 ''.
    ==30411== Logging messages will be sent to stderr instead.
    ==30411== Failed to connect to XML logging server ''.
    ==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

Log in to reply