[Qt-interest] Using QSslSocket with QTcpServer results in segfault

Thiago Macieira thiago at kde.org
Sun Dec 6 09:04:11 CET 2009


Em Domingo 6. Dezembro 2009, às 08.50.54, Nikos Chantziaras escreveu:
> The rest of the "Fortune Server" app stays the same.  However, when 
> connecting to the server, the application crashes instantly with:
> 
>    QObject::connect: Cannot connect (null)::disconnected() to
>    (null)::deleteLater()
>    Segmentation fault
> 
> What am I doing wrong?

Nothing in your paste says either "disconnected" or "deleteLater". So it's not 
in the parts you pasted, but somewhere else.

There, you're connecting a null pointer's signal to its slot. What happened 
next is anyone's guess (since you didn't paste it): mine is that you called 
something on that null pointer, which resulted in the crash.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091206/1ebd2e94/attachment.bin 


More information about the Qt-interest-old mailing list