PDA

View Full Version : strange behavior of qt 5.4



gisac
22nd December 2015, 20:09
Hi all, I'm writing a program that reads data from web pages and stores them in a sqlite db.
11584Suddenly, now, if I try to go to the program in debug mode, I get a segmentation fault notification.

11586

11585
If I run normally, it works!

Can someone explain this behavior?
Thank you!!

anda_skoa
23rd December 2015, 09:06
You should probably debug the crash :-)

Cheers,
_

d_stranz
23rd December 2015, 15:45
Can someone explain this behavior?

Yes. Your program has a bug in it.

gisac
26th December 2015, 19:04
Maybe program has a bug, but on another PC, in the same conditions, it works in debug mode and in release mode!
What in the system can affect it?

d_stranz
26th December 2015, 21:32
What in the system can affect it?

Do you know how to use the debugger? Run your code in debug mode, wait for it to crash, then examine the call stack to see where it crashed, then look at the code and figure out why it crashed.

Or would you prefer for us to make random guesses based on a few screenshots? It's a segmentation fault, which is most commonly caused by a bad pointer - uninitialized, pointing to a bad location, already deleted, NULL, or any one of a bunch of reasons. You have a bug in your code which apparently only occurs under certain circumstances, and the remedy is to do what all of the rest of us do - debug the program.