Menu

#2043 svg terminal seg-faulting after partially failed "set term" options parsing

None
closed-fixed
nobody
None
2019-03-10
2018-04-26
Dan Sebald
No

With the latest head:

    G N U P L O T
    Version 5.3 patchlevel 0    last modified 2018-04-25 

    Copyright (C) 1986-1993, 1998, 2004, 2007-2018
    Thomas Williams, Colin Kelley and many others

    gnuplot home:     http://www.gnuplot.info
    mailing list:     gnuplot-beta@lists.sourceforge.net
    faq, bugs, etc:   type "help FAQ"
    immediate help:   type "help"  (plot window: hit 'h')

Terminal type is now 'qt'
Options are '0 font "Sans,9"'
gnuplot> set terminal svg enhanced size 576,432 dynamic fsize 8 background rgb "#ffffff"

Terminal type is now 'svg'
                                                        ^
         unrecognized terminal option

gnuplot> set out "t1.svg"
gnuplot> plot sin(x)
Segmentation fault

When all options are proper, gnuplot does not crash.

Discussion

  • Ethan Merritt

    Ethan Merritt - 2018-04-26
    • status: open --> closed-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2018-04-26

    Curious case of one bug fix revealing a separate bug that had been masked.
    Fixed now.

     
  • Dan Sebald

    Dan Sebald - 2018-04-26

    I was just looking at this. My guess would be that

        /* I don't think any error checks on font name are possible; just set it */
        SVG_set_font("");
    

    appears after the int_error() rather than before the options loop. Everything else after the options loop is just output, not input.

     
  • Sascha Forster

    Sascha Forster - 2019-03-10

    I'm still getting this error on a fresh clone of this repo. Shell is showing Version 5.3 patchlevel 0, last modified 2019-03-07.
    Running on Xubuntu 18.10.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.