Menu

#1758 cvs development version special filename "+" causes crash

None
closed-fixed
nobody
None
2016-07-20
2016-03-20
No

Using the current cvs development version, the following causes a crash

set xrange[-pi:pi]
plot "+" u 1:(sin($1))

On Windows, using both the gnuplot.exe and wgnuplot.exe executables, it raises the program not responding dialog and must be force closed.

Compiling the source on Ubuntu, it causes a crash and a core dump.

Discussion

  • Bastian Märkisch

    On my Windows system, I do get a crash in datafile.c, line 5302 for the above test case:

    sprintf(line,"%g",t);
    

    But line == NULL for some reason.

     
  • Matthew Halverson

    I have a Windows version that was built, I believe, from the development source as of 3/16 and it works just fine. I didn't build it myself, but I am pretty sure that it was up to date. The included change log goes through 3/15. I last built it myself from development version on 3/11 on my Ubuntu machine with a freshly updated copy of source, and it worked then too.

    I notice looking at the change log in the current version, that there were changes made to datafile.c on 3/17. Perhaps this broke something?

     

    Last edit: Matthew Halverson 2016-03-20
  • Ethan Merritt

    Ethan Merritt - 2016-03-21
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2016-03-21

    Yes. Good catch. I didn't finding it during testing because it's an initialization failure. Once the data input buffer is initialized, there is no problem. But some data input pathways failed to check that the buffer was initialized.

     
  • Ethan Merritt

    Ethan Merritt - 2016-07-20
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB