On Sat, Jul 06, 2013 at 10:43:11PM -0400, Joey Hess wrote: > Package: libc6 > Version: 2.17-7 > Severity: important > > On a system with kernel 2.6.32 (forced by a hosting provider) and this > libc6, any calls to eventfd() fail. This causes at least all nontrivial > haskell programs to fail to run, since ghc uses eventfd in its > runtime system when performing IO. > > Here is an upstream bug report in ghc about this problem: > http://ghc.haskell.org/trac/ghc/ticket/7926 > (According to the comments there, wheezy is also affected.) > > Here is a report of this problem breaking git-annex: > http://git-annex.branchable.com/bugs/hGetContents:_user_error/ > > Here is a simple test program I used to verify this problem is not specific to > ghc: > > #include <sys/eventfd.h> > #include <errno.h> > > main () { > int i; > i = eventfd(10, 0); > if (i == -1) { > perror("err"); > } > else { > printf("hello, world\n"); > } > }
I am unable to reproduce the problem on a Debian 2.6.32-5 kernel. Could it be that the kernel that you are using does not have CONFIG_EVENTFD enabled? An strace of this test program could help to understand the problem. -- Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

