This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]