Boost logo

Boost :

Subject: [boost] [serialization] Segfault after recent changes to trunk
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2010-06-18 18:30:13


Hey,

The recent changes to the serialization library on trunk broke our
application. Everything works fine up to V1.43, but on trunk we see a
"vector subscript out of range" error at basic_iarchive.cpp, line 437.

Here is the relevant code snippet:

    class_id_type new_cid = register_type(bpis_ptr->get_basic_serializer());
    int i = cid;
    cobject_id_vector[i].bpis_ptr = bpis_ptr; // <-- here

where in our case

    i == 0x0601
    cid == 0x0601
    newcid == 6
    cobject_id_vector.size() == 7
   
Is this a known problem? Anything we could do about this?

Regards Hartmut

---------------
Meet me at BoostCon
www.boostcon.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk