[Bug dynamic-link/21082] loader did not check result when allocating tlsblocks
fweimer at redhat dot com
sourceware-bugzilla@sourceware.org
Thu Jan 26 11:18:00 GMT 2017
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.
More information about the Glibc-bugs
mailing list