SIGSEGV g++-3/stl_algobase.h:355 i486-pc-linux-gnulibc1/2.95.1
Christian Jönsson FOA 72
chj@lin.foa.se
Wed Aug 18 05:49:00 GMT 1999
I have a "clean" up to date Red Hat Linux 4.2 system and just installed
gcc-2.95.1 in /usr/local etc. Trying to run a just compiled program yeilds
a segmentation violation and running gdb shows the following:
Program received signal SIGSEGV, Segmentation fault.
0x80d5bf8 in fill_n__H3ZPiZUiZi_X01X11RCX21_X01 (__first=0x8449000,
__n=2147483043, __value=@0xbfffd2f0)
at /usr/local/lib/gcc-lib/i486-pc-linux-gnulibc1/2.95.1/../../../../include/g++-3/stl_algobase.h:355
(gdb)
and the corresponding code sequence is this:
template <class _OutputIter, class _Size, class _Tp>
_OutputIter fill_n(_OutputIter __first, _Size __n, const _Tp& __value) {
for ( ; __n > 0; --__n, ++__first)
*__first = __value;
return __first;
}
where line 355 is the *__first = __value line.
Known, anything to do? Any more information I should supply?
Thanks for pointers.
Cheers,
/ChJ
More information about the Gcc-bugs
mailing list