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: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: Need InfoAssigned to: None
Originator Name: igorOpen/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.

 

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 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 rik5 (Posted a comment)
  • -unavailable- added by dastew (Posted a comment)
  • -unavailable- added by buterbrod24 (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 24 Jul 2017 01:38:35 AM UTCrik5Item GroupNone=>Other
      Open/ClosedOpen=>Closed
    Wed 19 Jul 2017 03:36:43 PM UTCrik5StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1