bugGNU Octave - Bugs: bug #39180, Crashing octave in 1 character

 
 

bug #39180: Crashing octave in 1 character

Submitter:  None
Submitted:  Fri 07 Jun 2013 02:56:26 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Erich Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 12 Jun 2013 03:21:37 PM UTC, comment #2: 

Michael, thanks for the stack trace.

I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/d56cbc17566e

John W. Eaton <jwe>
Group administrator
Fri 07 Jun 2013 12:37:09 PM UTC, comment #1: 

Confirmed, backtrace is as follows:
#0  0x00007ffff6bfffc4 in token::is_symbol (this=0x0) at ../../libinterp/parse-tree/token.h:98
#1  0x00007ffff6bfb215 in lexical_feedback::maybe_mark_previous_token_as_variable (this=0x7fe418) at lex.ll:1635
#2  0x00007ffff6bf6491 in octave_lex (yylval_param=0x7fffffffb670, yyscanner=0x8028e0) at lex.ll:1129
#3  0x00007ffff6c04306 in octave_pull_parse (yyps=0x0, parser=...) at parse-tree/oct-parse.cc:2154
#4  0x00007ffff6c0429d in octave_parse (parser=...) at parse-tree/oct-parse.cc:2124
#5  0x00007ffff6c10e86 in octave_parser::run (this=0x7fffffffb7a0) at oct-parse.yy:3474
#6  0x00007ffff6fa8672 in main_loop () at ../../libinterp/interpfcn/toplev.cc:567
#7  0x00007ffff66d3d09 in octave_execute_interpreter () at ../../libinterp/octave.cc:1014
#8  0x0000000000402761 in main (argc=8, argv=0x7fffffffba48) at ../../src/main-cli.cc:42

Should be easy to fix by checking for non-NULL "tok" value in lexical_feedback::maybe_mark_previous_token_as_variable

Michael Goffioul <goffioul>
Fri 07 Jun 2013 02:56:26 AM UTC, original submission:  

Hello !
This is the fastest crash  I ever see.

octave:1> =
panic: Segmentation fault -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
Segmentation fault


I did :
hg pull
hg tip

>Ă„nderung:        16728:5cf7369a74cb
>Marke:           tip
>Nutzer:          Ben Abbott  <bpabbott@mac.com>
>Datum:           Thu Jun 06 12:59:41 2013 +0800
>Zusammenfassung: Update legend box when the fontsize changes.



hg update
make -j6
make check

>Summary:
>
>  PASS      9971
>  FAIL        10
>  XFAIL        2


run-octave

and now enter something starting with =
Ciau Erich

Anonymous

 

(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)
  •  

    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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-12 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code