bugGNU Octave - Bugs: bug #51504, On Linux when importing .m script...

 
 

bug #51504: On Linux when importing .m script Dos file with /cr /lf Octave hangs forever.

Submitted by:  buterbrod <buterbrod24>
Submitted on:  Wed 19 Jul 2017 02:31:21 AM UTC  
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Need Info Assigned to:  None
Originator Name:  igor Open/Closed:  Closed
Release:  4.0.0 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.

 

Mon 24 Jul 2017 01:38:35 AM UTC, comment #3: 

No response, closing report.

Rik <rik5>
Project Administrator
Wed 19 Jul 2017 03:36:43 PM UTC, comment #2: 

@buterbrod: Can you post the original m-file (with DOS file endings) that causes a crash so we can try and reproduce this issue?

Rik <rik5>
Project Administrator
Wed 19 Jul 2017 02:48:57 AM UTC, comment #1: 

 I just tried using unix2dos to convert an M file to dos endings, and it still works for me.
I have Ubuntu 16.04 and newest octave stable.

Doug Stewart <dastew>
Wed 19 Jul 2017 02:31:21 AM UTC, original submission:  

On Linux when importing  .m script Octave hangs;
memory bloats; Octave uses all computer memory and
eventually computer crashes or stops responding!
All that when importing a simple .m  script file.

After long experimentation,
As it turns out this happens when .m file
is coded with Dos style line ending /cr /lf
This .m file comes in examples Matlab code from the book.
Every example I tried causes same crash.

Workaround I found is to convert .m file from Dos to Unix coding style.

I consider it's a bug. the program should not crash
when importing files created in Dos or Windows.

regards
Igor

buterbrod <buterbrod24>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by buterbrod24 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-24 rik5 Item GroupNone => Other
        Open/ClosedOpen => Closed
    2017-07-19 rik5 StatusNone => Need Info

    Back to the top


    Powered by Savane 3.5