Multiprocessor Issue

Nathan Myers ncm-nospam@cantrip.org
Fri Jun 14 08:35: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.

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.

Nathan Myers
ncm at cantrip dot org



More information about the Libstdc++ mailing list