bugGNU Octave - Bugs: bug #40044, *** glibc detected *** gnuplot:...


bug #40044: *** glibc detected *** gnuplot: double free or corruption (fasttop): 0x08d72878 ***

Submitted by:  None
Submitted on:  Mon Sep 16 17:10:27 2013  
Category: Plotting with gnuplotSeverity: 4 - Important
Priority: 5 - NormalItem Group: Crash
Status: ConfirmedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon Aug 8 03:10:48 2016, comment #5:

With dev and gnuplot 5.0.3 i see no plot window and get:

line 0: out of memory for pm3d_plot->quadrangles

line 0: out of memory for pm3d_plot->quadrangles

      • Error in `/usr/bin/gnuplot': double free or corruption (out): 0x0000561967f31de0 ***

======= Backtrace: =========
======= Memory map: ========
561965fdd000-561966148000 r-xp 00000000 08:02 1442514 /usr/bin/gnuplot-qt

With octave 4.0.3 I get
line 0: out of memory for pm3d_plot->quadrangles

line 0: out of memory for pm3d_plot->quadrangles
and no memory dump and I see a gnuplot window with
5 plots (partially rendered).


on a screen

Dmitri A. Sergatskov <dasergatskov>
Mon Aug 8 01:26:08 2016, comment #4:

Confirmed that bug is still present with gnuplot 5.0.1 and the development branch from 8/7/16.

Rik <rik5>
Project Administrator
Mon Feb 2 04:46:42 2015, comment #3:

Confirmed that the bug is still present with gnuplot version 4.6.6 and a development branch from 2/1/2015.

Rik <rik5>
Project Administrator
Mon Sep 16 18:53:44 2013, comment #2:

It's probably a bug in gnuplot, but I can't confirm 100%. In testing with Octave versions 3.2.4, 3.4.3, 3.6.4, and development versions I can always reliably produce a crash. My version of gnuplot is 4.6.2.

Interestingly, If I vary the final plot I don't get a crash. I tried a 2-D plot [plot (1:10)], and the other 3-D plots that didn't use plot3 (mesh, surf, surfc).

Also, if I throw a line

after the first subplot, just to create the axes, then everything works.

Rik <rik5>
Project Administrator
Mon Sep 16 17:39:08 2013, comment #1:

I can confirm this. At first blush, this might be a bug in gnuplot, not in Octave. As a workaround, you can try using Octave's own native plotting system. Before doing any plot commands, do

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Mon Sep 16 17:10:27 2013, original submission:

I am trying to plot 8 graphs in one plot with Ubuntu 12.04.3 LTS but I allways get the error:

      • glibc detected *** gnuplot: double free or corruption (fasttop): 0x08d72878 ***

======= Backtrace: =========
======= Memory map: ========
(full message: see file below)
It also occured in other versions (I've tried 3.2.? (ubuntu standard and 3.4.?)

A minimal example is given below (try.m); if I remove one or more of the subplots, the error doesn't occur anymore

I hope, this is all information required.
Best regards,



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #29150:  error.dat added by None (14kB - application/x-ns-proxy-autoconfig)
file #29151:  try.m added by None (395B - text/x-objcsrc)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by dasergatskov (Posted a comment)
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Jul 1 17:25:32 2016rik5Severity3 - Normal=>4 - Important
    Sun Oct 27 15:50:30 2013mtmillerCategoryPlotting=>Plotting with gnuplot
    Mon Sep 16 17:39:08 2013jordighStatusNone=>Confirmed
    Mon Sep 16 17:10:27 2013NoneAttached File-=>Added error.dat, #29150
      Attached File-=>Added try.m, #29151

    Back to the top

    Powered by Savane 3.1-cleanup