• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • FMSLogo
  • Bugs
FMSLogo

apply [[] [] abc ] [] crashes FMSLogo

A Logo programming environment for Microsoft Windows

Brought to you by: david_costanzo
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Feature Requests
    • Bugs
    • Support Requests
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • v_6.06x
  • v_6.07.X
  • v_6.08.X
  • v_6.10.X
  • v_6.11.X
  • v_6.13.X
  • v_6.22.X
  • v_6.25.X
  • v_6.26.X
  • v_6.27.X
  • v_6.28.X
  • v_6.29.X

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#605 apply [[] [] abc ] [] crashes FMSLogo

v_6.06x
closed-fixed
nobody
None
5
2026-06-03
2026-04-06
David Costanzo
No

If you execute

APPLY [[] [IGNORE 1](LIST "\}) ] []

FMSLogo stops working (crashes). This is reproducible on FMSLogo 8.4.0. It's not reproducible on MSWLogo 6.5b. That version has better behavior in that it prints the following to the commander:

unexpected '}'

However, this is not an error that can be caught. I think the ideal behavior is to throw an error that can be caught, even if it's not recoverable.

On UCBLogo 6.2.5, this doesn't crash and throws an error, but the error message is strange:

? catch "error [ APPLY [[] [IGNORE 1](LIST "\}) ] [] ]
? show error
[4 APPLY doesn't like [  . ] as input APPLY [  . ]]

The regression was introduced in FMSLogo 6.12.0. In FMSLogo 6.11.0, the behavior matches what's in MSWLogo 6.5b.

Discussion

  • David Costanzo

    David Costanzo - 2026-04-06
    • summary: APPLY [[] [IGNORE 1](LIST "\}) ] [] crashes FMSLogo --> apply [[] [] abc ] [] crashes FMSLogo
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2026-04-06

    I simplified the repro case to

    APPLY [[] [] abc ] []
    

    When I wrote the APPLY instruction in the first description, I was trying to get a syntax error in the second line to force a cleanup (untreeify) of the entire body. However, I messed up because the second instruction isn't a list, it's the word "(LIST. The problem isn't that the second instruction can't be parsed, it's that the instructions are assumed to be lists.

    Therefore, I think the correct behavior is to throw an error like

    APPLY doesn't like [[] [] abc ] as input 
    

    That is, APPLY should reject the entire template input as a badly-formed.

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2026-06-03
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,6 @@
     If you execute
    
    -```test
    +```text
     APPLY [[] [IGNORE 1](LIST "\}) ] []
     ```
    
    • status: open --> closed-fixed
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2026-06-03

    This was fixed by [r6258], despite me referencing the wrong bug number in the commit message. The fix will be available in FMSLogo 8.6.0.

    The new behavior is

    APPLY [[] [IGNORE 1](LIST "\}) ] []
    APPLY doesn't like [[] [IGNORE 1] (LIST |"})|] as input
    

    And

    APPLY [[] [] abc ] []
    APPLY doesn't like [[] [] abc] as input
    
     

    Related

    Commit: [r6258]

    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
mdb logo