bugGNU Octave - Bugs: bug #66259, Incorrect error message when...

 
 

bug #66259: Incorrect error message when creating sparse matrix with out-of-bound column index

Submitter:  Sébastien Villemot <svillemot>
Submitted:  Thu 26 Sep 2024 02:40:28 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Ready For Test Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  9.3.0 (current stable)
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 28 Sep 2024 02:20:10 PM UTC, comment #1: 

Thank you for reporting this issue and providing a patch.
I pushed it to the stable branch:
https://hg.savannah.gnu.org/hgweb/octave/rev/45aeb2272bb6

It should be part of Octave 9.3.0.

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Thu 26 Sep 2024 02:40:28 PM UTC, original submission:  

Consider the following:


octave:1> sparse([1 2], [1 3], [0.1 0.2], 2, 2)
error: sparse: column index 2 out of bound 2


Obviously, the error message is incorrect. The wrong column index is 3, not 2.

Attached is a patch that fixes the issue.

Sébastien Villemot <svillemot>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by svillemot (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-09-28 mmuetzel CategoryOctave Function Interpreter
        StatusNone Ready For Test
        Planned ReleaseNone 9.3.0 (current stable)
    2024-09-26 svillemot Attached File- Added sparse-out-of-bound-column-index.patch, #56458

    Back to the top

    Powered by Savane 3.13-5884.
    Corresponding source code