[zeromq-dev] CZMQ build fails: Assertion `!zfile_is_stable (file)' failed. (cause NFS mount?)

Ron ron.arts at gmail.com
Fri May 16 02:20:37 CEST 2014


Well, file system semantics are slightly different on NFS, I've had this
causing issues in other packages too. There's even a page dedicated to it. (
http://www.time-travellers.org/shane/papers/NFS_considered_harmful.html)

I did not look into it too closely, I just made it change to /tmp. Not too
many people will be mounting nfs there ;-)

Just wanted to make people aware of it, and make the error googleable.

Thanks,
Ron



On Thu, May 15, 2014 at 5:30 PM, Pieter Hintjens <ph at imatix.com> wrote:

> Is there an issue creating test files locally? A lot of the test cases do
> this.
>
> On Thu, May 15, 2014 at 11:24 PM, Ron <ron.arts at gmail.com> wrote:
> > Hi list,
> >
> > I was building czmq 2.0.1 and encountered the following error:
> >
> > Running CZMQ selftests...
> >  * zrex: OK
> >  * zsys: OK
> >  * zchunk: OK
> >  * zconfig: OK
> >  * zmutex: OK
> >  * zclock: OK
> >  * zdir_patch: OK
> >  * zdir: OK
> >  * zdigest: OK
> > lt-czmq_selftest: zfile.c:518: zfile_test: Assertion `!zfile_is_stable
> > (file)' failed.
> >  * zfile: /bin/sh: line 5: 19451 Aborted                 ${dir}$tst
> > FAIL: czmq_selftest
> >
> > I fixed it quickly doing:
> >
> > --- zfile.c-org 2014-05-15 17:12:56.035590040 -0400
> > +++ zfile.c 2014-05-15 17:16:02.709583269 -0400
> > @@ -494,6 +494,9 @@
> >  zfile_test (bool verbose)
> >  {
> >      printf (" * zfile: ");
> > +    if (chdir("/tmp")) {
> > +      perror("chdir(/tmp)");
> > +    }
> >
> >      //  @selftest
> >      zfile_t *file = zfile_new (NULL, "bilbo");
> >
> > I was compiling in our buildfarm which mounts an NFS server. That's the
> only
> > reason I can think of. No idea how to fix this properly.
> >
> > Best,
> > Ron
> >
> > _______________________________________________
> > 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/20140515/238cdbe0/attachment.htm>


More information about the zeromq-dev mailing list