Bug 164204

Summary: net/p5-ZeroMQ request sending segfault
Product: Ports & Packages Reporter: rossiya <rossiya2>
Component: Individual Port(s)Assignee: Andrej Zverev <az>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description rossiya 2012-01-16 16:10:09 UTC
Perl scripts segfault with SIGNAL 11 when ZeroMQ::recv() is called.

Fix: 

Python equivalent works on same machine.
How-To-Repeat: Script from zeromq.org:

#!/usr/bin/perl
 
 use strict;
 use warnings;
 use 5.10.0;
 
 use ZeroMQ qw/:all/;
 
 my $context = ZeroMQ::Context->new();
 
 # Socket to talk to server
 say 'Connecting to hello world server...';
 my $requester = $context->socket(ZMQ_REQ);
 $requester->connect('tcp://172.16.0.109:5052');
 
 for my $request_nbr (0..9) {
   say "Sending request $request_nbr...";
   $requester->send('Hello');
 
   my $reply = $requester->recv();
   say "Received reply $request_nbr: [". $reply->data .']';
 }

Note I modified the address for my network
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2012-01-17 22:28:55 UTC
Responsible Changed
From-To: freebsd-ports-bugs->az

Fix synopsis and assign.
Comment 2 Andrej Zverev 2012-01-29 09:48:42 UTC
Hello, sorry for a long delay.

I tested your example and can't reproduce same crash. Maybe you have =
something specific with server code part? At least you can try to build =
module with debug info and provide .core file which can contain reason =
of such fail.

# perl a.pl
Connecting to hello world server...
Sending request 0...
Received reply 0: [World]
Sending request 1...
Received reply 1: [World]
Sending request 2...
Received reply 2: [World]
Sending request 3...
Received reply 3: [World]
Sending request 4...
Received reply 4: [World]
Sending request 5...
Received reply 5: [World]
Sending request 6...
Received reply 6: [World]
Sending request 7...
Received reply 7: [World]
Sending request 8...
Received reply 8: [World]
Sending request 9...
Received reply 9: [World]
Comment 3 Andrej Zverev freebsd_committer freebsd_triage 2012-04-06 20:03:54 UTC
State Changed
From-To: open->closed

Resolved with update to 0.21 (iHOPE)