0

I am trying to draw the most basic plot using gnuplot in the terminal and simply entering :

gnuplot> plot 'histogramme.dat' u 1:3

leads to :

gnuplot> Segmentation fault (core dumped)

I can produce image files, but not display on screen, which is highly inconvenient... Would anyone have met the same problem and have a solution, by any chance ?

Have a good day !

Marc

Add.

ldd seems to see no missing library

the default terminal is wxt 0 enhanced

I installed gnuplot using apt

I'll have a try with memtest/strace asap ! The only problem being that this error is quite random (currently, I am using gnuplot without any problem... I am also going to make tests on my data files, but they're quite large, so I am not entirely confident in conclusive examination at this point).

7
  • That error usually deals with a memory problem. quoting In computing, a segmentation fault or access violation is a fault, or failure condition, raised by hardware with memory protection, notifying an operating system the software has attempted to access a restricted area of memory. On standard x86 computers, this is a form of general protection fault
    – David
    Commented Apr 13, 2021 at 13:57
  • Suggest you run the memtest program.
    – David
    Commented Apr 13, 2021 at 13:58
  • 1
    Try double-quotes for the filename, and also check that the file is accessible, and in the correct format. Perhaps pastebin and example of the file. Else gnuplot will potentially read bad data, which I suspect leads to the memory error once it overflows.
    – sarlacii
    Commented Apr 13, 2021 at 14:07
  • maybe start the program with a debugger or straceto find out which lib causes the crash#! Which gnuplot version are you using, apt , .... ?
    – abu_bua
    Commented Apr 13, 2021 at 14:32
  • ldd $(which gnuplot) run this in a terminal and search for missing libaries !
    – abu_bua
    Commented Apr 13, 2021 at 14:35

0

You must log in to answer this question.

Browse other questions tagged .