This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: Stack overflow in dwarf_getsrclines
- From: Karel Klic <kklic at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 13 Jun 2011 15:20:23 +0200
- Subject: Re: Stack overflow in dwarf_getsrclines
Ulrich Drepper <drepper@gmail.com> writes:
> On Thu, Jun 2, 2011 at 09:08, Karel Klíč <kklic@redhat.com> wrote:
>> One could increase the stack size limit permanently on a machine, but it
>> doesn't seem to be the right solution
>
> Of course it is. Just because your use of the code everyone is
> supposed to suffer from the slower speed that using malloc entails?
Point taken. I see that elfutils is so low-level that its speed matters
more than functions working out of the box for a wide range of inputs.
I have solved the issue by avoiding the dwarf_getsrcfiles call.
Thanks,
Karel