bugGNU Octave - Bugs: bug #44824, Bad syntax in script crashing...

 
 

bug #44824: Bad syntax in script crashing octave

Submitted by:  None
Submitted on:  Mon 13 Apr 2015 07:50:53 AM UTC  
 
Category: InterpreterSeverity: 4 - Important
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: FixedAssigned to: None
Originator Name: Richard LangOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 16 Apr 2015 04:55:55 PM UTC, comment #4:

Verified, problem is fixed. Closing report.

Rik <rik5>
Project Administrator
Tue 14 Apr 2015 03:50:25 AM UTC, comment #3:

I checked in the following changeset.

http://hg.savannah.gnu.org/hgweb/octave/rev/8aa424ffc076

John W. Eaton <jwe>
Project Administrator
Tue 14 Apr 2015 02:06:49 AM UTC, comment #2:

I can also confirm that Mike's simple one line example is enough to cause a segfault. I'm adding jwe to the CC list since this is a parser problem.

Rik <rik5>
Project Administrator
Mon 13 Apr 2015 09:07:10 AM UTC, comment #1:

Thanks for your bug report. I can confirm this crash on Linux with the 4.0.0 release candidate branch also. The following simple example shows the crash:

And the gdb stack trace is as follows:

Mike Miller <mtmiller>
Project Administrator
Mon 13 Apr 2015 07:50:53 AM UTC, original submission:

MXE-Octave 3.8.2 running on Windows 7 - About dialog tells me it is configured for "i686-w64-mingw32"

Working on a function script and made an accidental cut-n-paste that turned a statement that should have read

if currentChannelData.isNumericData
data = str2double(dataStr);
endif

to

if currentChannelData.isNumericData
data = str2double(dataStr);
endevents

that provokes octave to crash when attempting to run, or even place a breakpoint, in the script.

Windows crash handler provides the following:

Problem signature:
Problem Event Name: APPCRASH
Application Name: octave-gui.exe
Application Version: 0.0.0.0
Application Timestamp: 34e534c5
Fault Module Name: libstdc++-6.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00002000
Exception Code: c0000005
Exception Offset: 00071f62
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 5129
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Turning Diary on within octave provided the following:

>> GraphVatManLog

debug>
parse error near line 97 of file C:\TruTest\VatManager\trunk\wkspace\helperscripts\VatManagerDataLogProcessing\ParseVatManagerDataLog.m

>>> endevents


^

panic: impossible state reached in file 'parse-tree/oct-parse.yy' at line 1718
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete

Script attached...

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #33663:  ParseVatManagerDataLog.m added by None (3KiB - text/x-objcsrc)

 

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 rik5 (Posted a comment)
  • -unavailable- added by rik5
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 16 Apr 2015 04:55:55 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 14 Apr 2015 02:06:49 AM UTCrik5Carbon-Copy-=>Added jwe
    Mon 13 Apr 2015 09:07:10 AM UTCmtmillerSeverity3 - Normal=>4 - Important
      StatusNone=>Confirmed
      Release3.8.2=>dev
      Operating SystemMicrosoft Windows=>Any
    Mon 13 Apr 2015 07:50:53 AM UTCNoneAttached File-=>Added ParseVatManagerDataLog.m, #33663

    Back to the top


    Powered by Savane 3.1-cleanup1