Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization] Segmentation fault in split load
From: Aditya Gadre (agadre_at_[hidden])
Date: 2011-07-31 13:14:12


Enrico,

Thanks for your help. Indeed this problem was caused by an uninitialized
bool.

- Aditya

On 07/29/2011 02:50 AM, Enrico Carrara wrote:
> My 2c: Is the bool member correctly initialized? Something similar
> happened to me some times ago when saving an unitialized bool value
> and then reloading.
> HTH,
> Enrico
>
> On Fri, Jul 29, 2011 at 6:54 AM, Aditya Gadre <agadre_at_[hidden]
> <mailto:agadre_at_[hidden]>> wrote:
>
> Hi,
> I am using Boost::Serialization to save and load a custom class
> using binary archive. I have split save and load functions as I
> need to do some initialization during loading process. However, I
> am getting a segmentation fault while loading and I am not very
> sure of the reason. The segmentation fault occurs while loading a
> boolean. I would appreciate any help in this regard. I have
> attached a full back trace and also the header file for the custom
> class.
> Thanks,
> - Aditya
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden] <mailto:Boost-users_at_[hidden]>
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>
>
>
> _______________________________________________
> 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