Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* perl 4.036pl19 dumps core under OSF/1...
@ 1995-10-03  4:00 Rich Holland
  1995-10-04  4:00 ` oberman
  0 siblings, 1 reply; 3+ messages in thread
From: Rich Holland @ 1995-10-03  4:00 UTC (permalink / raw)


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);}



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: perl 4.036pl19 dumps core under OSF/1...
  1995-10-03  4:00 perl 4.036pl19 dumps core under OSF/1 Rich Holland
@ 1995-10-04  4:00 ` oberman
  1995-10-10  4:00   ` Sergey Zhuk
  0 siblings, 1 reply; 3+ messages in thread
From: oberman @ 1995-10-04  4:00 UTC (permalink / raw)


In Article <44se4f$3o5@hermes.synopsys.com>
holland@synopsys.com (Rich Holland) writes:
>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:
[script deleted]
>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?

Yes, I get the same thing. You could take this to comp.lang.perl, but V4 is
obsolete and I'd recommend that you upgrade to V5.001m. It runs just fine on
the Alpha and does not have a problem with the code segment you included.

Perl5 also has many significant enhancements which make it worth going to,
regardless!

R. Kevin Oberman			
Energy Sciences Network (ESnet)
National Energy Research Supercomputer Center (NERSC)
Lawrence Livermore National Laboratory (LLNL)
Internet: koberman@llnl.gov		+1 510-422-6955



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: perl 4.036pl19 dumps core under OSF/1...
  1995-10-04  4:00 ` oberman
@ 1995-10-10  4:00   ` Sergey Zhuk
  0 siblings, 0 replies; 3+ messages in thread
From: Sergey Zhuk @ 1995-10-10  4:00 UTC (permalink / raw)


hi

oberman@icaen.llnl.gov wrote:

: >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:
: [script deleted]
: >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?
use malloc from Perl distribution (4.036 or 5.x)

rgds,
serge

--
+-------------------------------------+-------------------------------------+
| Sergey Zhuk                         | serge@freenet.kiev.ua 		    |
| UN Internet Project                 | +380-44-228-6393		    |
| System and Network Administrator    | www.freenet.kiev.ua, www.un.kiev.ua |
+-------------------------------------+-------------------------------------+



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-10-10  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-10-03  4:00 perl 4.036pl19 dumps core under OSF/1 Rich Holland
1995-10-04  4:00 ` oberman
1995-10-10  4:00   ` Sergey Zhuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox