Menu

#2115 malloc error for object: pointer being freed was not allocated

None
closed-fixed
nobody
2019-05-21
2019-01-11
No

gnuplot crashes with a malloc error on script load/calls. Works as expected for me under 5.2 patchlevel 4

Steps to reproduce:

> touch foo.gp
> echo "load 'foo.gp'" > bar.gp
> gnuplot -d -c 'bar.gp'
# all OK
gnuplot -d -c 'bar.gp' blah
gnuplot(37000,0x10cbec5c0) malloc: *** error for object 0x7fb340733260: pointer being freed was not allocated
gnuplot(37000,0x10cbec5c0) malloc: *** set a breakpoint in malloc_error_break to debug
Abort trap: 6
>
> gnuplot --version
gnuplot 5.2 patchlevel 5

Obtained on MacOs 10.14.2 via Macports

Related

Bugs: #2129

Discussion

  • Mike Tegtmeyer

    Mike Tegtmeyer - 2019-01-11

    ...Didn't realize patchlevel 6 was released. Confirmed crash on default build of 5.2 patchevel 6 also

     
  • Ethan Merritt

    Ethan Merritt - 2019-01-13
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2019-01-13

    Fixed now for 5.2 and 5.3
    Thanks

     
  • Alain Billoire

    Alain Billoire - 2019-04-09

    The problem is still there with gnuplot 5.2 patchlevel 6 on OSX 10.13.6.
    I have a makefile with many calls to gnuplot.
    make crashes at some point with this error.
    I can make again and it will crash later in the makefile.
    After a coupld of makes the makefile is done.

     
    • Ethan Merritt

      Ethan Merritt - 2019-04-09

      Yes. It's marked "fixed - pending" because the fix has not yet appeared in a release version. It is fixed in the source. The fixed source will be used in preparing release 5.2.7

       
  • Ethan Merritt

    Ethan Merritt - 2019-05-21
    • Status: pending-fixed --> closed-fixed
     

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.