Skip to content

Zeroconf example crashing #37

@mantaraya36

Description

@mantaraya36

Something to do with the MsgQueue provided by MainLoop, but can't see where the problem is...

[ 98%] Running: allocore_examples_io_zeroconf
GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /home/andres/Documents/src/Allostuff/AlloSystem-github/build/bin/allocore_examples_io_zeroconf...done.
Starting program: /home/andres/Documents/src/Allostuff/AlloSystem-github/build/bin/allocore_examples_io_zeroconf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Zeroconf: Adding service 'allocore:andres-ThinkPad-W530'
Zeroconf: new service 'allocore:andres-ThinkPad-W530' of type '_osc._udp' in domain 'local.'
Zeroconf: new service 'allocore:andres-ThinkPad-W530' of type '_osc._udp' in domain 'local.'
Zeroconf: resolved service 'allocore:andres-ThinkPad-W530' on host 'andres-ThinkPad-W530.local' on port 4110 at address 'fe80::6e88:14ff:fe5f:c5b8'
Zeroconf: resolved service 'allocore:andres-ThinkPad-W530' on host 'andres-ThinkPad-W530.local' on port 4110 at address '192.168.0.105'
allocore_examples_io_zeroconf: /home/andres/Documents/src/Allostuff/AlloSystem-github/allocore/src/types/al_MsgQueue.cpp:57: void al::MsgQueue::sched(al_sec, al::MsgQueue::msg_func, char*, size_t): Assertion `mPool' failed.

Program received signal SIGABRT, Aborted.
0x00002aaaac582037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00002aaaac582037 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00002aaaac585698 in __GI_abort () at abort.c:90
#2 0x00002aaaac57ae03 in __assert_fail_base (fmt=0x2aaaac6d2158 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x437e86 "mPool",

file=file@entry=0x437e20 "/home/andres/Documents/src/Allostuff/AlloSystem-github/allocore/src/types/al_MsgQueue.cpp", line=line@entry=57, 
function=function@entry=0x437ea0 <al::MsgQueue::sched(double, void (*)(double, char*), char*, unsigned long)::__PRETTY_FUNCTION__> "void al::MsgQueue::sched(al_sec, al::MsgQueue::msg_func, char*, size_t)") at assert.c:92

#3 0x00002aaaac57aeb2 in __GI___assert_fail (assertion=0x437e86 "mPool",

file=0x437e20 "/home/andres/Documents/src/Allostuff/AlloSystem-github/allocore/src/types/al_MsgQueue.cpp", line=57, 
function=0x437ea0 <al::MsgQueue::sched(double, void (*)(double, char*), char*, unsigned long)::__PRETTY_FUNCTION__> "void al::MsgQueue::sched(al_sec, al::MsgQueue::msg_func, char*, size_t)") at assert.c:101

#4 0x0000000000431041 in al::MsgQueue::sched (this=0x646778, at=1, func=0x42cb60 <al::MsgQueue::send(double, void ()(double))::Data::call(double, char)>,

data=0x7fffffffde90 "x\307B", size=8) at /home/andres/Documents/src/Allostuff/AlloSystem-github/allocore/src/types/al_MsgQueue.cpp:57

#5 0x000000000042cbd3 in al::MsgQueue::send (this=0x646778, at=1, f=0x42c778 <al_avahi_poll(double)>)

at /home/andres/Documents/src/Allostuff/AlloSystem-github/build/include/allocore/types/al_MsgQueue.hpp:85

#6 0x000000000042c7c5 in al_avahi_poll (interval=0.01) at /home/andres/Documents/src/Allostuff/AlloSystem-github/allocore/src/protocol/al_Zeroconf.cpp:28
#7 0x000000000042c9ed in al::zero::Client::poll (interval=0.01) at /home/andres/Documents/src/Allostuff/AlloSystem-github/allocore/src/protocol/al_Zeroconf.cpp:359
#8 0x0000000000421a4c in main () at /home/andres/Documents/src/Allostuff/AlloSystem-github/allocore/examples/io/zeroconf.cpp:60

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions