Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Debugger becomes signal SIGSTOP when started in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Debugger becomes signal SIGSTOP when started in Qt Creator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
18 Posts 7 Posters 9.0k Views 3 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.
  • N Offline
    N Offline
    Nozyk_57
    wrote on 2 Jun 2016, 15:49 last edited by Nozyk_57 6 Feb 2016, 21:30
    #1

    When I execute my program all works fine. Problem is when I will debugging. Program cannot start, there is popped new window with message

    "The inferior stopped becouse it received a signal from the Operating System
    Signal name: SIGSTOP
    Signal meaning: Stopped (signal)"

    I use Qt Creator 3.2.1 with Qt 4.8.6 on raspbian.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 Jun 2016, 21:23 last edited by
      #2

      Hi and welcome to devnet,

      You should add which version of Qt, Qt Creator and OS your are using.

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

      N 1 Reply Last reply 2 Jun 2016, 21:30
      0
      • S SGaist
        2 Jun 2016, 21:23

        Hi and welcome to devnet,

        You should add which version of Qt, Qt Creator and OS your are using.

        N Offline
        N Offline
        Nozyk_57
        wrote on 2 Jun 2016, 21:30 last edited by
        #3

        @SGaist added.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 3 Jun 2016, 11:23 last edited by
          #4

          Are you cross-compiling ? Working directly on the Pi ?

          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
          • N Offline
            N Offline
            Nozyk_57
            wrote on 5 Jun 2016, 09:13 last edited by
            #5

            I'm Working directly on the Pi. I have instaled on Pi dbg, c++, cpp and qt4-default, qtcreator, qt4-dev-tools.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 5 Jun 2016, 21:47 last edited by
              #6

              Which version of the Pi ?

              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
              • N Offline
                N Offline
                Nozyk_57
                wrote on 6 Jun 2016, 08:06 last edited by
                #7

                RASPBERRY PI 3 MODEL B, i have made sudo apt-get update and upgrade before and after installation Qt.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 6 Jun 2016, 21:23 last edited by
                  #8

                  Can you try to run your debug built application through gdb directly ?

                  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
                  • N Offline
                    N Offline
                    Nozyk_57
                    wrote on 8 Jun 2016, 16:21 last edited by
                    #9

                    Yes I can.
                    When I try to run debugger on gui app, it works.
                    I think it's because I run Qt Creator with command "sudo qtcreator", because my console app needs sudo to read/write GPIO.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 8 Jun 2016, 20:25 last edited by
                      #10

                      Then a better way is to add your current user to the group that has access to the GPIO device. That way there's no need to run Qt Creator as root.

                      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
                      1
                      • N Offline
                        N Offline
                        Nozyk_57
                        wrote on 8 Jun 2016, 20:45 last edited by
                        #11

                        I cannot, only root can control GPIO.

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 8 Jun 2016, 21:26 last edited by
                          #12

                          How are you implementing that control ?

                          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
                          • N Offline
                            N Offline
                            Nozyk_57
                            wrote on 8 Jun 2016, 21:50 last edited by
                            #13

                            I'm make it through wiringPi library.

                            L 1 Reply Last reply 5 May 2020, 12:56
                            0
                            • N Nozyk_57
                              8 Jun 2016, 21:50

                              I'm make it through wiringPi library.

                              L Offline
                              L Offline
                              liprandi
                              wrote on 5 May 2020, 12:56 last edited by
                              #14

                              @Nozyk_57 You have to UNCHECK the checkbox Project/Run Setting/Run in terminal

                              N Aleksey_KA 2 Replies Last reply 12 Dec 2020, 19:04
                              4
                              • L liprandi
                                5 May 2020, 12:56

                                @Nozyk_57 You have to UNCHECK the checkbox Project/Run Setting/Run in terminal

                                N Offline
                                N Offline
                                nicktrandafil
                                wrote on 12 Dec 2020, 19:04 last edited by
                                #15

                                @liprandi Thank you, this worked for me. Although I had different context: I was trying to debug with qtcreator in docker container.

                                1 Reply Last reply
                                0
                                • C Offline
                                  C Offline
                                  CKShih
                                  wrote on 5 Feb 2021, 04:16 last edited by
                                  #16

                                  Great!! This is always work for me!! Thanks!

                                  1 Reply Last reply
                                  0
                                  • L liprandi
                                    5 May 2020, 12:56

                                    @Nozyk_57 You have to UNCHECK the checkbox Project/Run Setting/Run in terminal

                                    Aleksey_KA Offline
                                    Aleksey_KA Offline
                                    Aleksey_K
                                    wrote on 27 Feb 2021, 03:33 last edited by
                                    #17

                                    @liprandi said in Debugger becomes signal SIGSTOP when started in Qt Creator:

                                    @Nozyk_57 You have to UNCHECK the checkbox Project/Run Setting/Run in terminal

                                    I need to run in terminal and debugger worked for me like this, now stopped for some reason. SOlved like mentioned here:
                                    https://forum.qt.io/topic/100958/catching-unix-interrupt-signal-on-console-application-when-debugging-with-qtcreator

                                    JonBJ 1 Reply Last reply 27 Feb 2021, 09:05
                                    1
                                    • Aleksey_KA Aleksey_K
                                      27 Feb 2021, 03:33

                                      @liprandi said in Debugger becomes signal SIGSTOP when started in Qt Creator:

                                      @Nozyk_57 You have to UNCHECK the checkbox Project/Run Setting/Run in terminal

                                      I need to run in terminal and debugger worked for me like this, now stopped for some reason. SOlved like mentioned here:
                                      https://forum.qt.io/topic/100958/catching-unix-interrupt-signal-on-console-application-when-debugging-with-qtcreator

                                      JonBJ Offline
                                      JonBJ Offline
                                      JonB
                                      wrote on 27 Feb 2021, 09:05 last edited by
                                      #18

                                      @Aleksey_K
                                      ...which is indeed where I suggested telling the debugger to ignore certain signals...

                                      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