Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85214 - glibc malloc check defaults
Summary: glibc malloc check defaults
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-14 06:13 UTC by rob holland (RETIRED)
Modified: 2005-05-09 17:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to warn but not abort (glibc-2.3.4-nomallocabort.patch,372 bytes, patch)
2005-03-14 06:16 UTC, rob holland (RETIRED)
Details | Diff
patch to glibc-2.3.4.20041102 (glibc-diff-for-az,550 bytes, patch)
2005-03-14 06:17 UTC, rob holland (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rob holland (RETIRED) gentoo-dev 2005-03-14 06:13:53 UTC
I think the current default for malloc sanity checking should be changed to warn but not abort. I think if the current code hits stable we'll be flooded with angry users when their apps crash. Its best that these things are logged so we can see them, but I don't think we should default to killing stuff.

I'll attach a patch to the ebuild to add some flags to toggle the change and that sets the default to warn-but-continue.
Comment 1 rob holland (RETIRED) gentoo-dev 2005-03-14 06:16:02 UTC
Created attachment 53419 [details, diff]
patch to warn but not abort
Comment 2 rob holland (RETIRED) gentoo-dev 2005-03-14 06:17:04 UTC
Created attachment 53420 [details, diff]
patch to glibc-2.3.4.20041102
Comment 3 SpanKY gentoo-dev 2005-03-14 08:51:46 UTC
angry users should shut up and complain to people who write buggy apps ;)
Comment 4 rob holland (RETIRED) gentoo-dev 2005-03-14 08:58:57 UTC
why is this any more true for heap overflows than stack overflows? we don't push ssp by default.
Comment 5 SpanKY gentoo-dev 2005-03-14 09:00:41 UTC
i didnt say adding the patch was a bad idea ;)

perhaps we make the malloc() warning more verbose in the default-no-abort state ?
Comment 6 rob holland (RETIRED) gentoo-dev 2005-03-14 09:09:46 UTC
I think it'd make sense to ask people to report a bug personally, give the bugs.gentoo.org url.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2005-03-15 00:31:48 UTC
Leave the default the way it is, and make the abort message in English that a user who doesn't code can understand.
Comment 8 Aaron Walker (RETIRED) gentoo-dev 2005-03-15 05:10:10 UTC
I have to agree with Spyderous.  Users are more likely to submit a bug if it aborts.  Otherwise they're likely to ignore it (didn't crash so it's not broken syndrome).

On a related note, I noticed that when glibc is built with USE=debug, it'll print the message and abort, but otherwise it does nothing.  Talking to several devs on irc, the behavior didn't used to be dependant on USE=debug.  Is this not the case anymore or should I file a bug?
Comment 9 rob holland (RETIRED) gentoo-dev 2005-03-15 05:23:38 UTC
the way I see it, if we change the error to be more verbose then _someone_ will tell us about it/ask in #gentoo and be asked to report it. if we make it abort, _everyone_ will tell us, and very loudly.

I just think this is a silly thing to push by default. As I keep asking, why is this different from SSP, which we don't force by default.
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2005-03-15 20:39:31 UTC
You have a point, Rob. But instead of switching this to be non-default, let's switch SSP to be default instead.
Comment 11 SpanKY gentoo-dev 2005-05-09 17:15:38 UTC
seems to be working OK as is