SIGSEGV in debugging mode only
-
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 usedI 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?". -
Hi,
You might be hitting an assert somewhere, are you sure you are calling that function properly ?
-
[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.
-
I meant an assert in the library you are using
-
[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.