public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* RFC: tunables failure indications...
@ 2019-12-05 22:44 DJ Delorie
  2019-12-06  8:33 ` Siddhesh Poyarekar
  0 siblings, 1 reply; 14+ messages in thread
From: DJ Delorie @ 2019-12-05 22:44 UTC (permalink / raw)
  To: libc-alpha


Re: https://sourceware.org/bugzilla/show_bug.cgi?id=25035
"sbrk() failure handled poorly in tunables_strdup"

The current failure mode for tunables is: if we can't allocate memory,
we delete the tunables env var and pretend it didn't exist, without
telling the user anything happened.

I think we should do better, but I don't know what.

IMHO tunables are "hints" but there should be *some* feedback when a
tunable can't be honored because of internal failures (vs tunables
that don't apply to the current arch, etc).

In the BZ noted above, where *sbrk* fails, I'm inclined to just
SIGSEGV because... well... *sbrk* just failed at the start of a
program.  Something has gone horribly wrong, even if the program
continues to run normally after that (it happens in our own testsuite
sometimes).

The helper functions in malloc return error codes for invalid values,
which the tunables harness completely ignores.  Not even a printf.

So... what is a reasonable thing for the user to expect, when a
tunable they specify cannot be honored?

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-12-16 22:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-05 22:44 RFC: tunables failure indications DJ Delorie
2019-12-06  8:33 ` Siddhesh Poyarekar
2019-12-10 16:26   ` Carlos O'Donell
2019-12-10 16:36     ` Siddhesh Poyarekar
2019-12-11 22:01       ` DJ Delorie
2019-12-12  3:50         ` Siddhesh Poyarekar
2019-12-12  4:03           ` DJ Delorie
2019-12-12  4:08             ` Siddhesh Poyarekar
2019-12-12 17:51               ` Carlos O'Donell
2019-12-13 18:48                 ` DJ Delorie
2019-12-13 20:14                   ` Carlos O'Donell
2019-12-13 20:36                     ` DJ Delorie
2019-12-13 20:41                       ` Carlos O'Donell
2019-12-16 22:16                         ` DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).