libunwind-devel
[Top][All Lists]
Advanced

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

Re: [Libunwind-devel] [PATCH] Remedy stack overflow


From: Bob Bell
Subject: Re: [Libunwind-devel] [PATCH] Remedy stack overflow
Date: Mon, 1 Dec 2008 15:56:56 -0500
User-agent: Mutt/1.5.11

On Mon, Dec 01, 2008 at 12:48:35PM -0800, Arun Sharma wrote:
On Mon, Dec 1, 2008 at 12:43 PM, Bob Bell <address@hidden>wrote:
> The systems where I use libunwind have relatively small stacks.  Parts
> of libunwind put PATH_MAX on the stack, sometimes more than once.  This
> can lead to stack overflow, at which point my applications die without
> *ANY* indication of why they died.
>
> I'm using the patch below.  It converts the big stack allocations I've
> found into mallocs.  It remedies the problems I've been seeing, at least
> for me.

Please do not introduce mallocs in libunwind. It makes libunwind unusable as
a heap profiler.
Does mempool_alloc() work for you?

I almost added a disclaimer about not knowing if malloc() was
"permitted", but didn't.  I will attempt to use mempool_alloc() instead
and report back my results.

--
Bob Bell




reply via email to

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