English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Cash broken?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-05-28 (13:52)
From: Bruno.Verlyck@i...
Subject: Re: [Caml-list] Cash broken?
   Date: Fri, 28 May 2004 08:13:39 -0500
   From: John Goerzen <jgoerzen@complete.org>

   On Fri, May 28, 2004 at 12:26:15PM +0200, Bruno.Verlyck@inria.fr wrote:
   >     # open Cash;;
   >     # run_with_strings (fun () -> exec_path "ls" []);;
   >     Exception: Sys_error "Bad file descriptor".
   >     # Exception: Sys_error "Bad file descriptor".
   >    Ideas?  (Cash 0.20)
   > Would you mind sending me more OS details ?  A backtrace would be
   > very useful, and/or the result of trace/truss/strace -f ?
   This is on Debian sid, Linux 2.6.6.  I couldn't figure out how to
   get a backtrace.  However, from the forked child, I see:

   [pid  9461] close(4)			= 0
   [pid  9461] close(4)			= -1 EBADF (Bad file descriptor)

   (Full strace attached)
Thank you.  It confirms my first guess.

   Will try the patch.  How does the CVS version rank in terms of
Pretty good :-).  The only risk is that I converted all the sources to
use Cstr/String13, and I have to admit I introduced some translation
errors.  I fixed those I found, but it could be that there's still
`just one more bug'.  I would be very interested if you (or anyone
else) find it out, or tell me everything you tried is OK.

Thanks anyway,

To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners