As far as I can understand from the sources, neither Helgrind nor DRD
support those semaphores. You can either try to intercept them
manually (see trunk/drd/drd_pthread_intercepts.c for an example), or
file a feature request for Bart Van Assche.

On Wed, Sep 2, 2009 at 5:57 PM, Freimann,
Mario<[email protected]> wrote:
> Dear list members,
>
> I have a multitheaded program which I want to analyse with recent Helgrind
> 3.5 for multithreading errors (e.g. race conditions) on RedHat Enterprise
> Linux 3 with gcc 3.2.3 (thread model POSIX). The application uses XSI
> semaphores
> (http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_07.html#tag_02_07) with
> functions like semget, semop and semctl. The threading itself is done via
> POSIX. The synchronisation between threads to access shared data is done via
> semget, etc. Is Helgrind able to analyze this program correctly? Or do I
> have to switch to POSIX semaphores, use DRD or something else?
>
>
> With kind regards,
>
> Mario Freimann
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Valgrind-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>
>



-- 
Alexander Potapenko
Software Engineer
Google Moscow

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to