Multi-threaded Applications Crash
Dima Volodin
dvv@dvv.ru
Wed Mar 24 14:53:00 GMT 1999
"Pyle, Mike" wrote:
> We're running into some problems using egcs 1.1.2 with some multi-threaded
> applications crashing in the C runtime library (specifically inside of
> vsprintf and sprintf) (For those that care these are a few of the test
> applications for the ACE framework). This happens with both 1.1.1 and 1.1.2
> on a dual processor Sparc Ultra-2 running Solaris 2.6. I don't know that
> this is a problem with the compiler but I'm checking all avenues (these same
> applications run fine compiled w/1.1.1 on a single processor Intel box
> running Solaris 2.6). I've looked around but didn't find mention of specific
> options required when compiling for multi-threaded apps.
>
> Is there such a flag?
On Sparc, -pthreads takes care of it all. On other Solaris platforms, I'd like
to see this flag incorporated into the mainstream distribution. And, of course,
_POSIX_PTHREAD_SEMANTICS should be there too.
Dima
More information about the Gcc
mailing list