[teqc] Re: teqc on MacOSX 10.3.6: malloc error

Lou Estey lou at unavco.org
Sat Dec 18 09:18:34 MST 2004


Gilles Celli wrote:

> We have a small problem concerning teqc on MacOSX 10.3.6.on a Dual G5 /2.5GHz.
> The teqc version is the one from the download page on UNAVCO's website.
> 
> We get a:
> "*** malloc[1033]: error for object 0x2004e0: Double free"
> 
> error when trying to convert hourly GPS files from a LEICA RS500 and 
> want to convert them to RINEX files.
> 
> In fact it works, it splices the files correctly to one RINEX file. Just 
> want to know what the malloc error is
> 
> Or maybe we are doing something wrong here.....
> 
> Regards,
> 
> Gilles Celli
> European Center for Geodynamics and Seismology [ECGS]
> 19, rue J. Welter, L-7256 Walferdange, Grand-Duchy of Luxembourg
> fon: (+352) 33.14.87-41  /\                fax: (+ 352) 33.14.87-88
> gilles.celli at ecgs.lu    __/  \  /\   ___ web: http://www.ecgs.lu
>                                                 \/  \/
> 
> Here is an example of a converted file done with a script:
> 
> [..snip: script is splicing hourly RINEX files ...
> Generating RINEX file: /Users/tvd/leica/2004/rinex/wlf20770.04o
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> ! Notice ! splicing RINEX files
> *** malloc[1033]: error for object 0x2004e0: Double free

Dear Gilles,

This is not user error; it is a teqc bug (of a sort) that
shows up occasionally, though I'm most aware of it with
Linux x86 and Windows compilations.  At the end of teqc,
there is a memory cleanup to free allocated memory.  On these
systems, depending on the run, there is sometimes a memory
fault or related error when doing one of the deallocations.
In your run, because teqc finished the splice and the daily
file is OK, I suspect this is the OSX way of informing us of
this problem.  (From the error message, it sounds like the
code way trying to free the same space a second time, though
I don't see how this would be possible given the way the code
is written.)  Since teqc finished the main task (splicing the
files in this case), just ignore the fault.

I'm considering a different method of memory cleanup which
might eliminate this occasional dealloc problem in the
effected compilations.

cheers,
--lou

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Louis H. Estey, Ph.D.              office:  [+001] 303-381-7456
UNAVCO, 6350 Nautilus Drive           FAX:  [+001] 303-381-7451
Boulder, CO  80301-5554            e-mail:  lou  unavco.org
      WWW:  http://www.unavco.org   http://jules.unavco.org

"If the universe is the answer, what is the question?"
                                                -- Leon Lederman
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


More information about the teqc mailing list