[Iostreams] Problem with filtering_istream and gzip_decompressor with 64bit
Hi,
I am trying to use the iostream gzip filters, and have run into some problems using them with 64bit compilers. I am using OSX 10.6 and my code works just fine with apples gcc-4.2 compilers in both 32 and 64 bit mode. However, with gcc4.4 or gcc4.5 compilers, it runs only in 32bit mode and crashes in 64bit mode.
Has anyone run into this issue? Is it a problem with how I am using the iostream library? Here is the code to reproduce:
$ g++-mp-4.4 -m64 -g -O0 -o test_iostreams.4.4-64 test_iostreams_64.C -I/opt/local/include/boost/ -I/opt/local/include/ -L/opt/local/lib/ -lboost_iostreams-mt
If I run the 64bit executable I get this message (for the 32bit it just echo's the file correctly):
$ ./test_iostreams.4.4-64
test_iostreams.4.4-64(38367) malloc: *** error for object 0x100164dc0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
^CAbort trap
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include
participants (1)
-
peterbarnabus