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

 
 

bug #39180: Crashing octave in 1 character

Submitted by:  None
Submitted on:  Fri 07 Jun 2013 02:56:26 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: ErichOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
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 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>
Project 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>
Project Member
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 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 jwe (Posted a comment)
  • -unavailable- added by goffioul (Posted a comment)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 12 Jun 2013 03:21:37 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1