> -----Original Message----- > From: [EMAIL PROTECTED] > Sent: Tue, 26 Jun 2007 18:57:44 +0300 > To: stdcxx-dev@incubator.apache.org > Subject: RE: status of thread safety tests > >> -----Original Message----- >> From: Mark Brown [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, June 26, 2007 5:06 PM >> To: stdcxx-dev@incubator.apache.org >> Subject: RE: status of thread safety tests >> >> 22.locale.num.put.mt gets a SIGSEGV on my system (Fedora 6) >> even with a single thread. Here's the output of gdb: > > The same trouble on MSVC. And I found the problem. > > struct Ios: std::ios { > } io; > > Here should be defined ctor invoking ios_base::init() according to > 27.4.2.7 p1: Ios () { this->init (0); } > > The same bug present in 22.locale.money.put.mt and > 22.locale.time.put.mt tests. > > Fixed thus: http://svn.apache.org/viewvc?view=rev&rev=550833
Hi Farid, This change appears to have cleared up the original issue. However, with multiple threads the test now sometimes crashes with the following error: terminate called after throwing an instance of 'std::runtime_error' what(): /home/mbrown/stdcxx/src/setlocale.cpp:130: __rw::__rw_setlocale::__rw_setlocale(const char*, int, int): bad locale name: "PY" The name of the locale varies and is sometimes garbage so it might be caused by some memory corruption. -- Mark > > I'm not sure if this patch resolves the STDCXX-450 issue. > > Farid. ____________________________________________________________ GET FREE 5GB ONLINE STORAGE - Safely store your documents, photos and music online! Visit http://www.inbox.com/storage to find out more!