bugGNU Octave - Bugs: bug #26085, infinite recursion in nested...

 
 

bug #26085: infinite recursion in nested structure

Submitted by:  Thorsten Meyer <tmeyier>
Submitted on:  Sat 04 Apr 2009 01:56:15 PM UTC  
 
Category: InterpreterSeverity: 4 - Important
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: Jaroslav Hajek <highegg>
Originator Name: Thorsten MeyerOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 04 Apr 2009 01:56:15 PM UTC, original submission:

In todays tip (4218f9515258) I have found a bug reproducible by the example below. Apparently, the lazy copying scheme produces an infinite recursion in the assignment in line 12.

Also, I try the savannah bug tracker with this. I have added the maintainers mailing list in the mail cc field. Is that the right way to do it as long as we haven't switched to the bug tracker completely?

regards

Thorsten

-------------------------------------------

octave:6> clear
octave:7> a.a=1;
octave:8> a.b=2;
octave:9> a.c=a;
octave:10> a
a =
{
a = 1
b = 2
c =
{
a = 1
b = 2
}

}

octave:11> a.c.b=a;
octave:12> a
a =
{
a = 1
b = 2
c =
{
a = 1
b =
{
a = 1
b = 2
c =
{
a = 1
b =
{
a = 1
b = 2
c =
{
a = 1
b =
{
a = 1
b = 2
c =
{
a = 1
b =
{
a = 1
b = 2
c =
{
a = 1
b =
{
1x1 struct array containing the fields:

a: 1x1 scalar
b: 1x1 scalar
c: 1x1 struct
}

}

}

}

}

octave:13> whos
Segmentation fault

Thorsten Meyer <tmeyier>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by highegg (Updated the item)
  • -unavailable- added by tmeyier (Submitted the item)
  • -unavailable- added by tmeyier
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 06 Apr 2009 10:02:39 AM UTChigheggStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sat 04 Apr 2009 01:56:15 PM UTCtmeyierCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1