[zeromq-dev] send() cause core dump or system pending

Trevor Bernard trevor.bernard at gmail.com
Fri Apr 12 16:58:49 CEST 2013


Does the shared library libjzmq.so match the version of jzmq.jar?


On Fri, Apr 12, 2013 at 10:46 AM, dennis <dennis.disk at gmail.com> wrote:

>
>
> I deploy my program on two machine.
> first machine run zeromq 2.2(open jdk 1.7)
> second machine run zeromq 3.2 (open jdk 1.7)
>
> the program is working fine on first machine. (sometimes will cause core
> dump)
> but on second machine , I can't send message to receiver.
>  (It always pending at send()  or cause  core dump)
>
>
>
> ----my source message sender-----
> public class FileTailerListener extends TailerListenerAdapter {
>      private String queue_jobdispatch_url = "tcp://127.0.0.1:5556";
>      private String queue_filewriter_url = "tcp://127.0.0.1:5555";
>      public InfosecTailerListener() {
>                queue_jobdispatch_context = ZMQ.context(1);
>                queue_jobdispatch_socket = queue_jobdispatch_context.
> socket(ZMQ.PUSH);
>                queue_jobdispatch_socket.bind(queue_jobdispatch_url);
>                queue_filewriter_context = ZMQ.context(1);
>                queue_filewriter_socket = queue_filewriter_context.
> socket(ZMQ.PUSH);
>                queue_filewriter_socket.connect(queue_filewriter_url);
>      }
>      public void handle(String jsonString) {
>           //here is pending or core dump
>           queue_jobdispatch_socket.send(jsonString, 0);
>           queue_jobdispatch_socket.send(jsonString, 0);
>      }
> }
>
> ----my source message receiver-----
> queue_writer_context = ZMQ.context(1);
>
> queue_writer_socket = queue_writer_context.socket(ZMQ.PULL);
> this.queue_writer_url="tcp://127.0.0.1:5555";
>
> while (!this.isInterrupted()) {
>      while ((line = this.queue_writer_socket.recv(ZMQ.NOBLOCK)) != null) {
>            json = new String(line);
>        }
>
> }
>
> -----------core dump------------
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x00007f4383891a4f, pid=1717,
> tid=139927221827328
> #
> # JRE version: 7.0_15-b20
> # Java VM: OpenJDK 64-Bit Server VM (23.7-b01 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # C  [libc.so.6+0x149a4f]  __nss_hosts_lookup+0x1810f
> #
> # Core dump written. Default location: /home/infosec/filemonitor/
> core or core.1717
> #
> # An error report file with more information is saved as:
> # /home/infosec/filemonitor/hs_err_pid1717.log
> #
> # If you would like to submit a bug report, please include
> # instructions on how to reproduce the bug and visit:
> #   https://bugs.launchpad.net/ubuntu/+source/openjdk-7/
> # The crash happened outside the Java Virtual Machine in native code.
> # See problematic frame for where to report the bug.
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130412/fedb0db2/attachment.htm>


More information about the zeromq-dev mailing list