bugGNU Octave - Bugs: bug #32747, spalloc segmentation fault


bug #32747: spalloc segmentation fault

Submitter:  Marco Caliari <caliari>
Submitted:  Fri 11 Mar 2011 09:22:27 AM UTC
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  jordigh
Originator Name:  Open/Closed:  * Closed
Release:  * 3.4.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 16 Mar 2011 05:26:30 AM UTC, comment #5: 

Confirmed that original code produces segmentation fault and that attached patch fixes it.  This should be committed.  Testing done with tip 12507:41d183070c04.

Rik <rik5>
Group administrator
Tue 15 Mar 2011 08:06:43 AM UTC, comment #4: 

Wonderful, great job!


Marco Caliari <caliari>
Group Member
Tue 15 Mar 2011 06:46:21 AM UTC, comment #3: 

I have attached a patch that squashes this bug for me. I will wait for confirmation from other devs before pushing it.

(file #22929)

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Sat 12 Mar 2011 01:42:33 AM UTC, comment #2: 

Brief update. After doing the hg bisect, the bad revision is: 10513:c5005bc2b7a9

And the commit message obviously lies. ;-)

I'll be looking at that changeset over the weekend and hopefully will have a patch ready.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Fri 11 Mar 2011 03:43:47 PM UTC, comment #1: 

Confirmed. It's nice that you've bracketed the bug between two revisions that are close to each other. I'm doing hg bisect on this in order to track down the bad changeset.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Fri 11 Mar 2011 09:22:27 AM UTC, original submission:  

Dear maintainers,

the following code

S = spalloc(6,4,8);
S(1:4,1:4) = spdiags(rand(4,1),0,4,4);
S(5,1:2) = rand(1,2);
S(6,3:4) = rand(1,2);

run once or twice, gives me a segmentation fault with 3.4.0 and 3.3.53. It is fine with 3.3.51 (I don't have 3.3.52) and previous versions. If I remove the first line, everything is fine.


Marco Caliari <caliari>
Group Member


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

Attach Files:

Attached Files
file #22929:  squash-32747.patch added by jordigh (2KiB - text/x-patch - Bug-squashing patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by caliari (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-18 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2011-03-15 jordigh StatusConfirmed Patch Submitted
    2011-03-15 jordigh Attached File- Added squash-32747.patch, #22929
    2011-03-11 jordigh StatusNone Confirmed
        Assigned toNone jordigh

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code