From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa0ae,ad82824cd0d4ed74,start X-Google-Attributes: gidfa0ae,public X-Google-Thread: fee84,ad82824cd0d4ed74,start X-Google-Attributes: gidfee84,public From: holland@synopsys.com (Rich Holland) Subject: perl 4.036pl19 dumps core under OSF/1... Date: 1995/10/03 Message-ID: <44se4f$3o5@hermes.synopsys.com>#1/1 X-Deja-AN: 116959781 organization: Synopsys, Inc. newsgroups: comp.lang.perl.misc,comp.unix.osf.osf1 I built perl-4.036 under Digital Unix v3.0 and v3.2 using DEC's compiler with the -g flag. 'perl -v' returns: $RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $ Patch level: 36 The following script causes it to seg fault: #!/usr/local/bin/perl $var=1; if ( $var =~ s/^@// ) { printf "true\n"; } printf "done\n"; It runs fine on other platforms. The offending line as reported by 'dbx perl core' is: signal Segmentation fault at [hfetch:76 +0x18,0x12006fe10] hash = *key + 128 * key[1] + 128 * key[klen-1]; /* assuming klen > 0 */ Has anyone seen this before, or know of a patch that'll fix it? -- Rich Holland UNIX System Administrator, Porting Center vox: (415) 694-4155 Synopsys, Inc. Building C fax: (415) 965-8637 700 E. Middlefield Rd, Mountain View, CA 94043-4033 char*p="char*p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}