bugGNU Octave - Bugs: bug #37804, a{~}.b crashes octave

 
 

bug #37804: a{~}.b crashes octave

Submitter:  jose <josombio>
Submitted:  Sat 24 Nov 2012 07:36:32 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  jose Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 14 Mar 2013 09:51:47 AM UTC, comment #2: 

I fixed this bug on the default branch
http://hg.savannah.gnu.org/hgweb/octave/rev/a4af67e0d22c

I couldn't add a test case, because parser errors cause the %!error tests to always fail.

Max Brister <fisheater>
Sun 25 Nov 2012 05:32:16 PM UTC, comment #1: 

Tested some more versions.

It also crashes on Windows (MSVC2010 & MinGW):


octave-3.6.2.exe:1> a = 1
a =  1
octave-3.6.2.exe:2> b = 2
b =  2
octave-3.6.2.exe:3> a{~}.b
parse error:

  invalid use of empty argument (~) in index expression

>>> a{~}.b
       ^

panic: Segmentation violation -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete


Could be provoked on Octave-3.4.3MinGW (one but oldest I have installed) as well, but in Octave MinGW-3.2.4:


octave-3.2.4.exe:1> a = 1
a =  1
octave-3.2.4.exe:2> b = 2
b =  2
octave-3.2.4.exe:3> a{!}.b
parse error:

  syntax error

>>> a{!}.b
       ^

octave-3.2.4.exe:3> a
a =  1
octave-3.2.4.exe:4> b
b =  2
octave-3.2.4.exe:5>


...no crash occurs, so this is a regression.

(Status changed to "Confirmed", OS to "Any", Item Group to "Regression")

Philip Nienhuis <philipnienhuis>
Group Member
Sat 24 Nov 2012 07:36:32 PM UTC, original submission:  

a{!}.b
a{~}.b
both crash octave-3.6.3

jose <josombio>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by fisheater (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Posted a comment)
  • -email is unavailable- added by josombio (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
    2013-03-14 fisheater Open/ClosedOpen Closed
    2013-03-14 fisheater StatusConfirmed Fixed
    2012-11-25 philipnienhuis Item GroupNone Regression
        StatusNone Confirmed
        Release3.6.3 dev
        Operating SystemGNU/Linux Any

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code