Boost logo

Boost Users :

Subject: Re: [Boost-users] [serialization] simple binary archive problem
From: Thomas Suckow (thomas.suckow_at_[hidden])
Date: 2010-09-08 12:26:07


Robert, your computer clock is an hour fast.
You might also run a memtest for that gcc bug.

On 09/08/2010 10:06 AM, Robert Ramey wrote:
> Paul Graphov wrote:
>
>> Hello Boost users!
>>
>> I've upgraded to boost-1.44 and got a problem with binary
>> serialization archives.
>>
>> This code sample
>> http://pastebin.com/Uv465sGt
>>
>> worked well with 1.43 but doesn't work with 1.44
>>
>> This is a program that creates a struct, serializes it, deserealizes
>> back and compares,
>> archive file name should be supplied as command line parameter.
>>
>> After switching from binary_*archive to text_*archive it works well.
>>
>> With binary_*archive it fails with
>>
>> terminate called after throwing an instance of 'std::bad_alloc'
>>
>> Stack trace is quite huge.
>>
>> p.s.
>> [druid_at_druid-desktop tmp]$ uname -a
>> Linux druid-desktop 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20
>> 14:21:58 UTC 2010 x86_64 GNU/Linux
>> [druid_at_druid-desktop tmp]$ gcc --version
>> gcc (Ubuntu/Linaro 4.4.4-13ubuntu2) 4.4.5 20100902 (prerelease)
>>
> I just built and ran this on my msvc compiler and windows system. So
> I don't know what to do about this.
>
> As an aside. I"ve got ubuntu/linux installed which I'm using for
> some stuff unrelated to boost. I don't have boost loaded on it. I've
> having problems with gcc 4.3.2 installed on it. (Ubuntu bug 629092)
> So there might be something there. I'm not very confident about it.
>
> Robert Ramey
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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