The inferior stopped because it received a signal from the operating system. Signal name : SIGSEGV Signal meaning : Segmentation fault ; Any help please



  • Hi Im implmenting a TcpServer with steps as follows,

    ReadyRead() receive message and emitted back to Message handler (which is custom class) and message handler do the handle job and emitted back to tcpserver and Tcp Server need to eco back to the receiver.
    I am suing the siganl and slot as shown below:-
    connect(this, &TcpServer::emitedsignal, &messageHandler, &MessageHandeler::receiverSLOT)
    connect(&messageHandler, &MessageHandeler::emitedsignal, this, &TcpServer::receiverSLOT)

    But it has thrown an error and the stack says "this" not accessable. and any help please

    The inferior stopped because it received a signal from the operating system.

    Signal name :
    SIGSEGV
    Signal meaning :
    Segmentation fault

    Cheers



  • This post is deleted!

  • Lifetime Qt Champion

    Hi,

    You should run your program through the debugger, it will show you exactly where the fault occurs.



  • Hi, Thank you for the replay and yes, I have found the fault and it was on the message creator and now it is fixed and working.

    Cheers.


  • Lifetime Qt Champion

    You're welcome !

    What was the exact error ?

    Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)



  • Hi,
    I try to make this thread as SOLVED but I couldn't do it.
    Can you please let me know hoe to make it to solved.

    Cheers


  • Lifetime Qt Champion

    If you can't, just edit the thread title and prepend [solved]


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.