Might be indeed, there are other use cases with valgrind and protexec
and so on ..., utrace might be a good suggestion too except maybe a
need for an exception in pledge's side then.

On 13 November 2015 at 18:34, Ted Unangst <t...@tedunangst.com> wrote:
> David CARLIER wrote:
>> Hi all,
>>
>> I ve tried to discuss this point with Otto Moerbeek but he might be
>> very busy so I throw the topic here if you do not mind ...
>>
>> I have the habit to enable MALLOC_STATS but with the recent pledge
>> feature, it s now difficult to debug some pledged applications with
>> MALLOC_OPTIONS=D as, for malloc_dump, wpath and rpath are needed ...
>> and it is fore sure not wishable to enable those in those userland
>> apps.
>>
>> Is there a way, somehow, to succeed ? For the moment I ve slighty
>> modified malloc_dump to only write on stderr and then I redirect the
>> output myself.
>
> I would say the simplest is to disable the pledge() call in the program while
> debugging.

Reply via email to