libeio on OSX (Snow Leopard): demo.c failed

Marc Lehmann schmorp at
Mon Nov 29 11:40:43 CET 2010

On Mon, Nov 29, 2010 at 10:50:58AM +0100, zabrane Mikael <zabrane3 at> wrote:
> Trying to run the "demo.c" example failed on OSX 10.6.5:

well, first, demo != testcase :)

> entering event loop
> want_poll ()
> res_cb(13|truncate) = -1
> Abort trap

well, truncate returned an error.

> Any fix for that on OSX?

I'm not apple, not being paid by apple, and I can't say when or how to fix
apple's OS, but my personal experience is that apple never fixes bugs, and
why should they, so many people buy their outdated technology at extremely
high prices, and apparently nobody is interested in getting a working OS
in return, so I guess it makes sense for apple :)

or in short, unless this is a bug in libeio (unlikely) or demo.c (not that
likely, the file should definitely exist), then most like this is a bug in
os x that eio has no control over.

note that this would certainly not the first os x bug, apparently it has
buggy pread/pwrite too.

it all depends on how much this bothers you (your use might not trigger
the problem), but in general, it's unlikely that libeio can do anything
about apple's low quality broken os.

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list