This is the mail archive of the libstdc++@gcc.gnu.org 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: [RFC] 12658_thread.cc randomly fails (on MP machines)


>I'm trying to understand more about this issue: as you may have
>noticed already, on multiprocessor machines the testcase randomly
>fails. This happens both for mainline and 3_4-branch.

I have seen some oddness. I didn't know if this was just something that
should be fixed in the existing testcase, via number of iterations or
whatever.

I cannot reproduce the fail here, or on machines I have access to.

>Backtraces on a 4-way x86_64 machine show that the problem seems
>*not* due to locale::locale() and locale::global(const locale&),
>which appear indeed fixed: the testcase stresses the MT-safety of
>the locale implementation *well* beyond what originally reported
>in libstdc++/12658.

Well, what does the backtrace say?

>If, less ambitiously (at least for now!) we want only MT-safety
>in dealing with the global locale, then probably we are already
>quite close but we badly need a different, much simpler, testcase
>than 12658_thread.

This is probably the place to start.

-benjamin


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