panic: do_bio: write count < 0

Ken Mandelberg km at mathcs.emory.edu
Tue Sep 26 14:09:40 AEST 1989


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 at mathcs.emory.edu          PREFERRED
Emory University    | {decvax,gatech}!emory!km     UUCP 
Dept of Math and CS | km at emory.bitnet              NON-DOMAIN BITNET  
Atlanta, GA 30322   | Phone: (404) 727-7963



More information about the Comp.unix.aux mailing list