bugGNU Octave - Bugs: bug #56740, Block Comments hang interpreter...

 
 

bug #56740: Block Comments hang interpreter (Mac OS)

Submitted by:  None
Submitted on:  Sat 10 Aug 2019 06:59:08 AM UTC  
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Need Info Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  4.4.1
Operating System:  Mac OS

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

( Jump to the original submission)

Tue 03 Sep 2019 05:03:22 PM UTC, comment #6: 

This has been updated since the version you have. In Octave 5.1 and later, the default end of line mode for macOS users is "Unix (LF)". You can update your settings now if you want.

Given that macOS users shouldn't be using CR-only line endings now, is this bug still valid for you?

Mike Miller <mtmiller>
Project Administrator
Mon 02 Sep 2019 04:20:48 PM UTC, comment #5: 

Yes, everything just works fine after converting to line feed.
But, as you can see, the "Save As" dialog using "CR" as line ending as default.

Liangbin Lian <jjm2473>
Mon 02 Sep 2019 04:17:32 PM UTC, comment #4: 

comment #3:

> The attached script file uses only carriage return (CR) as line separator. As I understand it, this is a legacy macOS feature. Current macOS editors and tools use line feed (LF) as the default line separator, in line with standard Unix conventions.
>
> Can you only reproduce this when the file uses carriage return line separators? If you convert the file to line feed does it work correctly for you?


Liangbin Lian <jjm2473>
Thu 29 Aug 2019 08:22:49 PM UTC, comment #3: 

The attached script file uses only carriage return (CR) as line separator. As I understand it, this is a legacy macOS feature. Current macOS editors and tools use line feed (LF) as the default line separator, in line with standard Unix conventions.

Can you only reproduce this when the file uses carriage return line separators? If you convert the file to line feed does it work correctly for you?

Mike Miller <mtmiller>
Project Administrator
Mon 12 Aug 2019 04:25:12 AM UTC, comment #2: 

OS: MacOS Mojave 10.14.6 (18G87)

Both 'Save File and Run' and Command window run script, that will happen.

App downloaded from https://octave-app.org/Download.html https://github.com/octave-app/octave-app/releases/download/v4.4.1/Octave-4.4.1.dmg

Liangbin Lian <jjm2473>
Sun 11 Aug 2019 09:09:31 PM UTC, comment #1: 

This example works for me on GNU/Linux.

@apjanke Can you confirm this on an otherwise working macOS build?

Is this specific to the GUI? Is this specific to running a script in the GUI editor with F5 (Save File and Run)?

Mike Miller <mtmiller>
Project Administrator
Sat 10 Aug 2019 06:59:08 AM UTC, original submission:  

Block Comments really 'block' everything!

Just run a simple script:

```
1;
printf("hello\n")

%{
block comment
%}

printf("world\n")

```

We will hang, nothing output, memory will be used out.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #47440:  save_as.png added by jjm2473 (329KiB - image/png - "Save As" Default using "CR" as line ending.)
file #47316:  test_freeze.m added by None (61B - application/octet-stream)
file #47313:  14_53_14__08_10_2019.jpg added by None (42KiB - image/jpeg)
file #47314:  14_54_05__08_10_2019.jpg added by None (228KiB - image/jpeg)
file #47315:  14_55_31__08_10_2019.jpg added by None (82KiB - image/jpeg)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jjm2473 (Posted a comment)
  • -email is unavailable- added by mtmiller
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2019-09-02 jjm2473 Attached File- => Added save_as.png, #47440
    2019-08-11 mtmiller StatusNone => Need Info
        Carbon-Copy- => Added apjanke
    2019-08-11 rik5 Carbon-CopyRemoved 72865 => -
    2019-08-11 rik5 CategoryPerformance => Interpreter
        Item GroupPerformance => Incorrect Result
        SummaryBlock Comments will freeze everything! => Block Comments hang interpreter (Mac OS)
    2019-08-10 None Attached File- => Added test_freeze.m, #47316
    2019-08-10 None Attached File- => Added 14_53_14__08_10_2019.jpg, #47313
        Attached File- => Added 14_54_05__08_10_2019.jpg, #47314
        Attached File- => Added 14_55_31__08_10_2019.jpg, #47315

    Back to the top


    Powered by Savane 3.5