libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] Call to strdup breaks heap profilers


From: Arun Sharma
Subject: [Libunwind-devel] Call to strdup breaks heap profilers
Date: Thu, 26 Jun 2008 20:38:25 -0700

Hi Daniel,

Looks like your patch from Feb introduced a call to strdup:

http://git.kernel.org/?p=libs/libunwind/libunwind.git;a=commit;h=3842dac7333e42aa44531eda34ba55200b99ccf8

This violates the guarantee in include/mempool.h which states:

      o To ensure a stack can be unwound at any time in a
        multi-threaded process (e.g., even at a time when the normal
        malloc-lock is taken, possibly by the very thread that is
        being unwind).

Could you consider allocating memory statically for the path or if you must do it dynamically, use mempools?

 -Arun




reply via email to

[Prev in Thread] Current Thread [Next in Thread]