Subject: Re: Strange message from "xterm"
To: <>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 05/17/2004 21:35:02
On Mon, May 17, 2004 at 06:54:30AM +0000, Matthias Scheler wrote:
> Hello,
>
> I got this message after closing a XTerm window under NetBSD 2.0E today:
>
> xterm in malloc(): warning: recursive call.
> Error: Cannot perform malloc
>
> Because I cannot remember to have seen it before I wonder if that's a new
> diagnostic output from "libc". And what could cause it? A signal handler
> using a function which calls malloc()?
In a word 'yes' ... and one that has interrupted the malloc() code.
About the only thing you can safely do from a signal handler is
to set an entire global variable to a different value.
Any complex library functions are right out...
David
--
David Laight: david@l8s.co.uk