Octave 3.0.0 crashes when starting with file
Allen.Windhorn at emerson.com
Allen.Windhorn at emerson.com
Thu May 1 11:37:38 CDT 2008
This may be an Octave bug per John W. Eaton:
I want to start Octave from a Windows shortcut thus:
"C:\Program Files\Octave\bin\octave-3.0.0.exe"
-q --persist "h:/work/matlab/unbal_foo.m"
When I do this the program starts and abruptly vanishes.
By doing it from a shell, I can get:
------------
C:\Program Files\Octave\bin>octave-3.0.0 h:/work/matlab/unbal_foo.m
GNU Octave, version 3.0.0
Copyright (C) 2007 John W. Eaton and others.
...
For information about changes from previous versions, type `news'.
- Use `pkg list' to see a list of installed packages.
- SciTE editor installed. Use `edit' to start the editor.
- MSYS shell available (C:\Program Files\Octave\msys).
- Graphics backend: jhandles.
CALCULATE VOLTAGE UNBALANCE
Enter phase currents.
Enter A phase current p.u. <0>: panic: Segmentation violation --
stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
C:\Program Files\Octave\bin>
------------
However, when I run the same file from within the program, everything
works fine.
Following is the stub unbal_foo.m file:
------------
%unbal_foo -- Test file
%
% Allen Windhorn, 24 May 2000
%
% Initialize things:
%
format short g; %Display results to more precision
clear all
%
a = -0.5+j*(sqrt(3)/2);
r2d = 180/pi;
TRUE = (1==1);
FALSE = (1==2);
%
% Print header
%
disp(' ');
disp(' CALCULATE VOLTAGE UNBALANCE');
disp(' ')
disp('Enter phase currents');
%
% Get values of phase currents, power factor, reactances
% Perform error checking to make sure values entered
%
Ia = input('Enter A phase current p.u. <0>: ');
if isempty(Ia)
Ia = 0;
end
%
Ib = input('Enter B phase current p.u. <0>: ');
if isempty(Ib)
Ib = 0;
end
%
Ic = input('Enter C phase current p.u. <0>: ');
if isempty(Ic)
Ic = 0;
end
%
pf = input('Enter power factor p.u. <0.8>: ');
if isempty(pf)
pf = 0.8;
end
%
x0 = input('Enter zero-sequence reactance p.u. <0>: ');
if isempty(x0)
x0 = 0;
end
%
x2 = input('Enter negative sequence reactance p.u. <0>: ');
if isempty(x2)
x2 = 0;
end
------------
Something to do with stdin?
Regards,
Allen
--
Allen Windhorn, P.E. (MN) (507) 345-2782
Kato Engineering
P.O. Box 8447, N. Mankato, MN 56002
Allen.Windhorn at emerson.com
More information about the Bug-octave
mailing list