bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

test-cloexec.c:97: assertion failed


From: Richard W.M. Jones
Subject: test-cloexec.c:97: assertion failed
Date: Mon, 8 Oct 2012 18:15:17 +0100
User-agent: Mutt/1.5.20 (2009-12-10)

With Linux 3.7.0 I'm seeing:

make[4]: Entering directory `/home/rjones/d/libguestfs/gnulib/tests'
PASS: test-accept
PASS: test-accept4
PASS: test-alloca-opt
PASS: test-argmatch
PASS: test-arpa_inet
PASS: test-binary-io.sh
PASS: test-bind
PASS: test-bitrotate
PASS: test-btowc1.sh
PASS: test-btowc2.sh
PASS: test-byteswap
PASS: test-c-ctype
PASS: test-c-strcase.sh
PASS: test-chdir
test-cloexec.c:97: assertion failed

and then, strangely, the whole test suite hangs (I think that has
something to do with abrt being broken when the kernel comes to
generate the core dump).

I'm about a month behind upstream gnulib, but test-cloexec.c as a
whole hasn't been touched since Jan 2012.

The line where it fails is:

  /* Normal use of dup_cloexec.  */
  fd2 = dup_cloexec (fd);
  ASSERT (fd < fd2);
  ASSERT (!is_inheritable (fd2));    <--- line 97
  ASSERT (close (fd) == 0);
  ASSERT (dup_cloexec (fd2) == fd);
  ASSERT (!is_inheritable (fd));
  ASSERT (close (fd2) == 0);

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora



reply via email to

[Prev in Thread] Current Thread [Next in Thread]