Aittvax.139 net.4bsd-bugs utzoo!decvax!ittvax!swatt Wed Nov 25 13:47:30 1981 awk bug Wed Nov 25 13:19:47 EST 1981 (reported by cox) [ ] The following script causes awk to core dump with a bus error: --------------------------------- # attempt to produce awk core dump { print $0 >data0 } --------------------------------- The fix is: --------------------------------- cp /usr/src/cmd/awk/run.c /tmp/upd.$$.tmp ; chmod +w /tmp/upd.$$.tmp ed - /tmp/upd.$$.tmp <<\!XXFUNNYXX STRCMP(X.OPTR- && (FILES[I].FP IF 848C>sval, files[i].fname) == 0) ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.