Address 0xc00a9553 out of bounds inside stl::vector class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • e2point@yahoo.com

    Address 0xc00a9553 out of bounds inside stl::vector class

    hi,
    i got a program that is suppose to run 24x7x365. However after
    functioning for around 15 minutes, it crashes due to a segmentation
    fault. program is written in c++ and runs in RH Linux 4. When
    inspected one of the parameters of the crashing frame, i get the
    following output.

    NOTE : c1 is a std::vector

    (gdb) pvector c1
    elem[0]: $1 = {
    static npos = 4294967295,
    _M_dataplus = {
    <std::allocator <char>= {
    <__gnu_cxx::new _allocator<char >= {<No data fields>}, <No data
    fields>},
    members of
    std::basic_stri ng<char,std::ch ar_traits<char> ,std::allocator <char>
    >::_Alloc_hider :
    _M_p = 0xc00a9553 <Address 0xc00a9553 out of bounds>
    }
    }

    ...... and more elements like this ....

    according to this out put, _M_p member is not accessible because
    address 0xc00a9553 is out of bounds, and the only reason i can think
    of is a memory corruption. Is there any other reason for this to
    happen.




Working...