BUG DESCRIPTION:
SciLab 5.5.2 Console on Fedora Linux, 22, KDE, 64-bit
----------------
1) SciLab example program works as expected
clf();
x=[0:0.1:2*%pi]';
plot2d(x,[sin(x) sin(2*x) sin(3*x)])
2) My program works as expected without errors
(included below)
3) adding the following line to my program causes a SicLab fatal error
plot2d(d, mop, mhi, mlo);
but, the SicLab Console is still working and can produce debug results
4) re-running example program (above, and previously worked without error) causes SciLab to crash with system error:
"scilab-bin killed by SIGSEGV-abrt"
5) the above can be repeated after re-launching SciLab
ERROR LOG:
----------
-->[a,b] = getdebuginfo()
b =
!Scilab Version: scilab-5.5.2 !
! !
!Compilation date: Sep 28 2015 !
! !
!Compilation time: 09:45:26 !
! !
!Compileur version: 5.1.1 20150618 (Red Hat 5.1.1-4) !
! !
!XML version: 2.9.2 !
! !
!Compiler Architecture: X64 !
a =
!Total memory: 3970476 !
! !
!Used memory: 3832820 !
! !
!Free memory: 137656 !
! !
!Shared memory: 0 !
! !
!Buffers memory: 83564 !
! !
!Cached memory: 1779988 !
! !
!Used -/+ buffers/cache: 1969268 !
! !
!Free -/+ buffers/cache: 2001208 !
! !
!Total swap: 4063228 !
! !
!Used swap: 804 !
! !
!Free swap: 4062424 !
! !
!OS version: Linux 4.2.8-200.fc22.x86_64 !
! !
!SCI: /usr/share/scilab/ !
! !
!SCIHOME: /home/bspurr/.Scilab/scilab-5.5.2 !
! !
!TMPDIR: /tmp/SCI_TMP_2839_obl15t !
additional regarding offending "plot2d(d, mop, mhi, mlo);" line:
-->size(d) ans = 248. 1.
-->size(mop) ans = 248. 1.
-->size(mhi) ans = 248. 1.
-->size(mlo) ans = 248. 1.
HOW TO REPRODUCE THE BUG:
-------------------------
My program code:
clear();
disp("new start");
M2 = csvRead("~/eoddat/dl/ge2015.csv", [] , [] , [] , [] , [] , [1 3 10000 8]);
M = gsort(M2,'lr','i');
z = find(M(:, 6) ==0); // find rows in M with col6 == 0
M(z,:) = []; // delete them
mprintf('entry#, Mean/Stdev for op hi lo cl vo\n');
grp =4; // group of dates to average and ...
sz = size(M); // columns, rows
szr = sz(1) -grp; // output columns
j=1; // start with first array entry
while (j<=szr)
for i=1:4
//disp(i,j);
mop(j)= mean(M(j:j+grp, 2));
mhi(j)= mean(M(j:j+grp, 3));
mlo(j)= mean(M(j:j+grp, 4));
mcl(j)= mean(M(j:j+grp, 5));
mvo(j)= mean(M(j:j+grp, 6));
sop(j)= stdev(M(j:j+grp, 2));
shi(j)= stdev(M(j:j+grp, 3));
slo(j)= stdev(M(j:j+grp, 4));
scl(j)= stdev(M(j:j+grp, 5));
svo(j)= stdev(M(j:j+grp, 6));
end
d(j) = M(j+grp);
smop = size(mop)
mprintf(' %i~%i~%i', j,i, smop(1));
//pause
mprintf('%i %i', j, M(j+grp));
mprintf(', %.2f,%.2f', mop(j), sop(j));
mprintf(', %.2f,%.2f', mhi(j), shi(j));
mprintf(', %.2f,%.2f', mlo(j), slo(j));
mprintf(', %.2f,%.2f', mcl(j), scl(j));
mprintf(', %.0f,%.0f\n', svo(j), svo(j));
j =j+ 1;
end
clf();
plot2d(d, mop);
//--- adding this line causes above error ----
plot2d(d, mop, mhi, mlo); // this is the offending line
//--- end of my program-----------------
OTHER INFORMATION:
------------------
after bug description 3 (above) the following is displayed:
plot2d(d, mop, mhi, mlo);
!--error 42
A fatal error has been detected by Scilab.
Your instance will probably quit unexpectedly soon.
If a graphic feature has been used, this might be caused by the system graphic drivers.
Please try to update them and run this feature again.
You can report a bug on http://bugzilla.scilab.org/ with:
* a sample code which reproduces the issue
* the result of [a, b] = getdebuginfo()
* the following information:
[doc:02839] Signal: Segmentation fault (11)
[doc:02839] Signal code: Address not mapped (1)
[doc:02839] Failing at address: 0x8
Call stack:
1: 0x8b6229 <JVM_handle_linux_signal> (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-15.b17.fc22.x86_64/jre/lib/amd64/server/libjvm.so)
2: 0x8aa138 < > (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-15.b17.fc22.x86_64/jre/lib/amd64/server/libjvm.so)
3: 0x10430 < > (/lib64/libpthread.so.0)
4: 0x8b0ba <strlen> (/lib64/libc.so.6)
5: 0x3e2ef <get_strf_arg> (/usr/lib64/scilab/libscigraphics.so.5)
6: 0x35a4e <sci_plot2d> (/usr/lib64/scilab/libscigraphics.so.5)
7: 0x340a9 <gw_graphics> (/usr/lib64/scilab/libscigraphics.so.5)
8: 0x15dbe8 <callinterf_> (/usr/lib64/scilab/libscilab-cli.so.0)
9: 0x171386 <scirun_> (/usr/lib64/scilab/libscilab-cli.so.0)
10: 0x16c2c8 <realmain> (/usr/lib64/scilab/libscilab-cli.so.0)
11: 0x14e5 < > (/usr/bin/scilab-bin)
12: 0x20700 <__libc_start_main> (/lib64/libc.so.6)
13: 0x1839 < > (/usr/bin/scilab-bin)
End of stack
at line 50 of exec file called by :
exec('/home/bspurr/SciLab/test160129.sce', -1)
!--error 999
Aborting current computation
==========================================================================
My appreciation to your hard work, thanks.