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


bug #32747: spalloc segmentation fault

Submitted by:  Marco Caliari <caliari>
Submitted on:  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:  Jordi Gutiérrez Hermoso <jordigh>
Originator Name:  Open/Closed:  Closed
Release:  3.4.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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>
Project Administrator
Tue 15 Mar 2011 08:06:43 AM UTC, comment #4: 

Wonderful, great job!


Marco Caliari <caliari>
Project 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project 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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.7