Steve Clamage wrote:
The cplus_demangle call is mt-safe, guarded by a mutex at the outer level.
There is no external state, so I don't see how asynchronous signals could cause 
a problem.
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Since the code uses a mutex, it cannot be async signal safe.

A program that calls cplus_demangle in both normal and
signal context can deadlock if a thread calling cplus_demangle
receives a signal (either sync or async) and then attempts
to call cplus_demangle from the signal handler; the mutex
is already held by the locking thread.

- Bart

--
Bart Smaalders                  Solaris Kernel Performance
[EMAIL PROTECTED]               http://blogs.sun.com/barts
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to