This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug dynamic-link/21082] loader did not check result when allocating tlsblocks


https://sourceware.org/bugzilla/show_bug.cgi?id=21082

--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to ma.jiang from comment #2)
> (In reply to Florian Weimer from comment #1)
> > If the allocation fails, sbrk will crash because errno has not been set up
> > at this point.  There is really no good way to deal with this situation.
> Thanks for the reply. I did not notice that seterrno would lead to
> crash(segv), my bad... As to this problem, I think we still have many ways
> to solve it. IMO, the easiest plan is to use brk syscall directly instead of
> using __sbrk.

We currently cannot use INTERNAL_SYSCALL in generic code, so this is more
complicated than it looks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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