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
QtWS25 Last Chance

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
  • 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 28 Jul 2015, 15:39 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 28 Jul 2015, 18:08
    0
    • R RahulY
      28 Jul 2015, 15:39

      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 28 Jul 2015, 18:08 last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 28 Jul 2015, 21:44 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 29 Jul 2015, 04:43 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 29 Jul 2015, 20:15 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 4 Aug 2015, 15:07 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
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 5 Aug 2015, 06:53 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

                5/7

                29 Jul 2015, 20:15

                • Login

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