bugGNU Octave - Bugs: bug #47876, Crash when defining long string

 
 

bug #47876: Crash when defining long string

Submitted by:  Amichai Rothman <amichai>
Submitted on:  Sun 08 May 2016 04:11:31 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: DuplicateAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 08 May 2016 04:35:39 PM UTC, comment #1:

Hi,

This is a known issue, see bug #45947.

Pantxo Diribarne <pantxo>
Project Member
Sun 08 May 2016 04:11:31 PM UTC, original submission:

When running in terminal (--no-gui), attempting to define a string variable, e.g. s = 'x' but instead of x using a long string (~25K, copy & pasted from a log file), Octave crashes with the error:

error: input buffer overflow, can't enlarge buffer because scanner uses REJECT
input buffer overflow, can't enlarge buffer because scanner uses REJECT

      • Error in `/usr/lib/x86_64-linux-gnu/octave/4.0.0/exec/x86_64-pc-linux-gnu/octave-gui': corrupted double-linked list: 0x00007faa78122b30 ***

I've attached a file containing the text - copy & paste it into terminal to recreate the crash.

It should at the very least give a proper error message (input string too long) without crashing. But even better would be to support longer strings

Amichai Rothman <amichai>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #37102:  histogram.crash.txt added by amichai (25KiB - text/plain)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by amichai (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 10 May 2016 07:50:38 PM UTCmtmillerOpen/ClosedOpen=>Closed
    Sun 08 May 2016 04:35:39 PM UTCpantxoStatusNone=>Duplicate
      Dependencies-=>Depends on bugs #45947
    Sun 08 May 2016 04:11:31 PM UTCamichaiAttached File-=>Added histogram.crash.txt, #37102

    Back to the top


    Powered by Savane 3.1-cleanup1