Date: Thu, 19 Feb 2004 21:35:58 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: kientzle@acm.org Subject: Re: standard error handling for malloc() broken for user root and group wheel Message-ID: <20040219211350.H1230@gamplex.bde.org> In-Reply-To: <24950.1077179049@critter.freebsd.dk> References: <24950.1077179049@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 19 Feb 2004, Poul-Henning Kamp wrote: [The problem turned out to be mainly controlling both undefined behaviour and standard behaviour with the same flag.] > Think if the 'A' option as userland SIGSEGV. (peter@ actually suggested > that I make it kill(getpid(), SIGSEGV) before calling abort in order > to let a process install a handler for it. Programs can already catch SIGABRT, and they probably need to be familiar with malloc's internals to trap its errors sort of safely, so it is reasonable to expect them to know what to trap. > I'm currently testing this patch: This would fix the original problem and some others. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040219211350.H1230>