2012/9/26 Liviu Nicoara <nikko...@hates.ms>: > On 09/26/12 05:49, Pavel Heimlich, a.k.a. hajma wrote: >> >> 2012/9/26 Liviu Nicoara <nikko...@hates.ms>: >>> >>> On 9/25/12 7:56 PM, Stefan Teleman (JIRA) wrote: >>>> >>>> >>>> >>>> [ >>>> >>>> https://issues.apache.org/jira/browse/STDCXX-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel >>>> ] >>> >>> >>> >>> Anybody around here, except Stefan, who has access to a SPARC V8 machine >>> updated to the specified kernel update or later, and who is willing to >>> run a >>> simple test program? It's a 5 minute job at most. >> >> >> Please point me to the test program. > > > Hi Pavel, > > I attached it. IIRC Solaris had both Solaris threads API and a POSIX threads > API on top of it. Could you please give it a run with MUTEX defined to both > mutex_t and pthread_mutex_t? Might need to tweak the includes.
Here it is, the define seems to make no difference. BTW I'm not sure about the bug description, was Solaris 10 ever supported on a sparcv8? I ran it on the crappiest machine I could find, but all that is sparcv9. Sun Blade 1000 - UltraSPARC-III+(sparcv9), running Solaris 10u9 bash-3.00# /opt/SUNWspro/bin/CC a.cpp bash-3.00# ./a.out 24 ffbffcd8 ffbffcf0 ffbffd08 ffbffd20 ffbffd38 ffbffd50 ffbffd68 ffbffd80 ffbffbe0 ffbffc00 ffbffc20 ffbffc40 ffbffc60 ffbffc80 ffbffca0 ffbffcc0 bash-3.00# /opt/SUNWspro/bin/CC -xarch=v8 ./a.cpp bash-3.00# ./a.out 24 ffbffcd8 ffbffcf0 ffbffd08 ffbffd20 ffbffd38 ffbffd50 ffbffd68 ffbffd80 ffbffbe0 ffbffc00 ffbffc20 ffbffc40 ffbffc60 ffbffc80 ffbffca0 ffbffcc0 bash-3.00# vi a.cpp (<--- pthread_mutex_t) bash-3.00# /opt/SUNWspro/bin/CC a.cpp bash-3.00# ./a.out 24 ffbffcd8 ffbffcf0 ffbffd08 ffbffd20 ffbffd38 ffbffd50 ffbffd68 ffbffd80 ffbffbe0 ffbffc00 ffbffc20 ffbffc40 ffbffc60 ffbffc80 ffbffca0 ffbffcc0 bash-3.00# /opt/SUNWspro/bin/CC -xarch=v8 ./a.cpp bash-3.00# ./a.out 24 ffbffcd8 ffbffcf0 ffbffd08 ffbffd20 ffbffd38 ffbffd50 ffbffd68 ffbffd80 ffbffbe0 ffbffc00 ffbffc20 ffbffc40 ffbffc60 ffbffc80 ffbffca0 ffbffcc0 HTH P. > > Thanks a bunch! > > Liviu >