Re: [Boost-bugs] [Boost C++ Libraries] #12913: Undefined behaviour in serialization library

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12913: Undefined behaviour in serialization library
From: F (fabrizio_at_[hidden])
Date: 2017-05-04 16:12:13


Conta de email desativada
Email account disabled

On 4 May 2017, at 13:12, Boost C++ Libraries via Boost-bugs <boost-bugs_at_[hidden]> wrote:

> #12913: Undefined behaviour in serialization library
> --------------------------------------+---------------------------
>  Reporter:  johnmaddock              |      Owner:  ramey
>      Type:  Bugs                     |     Status:  assigned
> Milestone:  To Be Determined         |  Component:  serialization
>   Version:  Boost Development Trunk  |   Severity:  Problem
> Resolution:                           |   Keywords:
> --------------------------------------+---------------------------
> Changes (by ramey):
>
> * status:  new => assigned
>
>
> Comment:
>
> "most of the failures look like issues with the tests"  and examples as
> well.
>
> Unfortunately, when making the tests and examples, I totally ignored the
> issue of object lifetime.  Actually it should be addressed in the
> documentation itself since de-serialization of a pointer creates a new
> object which may be without an owner.  It's odd that no one has complained
> about this.  I sometimes wonder if this causes problems for some people.
> In any case, it prevents me from running the "sanitizers" which I would
> have liked to be able to do.  Making alterations to support this would
> take a very large amount of time which is hard to justify for the
> serialization library these days.  I'm wondering when it will be replaced.
>
> This particular error is kind of interesting.  According to the message,
> the complaint is in trying to downcast an object of type
> xml_oarchive_impl<xml_oarchive> to an object of type xml_oarchive.  But
> I'm quite sure that xml_oarchive has xml_oarchive_impl<xml_oarchive> as a
> base class. So I can't really understand the message and I'm not really
> sure what to do about it - if anything.
>
> Thanks for pointing this out - I'll leave this open in case I stumble upon
> something which sheds light on it.
>
> --
> Ticket URL: <https://svn.boost.org/trac/boost/ticket/12913#comment:1>
> Boost C++ Libraries <http://www.boost.org/>
> Boost provides free peer-reviewed portable C++ source libraries.
> _______________________________________________
> Boost-bugs mailing list
> Boost-bugs_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-bugs

-- 
"Esta mensagem é enviada exclusivamente a seu destinatário e pode conter
informações confidenciais, protegidas por sigilo profissional. Sua
utilização desautorizada é ilegal e sujeita o infrator às penas da lei. Se
você a recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente,
esclarecendo o equívoco."


This archive was generated by hypermail 2.1.7 : 2017-05-04 16:22:09 UTC