Solved SIGSEGV Segmentation Fault after connectToHostEncrypted
-
No ,i see only [0_1502664502899_QtSslReceiver.pro](Uploading 100%), i not see real images.
-
To localize the problem it could be a good idea to use the qt-libraries with symbols (debug version of qt-build)
-
Hi Karl, thanks for Reply, where i find the debug version of qt-build?
-
All needed QT files installed on my OS. I know, Debug not work only on my application! Is it SIGNAL from kernel OS, which raise exception SIGSEGV, or is it application compile/dynamic linker error. Is problem in QMAKE, GCC, GDB or CMAKE?
-
Any ideas?
-
@KapitanF
since none of the images or code is shown, it hard to guess at anything. :) -
Ok i understand. I have not permissions to Drag and Drop! Ho i enable it?
-
main.cpp : https://pastebin.com/cPjTKygq
qtsslreceiver.cpp : https://pastebin.com/dEtj6E7n
qtsslreceiver.h : https://pastebin.com/TzcktAay
qtsslreceiver.pro : https://pastebin.com/KujH0e8k
qtsslreceiver.ui : https://pastebin.com/kLxVkFxEI dont know, how enable Drag and Drop for this forum.
-
Hi
One thing that i noted.
you define
QSslSocket *msocket;
but do not set to nullptr
and then use it latervoid QtSslReceiver::OnConnect(const QString &hostname,unsigned short port) { if (!msocket) <<<< Might not be null, might be random value here { msocket = new QSslSocket(this); xx } msocket->ignoreSslErrors(); <<< Might crash here
To check if that
just try
msocket=nullptr; ( or set it to null in .h)
OnConnect("kapitanf.ddns.net", 5000);Thats stops it crashing here when i run it.
-
Hi mrjj, thank you for Solution. Now application work right. THANK you very much.
-
Oh super . it was only that. the revenge of the uninitialized variable. ;)