Boost logo

Boost Users :

Subject: Re: [Boost-users] Program options (1.43.0) problem on Mac OS 10.6: pointer being freed not allocated
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2010-06-02 01:48:26


Robert McLay wrote:

> I'm using boost 1.43.0. I have enclose a program which uses
> boost::program_options on a Mac OS 10.6 and when I run it, I get
> errors. I have compiled boost with g++ version 4.4.1 and version 4.5.0
> and I get the same errors. I have tried the version of boost (1.42.0)
> that comes from macports as well as downloaded version that I have build.
>
> clo(87082) malloc: *** error for object 0xa0136db0: pointer being freed
> was not allocated.
>
> The program is given below. I have run the same program with boost
> 1.43.0 under linux and I don't get any errors. It is also completely
> clean of any errors when run through valgrind. The program is an
> example showing problem I'm having. It has been extracted from a larger
> program. Am I correctly using the library
> or is there a problem with boost (and only on a Mac?)

Could you catch a backtrace at the point where error happens?

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net