scsh-users
[Top] [All Lists]

Re: bug in cwd?

To: scsh@martigny.ai.mit.edu
Subject: Re: bug in cwd?
From: shivers@ai.mit.edu (Olin Shivers)
Date: 26 Jul 1996 11:01:01 -0400
Organization: Artificial Intelligence Lab, MIT
Reply-to: shivers@ai.mit.edu
   From: sjenkins@iastate.edu (Steven L Jenkins)
   Newsgroups: comp.lang.scheme.scsh

   vincent% pwd
   pwd: getwd: read error in ..
   vincent% scsh
   Scsh 0.4
   > (cwd)

   Error: 26
          "Text file busy"
          #{Procedure 8231 cwd}
   1> (cwd)
   
"/afs/iastate.edu/project/vincent/experimental/sjenkins/scheme/mzscheme/mzscheme/dynsrc"
   1> 


   Eh?  What's going on here..

I have no idea; that's strange. The core of scsh's (CWD) proc is defined
in syscalls1.c. It calls getcwd(). Some possibilities: 
        - Your Unix's getcwd() function actually calls a separate program.
        - Error 26 for getcwd() is actually some other error besides
                "Text file busy" (I doubt it, but you could check errno.h).
        - The error 26 is being reported for the malloc() or realloc() calls.
                (Unlikely)
You could fire up scsh under gdb, set a breakpoint at scheme_cwd(), and
single step through the 10 lines of code, see where it breaks.
        -Olin

<Prev in Thread] Current Thread [Next in Thread>