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. How to get the line number where windows QT application CRASHED.

How to get the line number where windows QT application CRASHED.

Scheduled Pinned Locked Moved Unsolved General and Desktop
crashwindowsqtcreator
4 Posts 4 Posters 4.1k 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.
  • T Offline
    T Offline
    Tusharh
    wrote on last edited by
    #1

    Hi,

    If you are using Visual Studio .pdb files are generated which can be later mapped with crash .dmp file & method name & line number can be found.

    But, in this case I'm using a open source application called "owncloud" which is in QT, built using cmakelist on OPENSUSE & windows build is made for it. On crashing I get the core dump file, on analyzing I get only addresses which I can't figure out, as to where the application is crashing.

    Is there any way I can look for these addresses in Qt creator & find the line number where the crash occurs?

    Also, is there any crashlytics for c++ like FABRIC available for android & ios?

    Thanks

    K A kshegunovK 3 Replies Last reply
    0
    • T Tusharh

      Hi,

      If you are using Visual Studio .pdb files are generated which can be later mapped with crash .dmp file & method name & line number can be found.

      But, in this case I'm using a open source application called "owncloud" which is in QT, built using cmakelist on OPENSUSE & windows build is made for it. On crashing I get the core dump file, on analyzing I get only addresses which I can't figure out, as to where the application is crashing.

      Is there any way I can look for these addresses in Qt creator & find the line number where the crash occurs?

      Also, is there any crashlytics for c++ like FABRIC available for android & ios?

      Thanks

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Tusharh

      As you indicate already yourself, this is compiler dependent.
      Qt creator is simply an IDE and not a compiler. You may use within Qt creator also VS studio compilers and with them you might be already on track for debugging, since you are already aware of details there.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      2
      • T Tusharh

        Hi,

        If you are using Visual Studio .pdb files are generated which can be later mapped with crash .dmp file & method name & line number can be found.

        But, in this case I'm using a open source application called "owncloud" which is in QT, built using cmakelist on OPENSUSE & windows build is made for it. On crashing I get the core dump file, on analyzing I get only addresses which I can't figure out, as to where the application is crashing.

        Is there any way I can look for these addresses in Qt creator & find the line number where the crash occurs?

        Also, is there any crashlytics for c++ like FABRIC available for android & ios?

        Thanks

        A Offline
        A Offline
        ambershark
        wrote on last edited by
        #3

        @Tusharh This may help if you're using gnu tools:
        http://stackoverflow.com/questions/8545931/using-gdb-to-convert-addresses-to-lines

        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

        1 Reply Last reply
        0
        • T Tusharh

          Hi,

          If you are using Visual Studio .pdb files are generated which can be later mapped with crash .dmp file & method name & line number can be found.

          But, in this case I'm using a open source application called "owncloud" which is in QT, built using cmakelist on OPENSUSE & windows build is made for it. On crashing I get the core dump file, on analyzing I get only addresses which I can't figure out, as to where the application is crashing.

          Is there any way I can look for these addresses in Qt creator & find the line number where the crash occurs?

          Also, is there any crashlytics for c++ like FABRIC available for android & ios?

          Thanks

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          If you have the .pdb you can add it to Creator. I don't have windows on hand, but it was somewhere in the Tools > Options ... > Debugger > CDB configuration.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          2

          • Login

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