Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!m.cs.uiuc.edu!ibma0.cs.uiuc.edu!ux1.cso.uiuc.edu!headroom!creiman From: creiman@headroom.ncsa.uiuc.EDU (Chuck Reiman) Newsgroups: comp.lang.perl Subject: Re: dbm TEST failure: SS1 w/ SunOS 4.1.1 Keywords: perl sun4 Message-ID: <1991Mar8.130630@headroom.ncsa.uiuc.EDU> Date: 8 Mar 91 19:06:30 GMT References: <1991Mar6.232251.23675@riacs.edu> Sender: usenet@ux1.cso.uiuc.edu (News) Reply-To: creiman@headroom.ncsa.uiuc.EDU (Chuck Reiman) Organization: National Center for Supercomputing Applications - Unversity of Illinois Lines: 43 I am also new to perl, and am also having problems with gcc/sun4. I did eventually figure out that you must use the -fpcc-struct-return option, but that hasn't fixed all of my problems. By the way, this is perl 3.44, not the 4.0 beta version. And sun OS 4.0.3, not 4.1.1. Alright, nothing in common, really, but I would have posted anyway. Specifically: op.dbm fails inconsistently, usually in hfetch or hiterval. It receives invalid pointers somewhere along the line, then passes them to dbm calls. In hiterval, the call to dbm_fetch (hash.c:539) has a key.dptr of 3. Just plain 3. Not a vaild pointer at all. The bomb in hfetch isn't catchable, it never gets there once I set the breakpoint. Op.regexp also fails, on test 45. It appears to be an out of bounds array check, which then calls fatal which calls mess. mess then dies a violent death in vsprintf. The problem starts in regclass:regcomp.c:958. The array apprears to be out of bounds, then the error printing dies. I want to run some tests with varargs to see if the slightly strange way that mess and fatal interact is legal or not. Fortunately, everything works fine with good 'ole cc. That is why I want to isolate these problems; to see if gcc isn't working properly or if perl is not quite perfect. One last thing: in the readme, it states to insert the following define for suns: ( something like this) #define fputs( s, file ) fprintf ( file, "%s", s ) Why? I know that fgets has a bug, but I was unaware (and haven't found) any bug with fputs. What gives? ----------- I'm a Comp E. and I'm okay, Charlie Reiman I work all night and I work all day. creiman@ncsa.uiuc.edu I SKIP and JUMP, c-reiman@uiuc.edu I crash PCs, National Center for I sort with binary trees. Superb Acronyms