This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
RE: weirdo problem: segfault in locale::_Impl
- To: "libstdc++" <libstdc++ at sourceware dot cygnus dot com>
- Subject: RE: weirdo problem: segfault in locale::_Impl
- From: "Rob Taylor" <robt at flyingpig dot com>
- Date: Thu, 15 Jun 2000 16:48:08 +0100
I discovered the problem - there was an error in one of my static ctors. However
the error did manifest itself in a *very* odd way - it only became apparent that
the system had SIG'd itself after configuring libstdc++ with --enable-debug!
Rob
> this must be some configuration problem I'm having here, but I cant figure out
> what's happeing at all..
>
> the program I'm compiling is
>
> #include <iostream>
> #include <stdlib.h>
>
> int main(int argc, char *argv[])
> {
> std::cout << "Hello World\n" << std::endl;
> return 1;
> }
>
> with
> g++ main.c -o main
> (doent get more simple a case, huh?!)
>
> and i get a segfault in locale::_Impl::facet::_M_install_facet(const
> locale::id
> *__idp, facet *__fp)
> due to __index into (*_M_facets) being out of range. __index =
> ++locale::id::_S_highwater.
> anyone got any clue what I've done to break things so badly??!
>