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. SIGSEGV in debugging mode only

SIGSEGV in debugging mode only

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 1.4k 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.
  • D Offline
    D Offline
    Dimidroll93
    wrote on last edited by
    #1

    My environment is:

    bq.
    Windows 8 x64
    Qt Creator 3.3.0,Based on Qt 5.4.0 (MSVC 2010, 32 bit), Built on Dec 8 2014 at 15:24:21, From revision d36c4d87db
    MinGW 4.9.1
    GDB debugger used

    I wrote a simple program to import function from dll. When I starting in debuging mode, I have SIGSEGV i.e. Segmentation fault, when imported function is called. But when program is started in Run mode, all works normally.

    Thereby, I can't debug my program. Any one solved this issue?

    I read "related topics":http://qt-project.org/forums/viewthread/19682http://qt-project.org/forums/viewthread/19682 , "and ":http://qt-project.org/forums/viewthread/18974

    I have no any internet security services and antiviruses. I stronly sure external function works properly.
    The main question is "How to start program in debug mode with no segmentation fault?".

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

      Hi,

      You might be hitting an assert somewhere, are you sure you are calling that function properly ?

      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
      • D Offline
        D Offline
        Dimidroll93
        wrote on last edited by
        #3

        [quote author="SGaist" date="1418376996"]Hi,

        You might be hitting an assert somewhere, are you sure you are calling that function properly ?[/quote]

        Yes, I checked the pointer to function. I can't understand why program works fine without debugger, and It crashes in debugger mode.

        With no debugger mode, imported function returns data as expected.

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

          I meant an assert in the library you 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

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Dimidroll93
            wrote on last edited by
            #5

            [quote author="SGaist" date="1418382303"]I meant an assert in the library you are using[/quote]

            I have no sources for external library. I using this library from MSVS and have not any questions.
            I think it's matter in differences debug / no debug modes.

            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