[zeromq-dev] czmq_selftest fails after fresh clone

KIU Shueng Chuan nixchuan at gmail.com
Mon Dec 9 00:11:37 CET 2013


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131209/153b84ea/attachment.htm>


More information about the zeromq-dev mailing list