* Getopts Problem on OSF/1
@ 1995-07-05 4:00 Daniel Anderson
1995-07-06 4:00 ` Peter Marksteiner
1995-07-06 4:00 ` Norbert Mikula
0 siblings, 2 replies; 6+ messages in thread
From: Daniel Anderson @ 1995-07-05 4:00 UTC (permalink / raw)
Hi,
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 <fred> va=14009040b pc=120065f58
ra=12001c060 type=ldl
Unaligned access pid=4621 <fred> va=1400903ff pc=120066018
ra=12001c060 type=ldq
------------------------------------
Any thoughts, ideas, or solutions would be greatly appreciated.
TIA,
Dan
-----------------------------------------------------
Daniel C. Anderson andersdc@net-works.net
The Networks, Inc. http://www.net-works.net
-----------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getopts Problem on OSF/1
1995-07-05 4:00 Getopts Problem on OSF/1 Daniel Anderson
@ 1995-07-06 4:00 ` Peter Marksteiner
1995-07-07 4:00 ` Hugh Messenger
1995-07-06 4:00 ` Norbert Mikula
1 sibling, 1 reply; 6+ messages in thread
From: Peter Marksteiner @ 1995-07-06 4:00 UTC (permalink / raw)
Daniel Anderson (andersdc@net-works.net) 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...
I'm not sure I have a solution, but definitely I had the same problem.
I traced it to the "eval"-statements in the Getopts routine. The perl 5
version of eval behaves rather differently from its perl 4 predecessor, but
I don't know what the differences are - except that perl 5 eval on OSF/1
sometimes dumps core.
I implemented a brute-force workaround: I modified the Getopts routine
to produce an associative array $opt_{"h"}, $opt_{"v"}, ..., rather than
single variables $opt_h, $opt_v etc.; this can be done without an eval.
Of course, this requires analogous modifications of all programs
calling the Getopts routine.
--
Peter Marksteiner
Vienna University Computer Center
Universitaetsstrasse 7
A-1010 Vienna, Austria
e-mail: Peter.Marksteiner@univie.ac.at
Tel: (+43 1) 406 58 22 255
FAX: (+43 1) 406 58 22 170
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getopts Problem on OSF/1
1995-07-05 4:00 Getopts Problem on OSF/1 Daniel Anderson
1995-07-06 4:00 ` Peter Marksteiner
@ 1995-07-06 4:00 ` Norbert Mikula
1 sibling, 0 replies; 6+ messages in thread
From: Norbert Mikula @ 1995-07-06 4:00 UTC (permalink / raw)
To: andersdc
Daniel Anderson <andersdc@net-works.net> 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 <fred> va=14009040b pc=120065f58
>ra=12001c060 type=ldl
>Unaligned access pid=4621 <fred> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getopts Problem on OSF/1
1995-07-06 4:00 ` Peter Marksteiner
@ 1995-07-07 4:00 ` Hugh Messenger
1995-07-10 4:00 ` Hans Mulder
1995-07-10 4:00 ` Guenter Schmidt
0 siblings, 2 replies; 6+ messages in thread
From: Hugh Messenger @ 1995-07-07 4:00 UTC (permalink / raw)
In article <3tgp2k$p02@ftp.univie.ac.at>, pm@katz.cc.univie.ac.at (Peter
Marksteiner) wrote:
> Daniel Anderson (andersdc@net-works.net) 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...
>
> I'm not sure I have a solution, but definitely I had the same problem.
> I traced it to the "eval"-statements in the Getopts routine. The perl 5
> version of eval behaves rather differently from its perl 4 predecessor, but
> I don't know what the differences are - except that perl 5 eval on OSF/1
> sometimes dumps core.
Strange. I use Getopts heavily in my Alpha/OSF perl 5.000, never had a problem.
Could it be one of the myriad config options on the perl build? I can tar
up my working version of perl for you if you want.
I'm about to upgrade to 5.001 ... maybe Getopts will cease working ... :)
-- hugh
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getopts Problem on OSF/1
1995-07-07 4:00 ` Hugh Messenger
@ 1995-07-10 4:00 ` Hans Mulder
1995-07-10 4:00 ` Guenter Schmidt
1 sibling, 0 replies; 6+ messages in thread
From: Hans Mulder @ 1995-07-10 4:00 UTC (permalink / raw)
In <hippo-0707951442340001@cerebus.garply.com> hippo@garply.com (Hugh Messenger) writes:
>In article <3tgp2k$p02@ftp.univie.ac.at>, pm@katz.cc.univie.ac.at (Peter
>Marksteiner) wrote:
>> Daniel Anderson (andersdc@net-works.net) 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...
>> I'm not sure I have a solution, but definitely I had the same problem.
>> I traced it to the "eval"-statements in the Getopts routine. The perl 5
>> version of eval behaves rather differently from its perl 4 predecessor, but
>> I don't know what the differences are - except that perl 5 eval on OSF/1
>> sometimes dumps core.
>Strange. I use Getopts heavily in my Alpha/OSF perl 5.000, never had a problem.
>I'm about to upgrade to 5.001 ... maybe Getopts will cease working ... :)
It will. There is a serious bug in straight 5.001 and it's most visible
effect is to dump core in the Getopts routine.
Use 5.001a or later if you want ot use Getopts.
Versions prior to 5.001m have problems returning arrays from subs.
On the other hand, versions later than 5.001e tends to dump core if
you increment an undefined element in a tied hash (e.g. a DBM file).
--
Hope this helps,
HansM
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Getopts Problem on OSF/1
1995-07-07 4:00 ` Hugh Messenger
1995-07-10 4:00 ` Hans Mulder
@ 1995-07-10 4:00 ` Guenter Schmidt
1 sibling, 0 replies; 6+ messages in thread
From: Guenter Schmidt @ 1995-07-10 4:00 UTC (permalink / raw)
hippo@garply.com (Hugh Messenger) writes:
>In article <3tgp2k$p02@ftp.univie.ac.at>, pm@katz.cc.univie.ac.at (Peter
>Marksteiner) wrote:
>> Daniel Anderson (andersdc@net-works.net) 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...
>>
>> I'm not sure I have a solution, but definitely I had the same problem.
>> I traced it to the "eval"-statements in the Getopts routine. The perl 5
>> version of eval behaves rather differently from its perl 4 predecessor, but
>> I don't know what the differences are - except that perl 5 eval on OSF/1
>> sometimes dumps core.
>Strange. I use Getopts heavily in my Alpha/OSF perl 5.000, never had a problem.
>Could it be one of the myriad config options on the perl build? I can tar
>up my working version of perl for you if you want.
>I'm about to upgrade to 5.001 ... maybe Getopts will cease working ... :)
> -- hugh
I have similar problem on a Mips R3000 workstation and SGI Indy with 5.001.
Version 5.000 worked well, but since I upgraded to 5.001 all scripts with
options gave:
Bus error (core dumped)
I believed that it might be due to the use of tkperl module, but now it
looks like a general problem.
gsc.
--
Dr. Guenter Schmidt E-Mail: gsc@bruker.de
Software Department
Bruker Analytische Messtechnik GmbH Voice: +49 721-5161-443
D-76287 Rheinstetten Fax: +49 721-5161-437
--
Dr. Guenter Schmidt E-Mail: gsc@bruker.de
Software Department
Bruker Analytische Messtechnik GmbH Voice: +49 721-5161-443
D-76287 Rheinstetten Fax: +49 721-5161-437
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1995-07-10 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-07-05 4:00 Getopts Problem on OSF/1 Daniel Anderson
1995-07-06 4:00 ` Peter Marksteiner
1995-07-07 4:00 ` Hugh Messenger
1995-07-10 4:00 ` Hans Mulder
1995-07-10 4:00 ` Guenter Schmidt
1995-07-06 4:00 ` Norbert Mikula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox