boost.program_options gives ./first: free(): invalid pointer with g++ 4.0.3 and 4.1.0

In compiling and testing the 'first.cpp' program from the example
directory of the program_options directory, the program fails with the
message:
*** glibc detected *** ./first: free(): invalid pointer:
0x00000000005104e8 ***
I built g++ version 4.1.0 and received the same result.
The hardware is AMD opteron 64 bit, the OS is Linux fedora core 4.
I had upgraded the compiler earlier to 4.0.3, and all other
compiles/execution work fine and also tried 4.1.0 gcc. Nonetheless, I
cannot shake the notion that this might be related to the compiler.
Are there any ideas regarding what I might try next?
Thanks
--
William Lederer

William Lederer wrote:
In compiling and testing the 'first.cpp' program from the example directory of the program_options directory, the program fails with the message:
*** glibc detected *** ./first: free(): invalid pointer: 0x00000000005104e8 ***
I built g++ version 4.1.0 and received the same result.
The hardware is AMD opteron 64 bit, the OS is Linux fedora core 4.
I had upgraded the compiler earlier to 4.0.3, and all other compiles/execution work fine and also tried 4.1.0 gcc. Nonetheless, I cannot shake the notion that this might be related to the compiler.
Are there any ideas regarding what I might try next?
Well, try on 32-bit box ;-) You can also run the program under valgrind, that will be more useful in spotting the problem then glibc. - Volodya
participants (2)
-
Vladimir Prus
-
William Lederer