Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!ctrsol!emory!km
From: km@mathcs.emory.edu (Ken Mandelberg)
Newsgroups: comp.unix.aux
Subject: panic: do_bio: write count < 0
Message-ID: <4374@emory.mathcs.emory.edu>
Date: 26 Sep 89 04:09:40 GMT
Organization: Math & Computer Science, Emory University, Atlanta, GA
Lines: 34

There is an NFS bug in A/UX 1.1 that causes a panic if
a "creat" is done on a file that still has data caught
in the buffer cache. The following program should crash
your machine if executed in an NFS imported directory:

char buff[1025]="start\n";
main () {
    int fd;
    fd=creat("x",0777);
    write(fd,buff,1025);
    fd=creat("x",0777);
}


Unfortunately this is exactly what the Unisoft A/UX Pascal 
compiler does to the .s file it writes in case it finds
a Pascal syntax error. If the .s file is over 1K and not a
multiple of 1K at the time--BOOM!

Apple: Is there a kernel fix for this? 
       What about publishing a bug list so we don't have to 
           spend so much time isolating known problems?

Unisoft Pascal Users: The work around is to use a symbolic 
       link to prelink the .s file onto /tmp and avoid the
       problem. We have a front end shell script to do this
       if anyone needs it.


-- 
Ken Mandelberg      | km@mathcs.emory.edu          PREFERRED
Emory University    | {decvax,gatech}!emory!km     UUCP 
Dept of Math and CS | km@emory.bitnet              NON-DOMAIN BITNET  
Atlanta, GA 30322   | Phone: (404) 727-7963