This is the mail archive of the mailing list for the libstdc++ project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: vector_capacity:test03() failing on mips-irix6

>Program received signal SIGSEGV, Segmentation fault.
>0x10010bb4 in __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > > std::fill_n<__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, unsigned, int>(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, unsigned, int const&) (__first=
>      {<iterator<std::random_access_iterator_tag,int,int,int*,int&>> = {<No data fields>}, _M_current = 0x1002c000},
>    __n=1073735691, __value=@0x7fff2e48) at bits/stl_algobase.h:539


  template<typename _OutputIter, typename _Size, typename _Tp>
    fill_n(_OutputIter __first, _Size __n, const _Tp& __value)
      // concept requirements

      for ( ; __n > 0; --__n, ++__first)
	*__first = __value; // <-------here
      return __first;

This is right after trying to resize a vector to vector.max_size(). I
suspect the allocation has failed but isn't being caught. I don't know
why this is, but it can be reproduced on xscale-elf crosses, in addition
to irix6.5.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]