[zeromq-dev] czmq_selftest fails after fresh clone
Pieter Hintjens
ph at imatix.com
Mon Dec 9 10:49:50 CET 2013
Great analysis. I think the 64-byte alignment assertion is itself
bogus; this was a requirement for the SHA algorithm at some stage. We
may just delete it. However I don't have a 32 bit machine to test that
on.
On Mon, Dec 9, 2013 at 12:11 AM, KIU Shueng Chuan <nixchuan at gmail.com> wrote:
> The assertion is raised in the selftest of zfile.
> The problem is in zchunk, used by zfile_digest() which uses
> zdigest_update().
>
> On a 32-bit platform, sizeof(zchunk_t) is 12-bytes. Based on the memory
> allocation method in zchunk_new(), the data buffer would then only be 32-bit
> aligned.
>
> I suppose the appropriate fix depends on whether zchunk should be making any
> guarantees about the alignment of its internal buffer.
>
>
>
> On Mon, Dec 9, 2013 at 4:10 AM, Pieter Hintjens <ph at imatix.com> wrote:
>>
>> On Sun, Dec 8, 2013 at 5:59 PM, Ingo Koinzer <ingo at koinzer.net> wrote:
>>
>> > I cloned the czmq repository like described for the FileMQ
>> > implementation (https://github.com/zeromq/filemq/blob/master/README.md).
>> > By doing "./configure && make check" I hit the error "lt-czmq_selftest:
>> > zdigest.c:92: zdigest_update: Assertion `((long) buffer & 7L) == 0'
>> > failed." when running the selftests. Following the command line output.
>> > I'm new to ZeroMQ so please tell me if I did something wrong.
>>
>> Interesting. What OS/architecture are you on? Try removing that
>> assertion, just comment the line out, and see what happens when you
>> run "make check"?
>>
>> -Pieter
>> _______________________________________________
>> 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
>
More information about the zeromq-dev
mailing list