From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10259a,3c25b735ad2bcf69 X-Google-Attributes: gid10259a,public X-Google-Thread: fee84,3c25b735ad2bcf69 X-Google-Attributes: gidfee84,public From: Norbert Mikula Subject: Re: Getopts Problem on OSF/1 Date: 1995/07/06 Message-ID: <3tgckc$oj6@phcoms4.seri.philips.nl>#1/1 X-Deja-AN: 105732199 references: <3tep2f$6bk@cheetah.net-works.net> to: andersdc@net-works.net content-type: text/plain; charset=us-ascii organization: Philips Electronics BV. x-url: news:3tep2f$6bk@cheetah.net-works.net mime-version: 1.0 newsgroups: comp.lang.perl,comp.unix.osf.osf1 x-mailer: Mozilla 1.1N (X11; I; HP-UX A.09.01 9000/710) Daniel Anderson wrote: >I am having a problem with Getopts running perl5 on a DEC Alpha >with OSF/1. The script core dumps in the Getopts routine... > >Here is the smallest code segment I could make it happen with: >------------------------------------ >#!/usr/local/bin/perl -d > >require "getopts.pl"; > >&a; > >sub a{ >&Getopts('hvnd:A:D:H:R:M:W:C:i:s:b:f:o:t:'); >} >------------------------------------ >The results: >------------------------------------ >Unaligned access pid=4621 va=14009040b pc=120065f58 >ra=12001c060 type=ldl >Unaligned access pid=4621 va=1400903ff pc=120066018 >ra=12001c060 type=ldq >------------------------------------ I am not running OSF/1, I have HP-UX, but I had the same problem. When I traced the exececution with the debugger (perl -d) I saw that the script always crashed at an "eval" statement. The newgetopt.pl had the same problem. The solution for my system was to install the latest Perl patch. -> perl 5.001m. After I did that it worked fine. I found this version at : ftp://ftp.cis.ufl.edu/pub/perl/src/5.0/ Hope I could help. -- Best regards, Norbert H. Mikula Philips Semiconductors Marketing & Sales Communications Building BE-22 P.O. Box 218 5600 MD Eindhoven The Netherlands Fax: +31 40 724825 Phone: +31 40 724684 Internet: mikula@beatrix.philips.nl