[zeromq-dev] memory leak in PUB/SUB sockets

Daniel Sentenac sentenac at ego-gw.it
Mon Oct 4 10:06:31 CEST 2010


Hi Gonzalo,

In answer to the Java bindings issue. I encountered the same problem as 
already mentioned in a precedent thread.
I compiled the bindings without problems following README instructions.
If I try the example in /perf:
java -Djava.library.path=/virgoDev/zmq/v2r0p9/lib -classpath 
/virgoDev/zmq/v2r0p9/lib/zmq.jar: local_lat "tcp://localhost:5555" 1 100
where the paths are correctly put, I get the answer:
jzmq library loaded ! // this is a message that proves that lib is loaded.
Exception in thread "main" java.lang.UnsatisfiedLinkError: construct
        at org.zeromq.ZMQ$Context.construct(Native Method)
        at org.zeromq.ZMQ$Context.<init>(ZMQ.java:117)
        at org.zeromq.ZMQ.context(ZMQ.java:73)
        at local_lat.main(local_lat.java:36)

I checked that the symbol is there :
 nm libjzmq.so | grep construct
00001b20 T 
_Z41Java_org_zeromq_ZMQ_00024Socket_constructP7JNIEnv_P8_jobjectS2_i
00001260 T 
_Z42Java_org_zeromq_ZMQ_00024Context_constructP7JNIEnv_P8_jobjecti

I must say I never encountered such a situation !
Maybe a version conflict somewhere....
cheers,

Daniel





More information about the zeromq-dev mailing list