Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 <>

   On Fri, May 28, 2004 at 12:26:15PM +0200, 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 Archives:
Bug reports: FAQ:
Beginner's list: