Assertion fail for IPv4 Interface String
Description
Environment
x86_64 Debian
Linux 2.6.32.2011.01.27.13.37(
Activity

PieterP May 21, 2012 at 7:12 PM
Fixed in OpenPGM.

Steven McCoy May 20, 2012 at 2:22 AM
Committed fix, need to roll a release.

Reed December 23, 2011 at 9:41 PM
Yeah that was me. I logged issue 12.

Martin Sustrik December 23, 2011 at 9:35 PM
It seems this is an OpenPGM bug. Once the issue is solved (issue 12) we have to update the OpenPGM version packaged with 0MQ.

Reed December 21, 2011 at 9:03 PMEdited
Alright I think I found the issue.
The actual error was coming for the eventfd(0,0) call in the inlined function pgm_notify_init from notify.h. The sterror(errno) was "Too many open files". I did indeed find at some point the pgm_init code was opening > 1024 files.
Looking at the proc for the running process showed a whole lot of this:
The deal is in the openpgm framework in rand.c -the function pgm_rand_create looks like:
The issue of course is this bit right here:
The author is NOT checking that the value of fp is in error (ie fp != NULL). If errno has some garbage value from some other error, this do while will loop forever until it runs out of file descriptors per the process ulimit on the system (mine being 1024).
I was able to get by, by changing:
This is probably sub-optimal and not the best solution, but given it's a function which returns void I wasn't sure as to the best approach for signalling error back to the user.
Thanks
Having issue using IPv4 address as interface name:
My group looks like:
"epgm://10.145.17.1;239.192.1.1:7555"
Using zmq::socket_t my_zmq_socket;
my_zmq_socket.connect("epgm://10.145.17.1;239.192.1.1:7555")
When I run I get the following error:
Assertion failed: rc == 0 (connect_session.cpp:96)
This however works:
"eth1://10.145.17.1;239.192.1.1:7555"
My icfonfig:
eth0 Link encap:Ethernet HWaddr
inet addr:10.150.10.90 Bcast:10.150.255.255 Mask:255.255.0.0
inet6 addr: fe80::230:48ff:fe7d:cfac/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1473122 errors:0 dropped:0 overruns:0 frame:0
TX packets:1008461 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1244653467 (1.1 GiB) TX bytes:188923296 (180.1 MiB)
Memory:d8a20000-d8a40000
eth1 Link encap:Ethernet HWaddr
inet addr:10.145.17.1 Bcast:10.145.17.7 Mask:255.255.255.248
inet6 addr: fe80::230:48ff:fe7d:cfad/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:506008 errors:0 dropped:0 overruns:0 frame:0
TX packets:839568 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:43034651 (41.0 MiB) TX bytes:1134986294 (1.0 GiB)
Memory:d8a60000-d8a80000