Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 May 2002 23:12:18 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Marcel Moolenaar <marcel@xcllnt.net>
Cc:        current@FreeBSD.ORG
Subject:   Re: Keywords: pre-GCC3 tcsh coredump free/malloc reentrancy signal
Message-ID:  <3CDF5942.7E9BF47E@mindspring.com>
References:  <20020512212236.GB20876@dhcp01.pn.xcllnt.net> <3858.1021238862@critter.freebsd.dk> <20020512222048.GB21019@dhcp01.pn.xcllnt.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Marcel Moolenaar wrote:
> On Sun, May 12, 2002 at 11:27:42PM +0200, Poul-Henning Kamp wrote:
> > It is not legal to recursively call malloc/free/realloc, and therefore
> > you should either protect all calls to malloc/free/realloc by blocking
> > signals or better: not call them in signal handlers.
> 
> Ok, thanks. I guess we have a genuine tcsh(1) bug here.
> 
> Who's maintaining tcsh? Can he/she suggest what to do or otherwise
> take it from here?

The Single UNIX Specification Standard and POSIX both explicitly state
that it is not safe to call memory management functions from signal
handlers.


-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3CDF5942.7E9BF47E>