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

 
 

bug #47876: Crash when defining long string

Submitter:  Amichai Rothman <amichai>
Submitted:  Sun 08 May 2016 04:11:31 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Hi,

This is a known issue, see bug #45947.


Pantxo Diribarne <pantxo>
Group 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 Files:
   
   
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
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by amichai (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-10 mtmiller Open/ClosedOpen Closed
    2016-05-08 pantxo StatusNone Duplicate
        Dependencies- Depends on bugs #45947
    2016-05-08 amichai Attached File- Added histogram.crash.txt, #37102

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code