Assertion failed: rc == 0 (connect_session.cpp:84).
Aborted (core dumped)
I'm using zmq 2.1.10 with F15.
What I'm missing ?
Thanks for any help.
R.
#include <string.h>
#include <assert.h>
#include <zmq.h>
int
main(int argc, char** argv)
{
void *ctx;
void *s;
zmq_msg_t msg;
int rc;
ctx = zmq_init (1);
assert(ctx);
s = zmq_socket(ctx, ZMQ_PUB);
rc = zmq_connect(s, "epgm://239.192.1.1:5555");
assert (rc == 0);
rc = zmq_msg_init_size (&msg, 4);
assert (rc == 0);
memset(zmq_msg_data (&msg), 'A', 4);
rc = zmq_send(s, &msg, 0);
assert (rc == 0);
zmq_msg_close(&msg);
assert (rc == 0);
sleep(3);
return 0;
}
_______________________________________________
zeromq-dev mailing list
zerom...@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
Hello all,
I have a problem while trying to make a simple example with epgm.
I wrote the following simple C program, but it makes a core dump
with the following error:
Assertion failed: rc == 0 (connect_session.cpp:84).
Aborted (core dumped)
rc = zmq_connect(s, "epgm://eth0;239.192.1.1:5555");
rc = zmq_connect(s, "epgm://192.168.1.1;239.192.1.1:5555");
Segmentation fault (core dumped)
So my only choice is to use the ip address/network address method.
Rgds,
Roberto
Thankyou Steve for your explanation.
BTW using the interface name (em2 on my system)
still doesn't work and the program ends with a
slightly different error:
Segmentation fault (core dumped)
So my only choice is to use the ip address/network address method.
On 10 October 2011 19:43, Roberto Palmer <roberto...@gmail.com> wrote:Thankyou Steve for your explanation.
BTW using the interface name (em2 on my system)
still doesn't work and the program ends with a
slightly different error:
Segmentation fault (core dumped)
So my only choice is to use the ip address/network address method.
To bring the list back in on this conversation, it looks like there are problems with Consistent Device Naming in Fedora 15. GDB is proving useless though:Starting program: /home/local/libpgm/trunk/openpgm/pgm/ref/debug-Linux-x86_64/examples/purinrecv -i[Thread debugging using libthread_db enabled]プリン プリンInfo: IP ConfigurationInfo: lo: index=1 flags=65609<UP,LOOPBACK>Info: inet 127.0.0.1 netmask 255.0.0.0Info: p2p1: index=2 flags=69699<UP,BROADCAST,MULTICAST>Info: inet 10.0.2.15 netmask 255.255.255.0Info: lo: index=1 flags=65609<UP,LOOPBACK>Info: inet6 ::1 prefixlen 128 scopeid 0x0Info: p2p1: index=2 flags=69699<UP,BROADCAST,MULTICAST>Info: inet6 fe80::a00:27ff:fe91:26e2%p2p1 prefixlen 64 scopeid 0x2
[Inferior 1 (process 1556) exited normally](gdb) btNo stack.