Bug #1227

problem with pshistogram

Added by Marcelo 6 months ago. Updated 6 months ago.

Status:ClosedStart date:2018-03-27
Priority:NormalDue date:
Assignee:Paul% Done:

100%

Category:-
Target version:Candidate for next minor release
Affected version:6.x-svn Platform:Linux

Description

It works in gmt 5.4.3:

ver=5.4.3;gmtswitch  $ver;gmt pshistogram -i1 res.dat -R-6/6/0/10 -JX8c -W0.1 -Ggrey -Z1 -Ba2:'LC Postfit Residual [cm]':/a1nSeW -Vl --FORMAT_FLOAT_OUT=%.3f > histogram$ver.ps 2> histogram$ver.log

but fails with gmt 6.0.0_r19983
ver=6.0.0;gmtswitch  $ver;gmt pshistogram -i1 res.dat -R-6/6/0/10 -JX8c -W0.1 -Ggrey -Z1 -Ba2:'LC Postfit Residual [cm]':/a1nSeW -Vl --FORMAT_FLOAT_OUT=%.3f > histogram$ver.ps 2> histogram$ver.log

I get the message:
*** Error in `gmt': free(): invalid next size (normal): 0x000055c736fc60a0 ***
Aborted (core dumped)

See what I get in the compacted file.

pshistogram.tar.bz2 - res.dat, ps and log files (97.2 KB) Marcelo, 2018-03-27 10:22

History

#1 Updated by Paul 6 months ago

  • Status changed from New to Resolved
  • Assignee set to Paul
  • Target version set to Candidate for next minor release
  • % Done changed from 0 to 100

Thanks, got the bin index calculation wrong and boom. Fixed in r19984.

#2 Updated by Paul 6 months ago

  • Status changed from Resolved to Closed

Closed as fixed.

Also available in: Atom PDF