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

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

[Octave-bug-tracker] [bug #65431] crash after hgload certain data


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #65431] crash after hgload certain data
Date: Fri, 8 Mar 2024 08:15:58 -0500 (EST)

Follow-up Comment #1, bug #65431 (group octave):

I'm able to reproduce the crash at that same line in graphics.cc.  See
https://hg.savannah.gnu.org/hgweb/octave/file/b5ffc06b39b2/libinterp/corefcn/graphics.cc#l9728
for the context of looping around that assignment.

Applying the attached change, I'm able to display some info about the indices
and dimensions at the point of the crash:


octave:1> hgload sphere_crash.ofig
fvc indices (row, kk): 1837, 0
cd indices (ii, jj, kk): 1, 612, 0
cd.dims: 3x3586
fvc.dims: 1837x1
idx.dims: 3x3586
idx.min/max - 1: 0, 10757
ii limit (idx.rows): 3
jj limit (nfaces): 3586
kk limit (fvc.columns): 1
error: __go_patch__: index (1838,_): out of bound 1837 (dimensions are
1837x1), unable to create graphics handle


and it shows that the indexing on FVC is incorrect and if I understand
correctly, the row index on that variable in the loop where the crash occurs
could be between 0 and 10757 but the row dimension of FVC is just 1837
elements.

I don't understand this code and I don't see an obvious fix.  Someone who
knows or can say what is supposed to be happening here will have to help to
resolve this problem.


(file #55802)

    _______________________________________________________

Additional Item Attachment:

File name: graphics-debug-diffs.txt       Size:1 KB
   
<https://file.savannah.gnu.org/file/graphics-debug-diffs.txt?file_id=55802>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-04b18e1179b14c0ef710c8e9c8e59d1e4bcd7bd0.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65431>

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




reply via email to

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