|
From: Tom H. <th...@cy...> - 2004-12-13 13:33:53
|
In message <110...@li...te>
David Cluytens <Dav...@sp...> wrote:
> How do i valgrind apps that use semaphores in shared memory.
>
> pshared = 1;
>
> ==12503== sem_init: unsupported pshared value
> ==12503== at 0x1BC95AD3: pthread_error (vg_libpthread.c:380)
> ==12503== by 0x1BC9BCD2: sem_init (vg_libpthread.c:2739)
> ==12503== by 0x804F79F: initForks (forks.c:224)
> ==12503== by 0x804E419: initdaemon (daemon.c:331)
You don't at the moment. Does NPTL support it then? I know the manual
page says that LinuxThreads doesn't but it doesn't comment on whether
or NPTL has added support for it.
The problem valgrind has it that it would have no way of knowing when
the other process had written to it so it wouldn't know if it was
valid or not.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|