Menu

#2885 `local array` at top-level crashes gnuplot silently

None
pending-fixed
nobody
None
2 days ago
3 days ago
No

I try to debug certain suggestions from LLM, and typing this:

local array b = [2, 4, 5, 6]; 

crashes gnuplot silently.

Discussion

  • Bastian Märkisch

    • summary: Windows 6.0.3: `local array` crashes gnuplot silently --> `local array` at top-level crashes gnuplot silently
    • Group: -->
    • Priority: -->
     
  • Bastian Märkisch

    Confirmed. Still happens with 6.0.5 and is not specific to Windows. Of course "local" on top-level makes little sense, but gnuplot certainly should not crash. The code segfaults here:

        /* Create new local variable with this name */
        if (array_token) {
                c_token = array_token;
                local_array_command(lf_head->depth);
    

    because lf_head is NULL in that case.

     
  • Ethan Merritt

    Ethan Merritt - 3 days ago

    Confirmed. It broke between 6.0.1 and 6.0.2 . The breakage was imported from 6.1 so the fix is needed there also.

    Fix pushed for both branch-6-0-stable and master

     
  • Ethan Merritt

    Ethan Merritt - 2 days ago
    • status: open --> pending-fixed
     

Log in to post a comment.