Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. The inferior stopped because it received a signal from the operating system. Signal name : SIGSEGV Signal meaning : Segmentation fault ; Any help please
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
signalslots
7 Posts 3 Posters 6.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RahulY
    wrote on last edited by
    #1

    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

    R 1 Reply Last reply
    0
    • R RahulY

      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

      R Offline
      R Offline
      Rahu
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

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

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rahu
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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 :)

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Rahu
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

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

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved