[zeromq-dev] ZMQ vs SPI: FD shenanigans
Arnaud Kapp
kapp.arno at gmail.com
Tue Jan 20 22:02:39 CET 2015
Haha be careful Thomas or you will wake Pieter :)
Well I am mixing socket operations binds/connects with opening and
closing files (and reading and writing from/to files).
I also use ZMQ to poll on my files' descriptors. So at first sight it
doesn't look like a ZMQ bug.
I see two things to try:
* Try with a more stable version of libzmq -
https://github.com/zeromq/zeromq4-1
* Upgrading to a more recent kernel and to gcc 4.9 if those are available.
Good luck !
On Tue, Jan 20, 2015 at 6:45 PM, Thomas Rodgers <rodgert at twrodgers.com> wrote:
>> At least in the C++ version, the problem is relatively fragile
>
>
>> I always see the problem in my pure-C test
>
>
> There are those that maintain that C is a simpler and more robust language
> than C++ :-)~
>
> On Tue, Jan 20, 2015 at 11:32 AM, Olaf Mandel <o.mandel at menlosystems.com>
> wrote:
>>
>> Hello,
>>
>> Am 20.01.2015 18:07, schrieb Arnaud Kapp:
>> > I don't really see anything in the small example that could cause a bug.
>> > I am myself using libzmq (with zmqpp as a wrapper) on a Raspberry Pi +
>> > a Piface digital card (which is a SPI device), and I have no trouble.
>> >
>> At least in the C++ version, the problem is relatively fragile: it only
>> occurs if mixing ZMQ socket operations binds/connects with opening and
>> closing files. There are cases where I also don't see the problem.
>> Weirdly, I always see the problem in my pure-C test...
>>
>> > My kernel version is 3.12.28+ and I use a recent (a few commits behind
>> > HEAD) version of libzmq.
>> -Snipp-
>>
>> Good point, my machine and version numbers are:
>>
>> CPU: Freescale i.MX537 (Cortex-A8, NEON)
>> GCC: 4.8.1, cross-compiling
>> Linux: 3.10.28 + many platform patches
>> ZMQ: zeromq/libzmq.git @ be23e699c
>>
>> Any other info of interest?
>>
>> Best regards,
>> Olaf Mandel
>> --
>> Olaf Mandel
>> phone: +49-89-189166-250
>> fax: +49-89-189166-111
>> Menlo Systems GmbH
>> Am Klopferspitz 19a, D-82152 Martinsried
>> Amtsgericht München HRB 138145
>> Geschäftsführung: Dr Michael Mei, Dr Ronald Holzwarth
>> USt-IdNr. DE217772017, St.-Nr. 14316170324
>>
>>
>> _______________________________________________
>> 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
>
--
Kapp Arnaud - Xaqq
More information about the zeromq-dev
mailing list