[ace-users] ACE_Sempahore problem

Johnny Willemsen jwillemsen at remedy.nl
Thu Sep 27 13:08:11 CDT 2007


Hi,

Can someone extend the ACE semaphore test under ACE_wrappers/tests to
reproduce this bug? It would be the best if the test just outputs an
error, and if this bug is resolved it just runs perfect. We don't want to
kill processes as part of the test suite.

Regards,

Johnny Willemsen

> Hi,
>
> Thanks for using the PRF form. This seems the problem that Abdul reported
> earlier. As workaround edit include/makeinclude/platform_linux_common.GNU
> and comment out the next line:
>     CPPFLAGS += -DACE_HAS_LINUX_NPTL
>
>
> Can you file this in bugzilla so that it doesn't get lost (see
> )http://deuce.doc.wustl.edu/bugzilla/index.cgi)
>
> Regards,
>
> Johnny Willemsen
> Remedy IT
> Postbus 101
> 2650 AC  Berkel en Rodenrijs
> The Netherlands
> www.theaceorb.nl / www.remedy.nl
>
> *** Integrated compile and test statistics see
> http://scoreboard.theaceorb.nl <http://scoreboard.theaceorb.nl/>  ***
> *** Commercial service and support for ACE/TAO/CIAO             ***
> *** See http://www.theaceorb.nl/en/support.html                 ***
>
>
>   _____
>
> From: ace-users-bounces at cse.wustl.edu
> [mailto:ace-users-bounces at cse.wustl.edu] On Behalf Of Julián Lastiri
> Sent: Thursday, September 27, 2007 6:00 PM
> To: ace-users at cse.wustl.edu
> Subject: [ace-users] ACE_Sempahore problem
>
>
>
>     ACE VERSION: 5.6.1
>
>     HOST MACHINE and OPERATING SYSTEM:
>
> Intel X86 32bits. Ubuntu 7.04, kernel 2.6.20-16-generic #2 SMP Sun Sep 23
> 19:50:39 UTC 2007 i686 GNU/Linux
>
>     TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
>     COMPILER NAME AND VERSION (AND PATCHLEVEL):
>
> Same as HOST
>
>     THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
>     specific file, simply state which one]:
>
> config.h
> #define ACE_HAS_TIMED_MESSAGE_BLOCKS
> #include "ace/config-linux.h"
>
>     THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
>     use a link to a platform-specific file, simply state which one
>     (unless this isn't used in this case, e.g., with Microsoft Visual
>     C++)]:
>
> $ACE_ROOT/include/makeinclude/platform_macros.GNU
> include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
>
>     CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
>     (used by MPC when you generate your own makefiles):
>
>     AREA/CLASS/EXAMPLE AFFECTED:
> [What example failed?  What module failed to compile?]
>
>     DOES THE PROBLEM AFFECT:
>         COMPILATION?
> NO
>         LINKING?
> NO
>         EXECUTION?
> YES
>
>     SYNOPSIS:
> ACE_Semaphore acquire with initial count=0 doesn't block
>
>     DESCRIPTION:
> I'm using ACE_Semaphore initialized with count=0 and when i call acquire
> it
> doesn't block
>
>
>     REPEAT BY:
>
> test.cpp
> #include <ace/Semaphore.h>
> #include <ace/Log_Msg.h>
> int main(){
>         ACE_Semaphore semaphore( 0 ) ;
>         semaphore.acquire() ;
>         ACE_DEBUG (( LM_DEBUG, "BUG !\n" )) ;
>         return 0 ;
> }
>
> compiled
> g++ test.cpp -o test -lACE
>
> this example works fine on ACE 5.5.10 with same config.h and
> platform_macros.GNU
>
>     SAMPLE FIX/WORKAROUND:
>
> g++ test.cpp -D ACE_HAS_POSIX_SEM -o test -lACE
>
>
>
> _______________________________________________
> ace-users mailing list
> ace-users at mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/ace-users
>




More information about the Ace-users mailing list