bugGNU Octave - Bugs: bug #44363, segfault when using keyword...

 
 

bug #44363: segfault when using keyword __FILE__ at top-level

Submitter:  Rik <rik5>
Submitted:  Tue 24 Feb 2015 06:58:49 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 25 Feb 2015 05:07:31 PM UTC, comment #2: 

I checked in the following changeset to stable and merged with default.

http://hg.savannah.gnu.org/hgweb/octave/rev/77f65eabac20

John W. Eaton <jwe>
Group administrator
Wed 25 Feb 2015 04:44:56 AM UTC, comment #1: 

This worked in 3.6.4, fails for me in 3.8 and current default. Also segfaults when used in a function file, not limited to the top level.

Mike Miller <mtmiller>
Group Member
Tue 24 Feb 2015 06:58:49 PM UTC, original submission:  

The token _FILE_ is listed as a recognized keyword by the parser from iskeyword().  However trying it at the top-level in Octave produces a segfault.


octave:1> __LINE__
ans =  1
octave:2> __FILE__
o-num: parse-tree/token.cc:128: std::string token::text() const: Assertion `type_tag == string_token' failed.
Abort



Rik <rik5>
Group administrator

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-25 jwe StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2015-02-25 mtmiller StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code