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. system() call timing issue - again

system() call timing issue - again

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 317 Views 1 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    According to vague documentation - not Qt - system command processor (??) will eventually complete the system(...) call.
    In my usage the system call builds two text files and writes to console.
    I have no control how long it will take, which does not bother my application , but it bothers GDB .
    Makes debugging a challenge to both GDB and Qt and my OS !

    It looks as GDB will totally break - quits - after about 20 seconds...
    Can I , strictly for debugging purpose , modify / change / permanently increase this GDB "timeout " ?

    Yes, I can add timing delay to system call , but it is a debugging issue I am trying to solve.

    The option of "giving GDB more time " is NOT a solution , it will eventually quit

    e93af4f0-a281-46c7-bdc6-b26fdd12bc37-image.png

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Best guess: Execute show watchdog (probably shows about 20 (seconds)) inside gdb
      You can add a correcting set watchdog command to your .gdbinit file

      Assuming this is actually a Qt program that you are using the system() call in you could redesign it to use QProcess. QProcess is non-blocking if used correctly.

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        This is even worse...
        I get this "response " after "button click" and when first function is called.
        The is NO system call, just plain "do a function ".

        The break point is set on first line of the function, no "action" is being performed.

        This cannot be correct...

        GDB is not working correctly and I have no idea how to fix it.

        PS I do not want to **fool around with QProcess - been there , done that ** and it is NOT what I need to run my application.
        I like KISS approach.

        c42536f2-5ce9-41cc-a8fc-9d1cf24c2915-image.png

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          Given that GDB did not stop at your "break point is set on first line of the function," it is fair to assume that this code was not called called before your program crashed/or GDB crashed. Walk your breakpoint back until you find where it dies.

          PS I do not want to **fool around with QProcess - been there , done that ** and it is NOT what I need to run my application.

          Your choice.

          1 Reply Last reply
          1

          • Login

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