Getting SIGSEGV on "finished" signal from QNetwowkAccessManager
-
What do you get if you run your application through a debugger ?
-
As I stated, when i launch the debugger, as soon as the "finished" signal fires I get the message
"The inferior stopped because it received a signal from the operating system
Signal name: SIGSEGV
Signal meaning: Segmentation Fault"This is from C:\Windows\SysWOW64\ntdll.dll, instruction "rtlmovmemory"
This only happens while debugging: the program runs fine in Release.
-
Can you check with a tool like Dependency Walker the libraries you are currently linking to ?
-
Sure:
LIBGCC_S_DW2-1.DLL
QT5CORED.DLL
QT5NETWORKD.DLL
QT5WIDGETSD.DLL
API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL
DCOMP.DLL
IESHIMS.DLL -
That part looks good
Then let's get step by step. Does it also fail if you comment out the network stuff ?
-
It debugs nicely without
mpNetManager->get(netRequest);
And it runs nicely (even with mpNetManager->get(netRequest)) when not debugging (even if the build was in debug mode).
To me, it's a bug in the debugger :-) , at least under Windows7-64. -
Using Qt's MinGW package ?
-
Sorry, I was out of town.
Yes, using Qt's MinGW package (I don't have and don't like Visual Studio :-) ).
-
So you have MinGW 4.9 ?
-
Yes, MinGW 4.9.1.
Do you think I should file a bug report?