[zeromq-dev] ARM cross compiled ZeroMQ zstr_rcv() gives segmentation fault
Ranganath Gunawardane
ranganath at outlook.com
Mon Sep 29 15:41:56 CEST 2014
Indeed. Again, thanks for the prompt response. I actually posted this question (with a minimal code sample) earlier today in SO but there weren't a lot of activity so headed over here. Couldn't figure out how to post the code here. This is the link for the SO question but it really is my mistake.
http://stackoverflow.com/questions/26092539/arm-cross-compiled-zeromq-zstr-rcv-gives-segmentation-fault
Regards.Ranganth
> From: ph at imatix.com
> Date: Mon, 29 Sep 2014 15:27:03 +0200
> To: zeromq-dev at lists.zeromq.org
> Subject: Re: [zeromq-dev] ARM cross compiled ZeroMQ zstr_rcv() gives segmentation fault
>
> That's why we ask for minimal examples, much of the time it pinpoints
> the brainfarts and the problems disappear. Good to know things are
> working :-)
>
> On Mon, Sep 29, 2014 at 1:50 PM, Ranganath Gunawardane
> <ranganath at outlook.com> wrote:
> > Sorry Pieter, It was a brain fart of mine, I was linking the wrong zmq
> > library . Once I corrected it, everything works well.
> >
> >> From: ph at imatix.com
> >> Date: Mon, 29 Sep 2014 10:04:50 +0200
> >> To: zeromq-dev at lists.zeromq.org
> >> Subject: Re: [zeromq-dev] ARM cross compiled ZeroMQ zstr_rcv() gives
> >> segmentation fault
> >
> >>
> >> Please provide a minimal complete example of a program that crashes
> >> like this, thank you.
> >>
> >> On Mon, Sep 29, 2014 at 7:35 AM, Ranganath Gunawardane
> >> <ranganath at outlook.com> wrote:
> >> > Hi,
> >> >
> >> > I cross-compiled zmq and czmq for ARM (arm-poky-linux) to build a
> >> > PUB-SUB
> >> > message router. In the program, I fork a attached thread using
> >> > zthread_fork() and talk through the pipe. When I do a zstr_rcv() from
> >> > main
> >> > after forking, i get a segmentation fault. This code works fine in my
> >> > Ubuntu
> >> > box with GCC. What am I doing wrong here? or is it a ARM compatibility
> >> > issue?
> >> >
> >> >
> >> > Regards.
> >> > Ranganath
> >> >
> >> > _______________________________________________
> >> > zeromq-dev mailing list
> >> > zeromq-dev at lists.zeromq.org
> >> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >> >
> >> _______________________________________________
> >> zeromq-dev mailing list
> >> zeromq-dev at lists.zeromq.org
> >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> _______________________________________________
> 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/20140929/52111bf3/attachment.htm>
More information about the zeromq-dev
mailing list