Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on zconfservice instantiation #5

Open
sinosoidal opened this issue May 18, 2016 · 0 comments
Open

Segmentation fault on zconfservice instantiation #5

sinosoidal opened this issue May 18, 2016 · 0 comments

Comments

@sinosoidal
Copy link

Hi,

I'm trying to use qzeroconf on Raspberry Pi but it is not working. Segmentation by simply instantiating ZConfService. Can you help me?

include <stdio.h>

include <zconfservice.h>

include

int main(int argc, char** argv)
{
QCoreApplication app(argc, argv);
ZConfService service(&app);
//service.registerService("RASP", 19002, "_drc._tcp");

return app.exec();

}

(gdb) r
Starting program: /home/pi/qtzeroconf/qtzeroconf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x76a6743c in QObject::connect(QObject const_, char const_, QObject const_, char const_, Qt::ConnectionType) ()
from /usr/local/qt5/lib/libQt5Core.so.5
(gdb) bt
#0 0x76a6743c in QObject::connect(QObject const_, char const_, QObject const_, char const_, Qt::ConnectionType) ()

from /usr/local/qt5/lib/libQt5Core.so.5
#1 0x76ffab58 in ?? ()

Cannot access memory at address 0x8149bf87
#2 0x76ffab58 in ?? ()

Cannot access memory at address 0x8149bf87
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant