Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!radar!cadillac!cadillac.cad.mcc.com!beihl From: beihl@cadillac.cad.mcc.com Newsgroups: comp.sys.ncr Subject: bugs on s486 SysVr4 Message-ID: <21112@cadillac.CAD.MCC.COM> Date: 6 Jun 91 14:00:58 GMT Sender: news@cadillac.CAD.MCC.COM Reply-To: beihl@cadillac.cad.mcc.com () Organization: MCC CAD Program, Austin, TX Lines: 81 On an S486 system running System V release 4.0.2.0, I have encountered a few problems on an otherwise quite nice machine/system. Perhaps others who have bumped into these might be interested: (1) setjmp() is broken! The following program dumps core: #include jmp_buf jb; main() { if (!setjmp(jb)) sub(); else printf("returned from longjmp\n"); } sub() { printf("in sub\n"); longjmp(jb,1); } As a workaround, here is a replacement setjmp.s: begin 644 setjmp.s.Z M'YV0"5R82<.F# @1<\K04=,&CHLY(A0$I%,&#QV)+LZP>2.&38*$"QMB#,,F MS1DW"6@H ,D0C@Z)<.K,0>.1! P\,&#*I)G@)@X4)/7UB*#$C2)$J5616V?)D@YLR:-V/H/-L3S\^@0XL>3=IP M:=.G#:-.K;JQ(X@Y)K7"&5GR) B5@,\()FN6IT^@0HFN=>P6;,"P391$T#!ZC() J9>HT 6?/"6SBB6&&!633 M&^HAAX<9&&9H1AFV%2<74G34(8<;(+R!X5]>'9C@@I@Q00-9!9'4E@P">B@= M&:>AAI\<92BF$'RPE0?#D$3& " >,HP!&8X?@E!$$%B T ,(:KD67UMO159? M<3HBQ6.((X* 'AD\SC$'"$ 2-QT>1\Z0)9/>32=?:'"-MIR5L!5W) TUEL&D M;B!44<044$B$QQMRJ&F:?<:=EYYS.+@W6 )?*L#752!LY,89+1'FU6$*:,II M0XSM)%^6<>DXUY8&Z&IW)0 >&U@E)FJGCE8H6Z1U2E3I MI7YE9=*O6[G0E6%@^:K=J"XI5X88DS:70)W282O1''5T9"&QD5D+F+5B-+JK M1YG)T*(,C+T!AYKI2C3F>D/&( ,9M'7;J+:T7FNG4&E(U-^\%@YY)'N089O" M4Q!F5J6V<*7!:)IM,1R4PS?^>V50.!Y9 YUK/BRQ#@F8F\:M=;%F<'@)A$5' M=MM5=%%9\JHY1J-PY+SMM3S[7'&<8=@A*Z4_(MNK0C1S=[.SA9$8+=/:.?W2 M"S@C#'*..RK4JICIE3D'3$+[R;5J+>?:V'I5KOTSCGC!$=4,+ #include #include struct dirent *dp; DIR *thedir; main() { unsigned char *cp; int i; thedir = opendir("."); while (dp = readdir(thedir)) { printf("name is %s\n",dp->d_name); } } The workaround for this is to use Doug Gwyn's dir-lib package (vol 9. comp.sources.unix with a patch in vol 10). I needed to do this to get gnumake built properly. (3) The following file will hang the Csh when sourced: #! /bin/csh -f # echo $path | grep -s "/usr/ucb/bin" exit $status Workaround is to say echo $path > tmp$$; grep -s "/usr/ucb/bin" tmp$$ instead. Gary Beihl (beihl@mcc.com)