octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53733] Panic/segfault when calling Java metho


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #53733] Panic/segfault when calling Java method after forge:im[read|write]
Date: Sat, 28 Apr 2018 16:08:25 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

Follow-up Comment #46, bug #53733 (project octave):

No crash on 

vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Duo CPU     T9900  @ 3.06GHz
stepping        : 10
microcode       : 0xa0b
cpu MHz         : 1595.627
cache size      : 6144 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm
constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64
monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm pti
tpr_shadow vnmi flexpriority dtherm ida
bugs            : cpu_meltdown spectre_v1 spectre_v2
bogomips        : 6116.57
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual

The original code hogged the CPU and I had to kill -9 it after ~30 minutes. 
Then I modified the code as follows:



cat tjava.m 
javaaddpath (".")
imwrite(zeros(1000), "foo.png");
graph = javaObject("Baz");
for jj=1:100
       N = 1000*jj
       tic; imwrite(zeros(1000*jj), "foo.png"); toc
endfor  



and I got:

octave:1> tjava
N =  1000
Elapsed time is 0.126127 seconds.
N =  2000
Elapsed time is 0.513371 seconds.
N =  3000
Elapsed time is 1.0897 seconds.
N =  4000
Elapsed time is 1.89885 seconds.
N =  5000
Elapsed time is 3.00135 seconds.
N =  6000
Elapsed time is 4.31079 seconds.
N =  7000
Elapsed time is 5.73707 seconds.
N =  8000
Elapsed time is 7.74923 seconds.
N =  9000
Elapsed time is 9.53925 seconds.
N =  10000
Elapsed time is 11.7024 seconds.
N =  11000
Elapsed time is 14.1665 seconds.
N =  12000
Elapsed time is 17.2648 seconds.
N =  13000
Elapsed time is 20.0761 seconds.
N =  14000
Elapsed time is 22.8917 seconds.
N =  15000
Elapsed time is 26.3692 seconds.
N =  16000
Elapsed time is 36.8092 seconds.
N =  17000
Elapsed time is 34.7174 seconds.
N =  18000
Elapsed time is 48.9227 seconds.
N =  19000
Elapsed time is 62.3376 seconds.
N =  20000
Elapsed time is 73.7005 seconds.
N =  21000
Elapsed time is 72.4562 seconds.
N =  22000
fatal: caught signal Terminated -- stopping myself...
attempting to save variables to 'octave-workspace'...
warning: save: unable to save java objects, skipping
warning: called from
    __imwrite__ at line 215 column 3
    imwrite at line 119 column 5
    tjava at line 6 column 13
save to 'octave-workspace' complete

(I kill it with signal 15 at the end.)
Notice the time increase is not uniform. 

Dmitri.
-- 


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53733>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]