Multiprocessor Issue
Andrew Pollard
andrewp@andypo.net
Fri Jun 14 09:40:00 GMT 2002
On Fri, Jun 14, 2002 at 03:12:30PM +0530, Ritesh Noronha wrote:
>> Hi,
>>
>> OPERATING SYSTEM : SunOS ultra2-solaris 5.8 Generic sun4u sparc
>> SUNW,Ultra-2
>> C++ COMPILER : gcc version 3.0.3[precomiled binary from
>> sunfreeware].
>> HARDWARE : Multiprocessor [2cpus]
>> THREADING : PTHREADS
>>
>> problem:
>> We have built an appilcation which run very smoothly on sun solaris
>> with a single cpu. when we run it on a multiprocessor machine it core
>> dumps.
>>
>> On a multiprocessor machine it core dumps regularly in libstdc++
>> allocator.....
>>
>> It works on a multiprocessor when we use the pbind utility to bind it
>> to a cpu.
Nathan Myers replied:
>Yes. It's fixed in gcc-3.0.4, IIRC. It was a bug in the bits/atomicity.h
>header file, where two functions that were supposed to share a lock
>instead each had its own lock.
It still may cause crashes. See libstdc++/5432 for details.
It has been fixed for gcc-3.1, but the patch never made it into the
gcc-3_0-branch.
Andrew.
--
Andrew Pollard, Brooks-PRI Automation | home: andrew@andypo.net
670 Eskdale Road, Winnersh Triangle, UK | work: Andrew.Pollard@brooks-pri.com
Tel/Fax:+44 (0)118 9215603 / 9215660 | http://www.andypo.net
More information about the Libstdc++
mailing list