Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Crash while testing a completion: trap handlers and malloc?



Bart Schaefer wrote:

> In the same shell where I'd been testing my patch from 7929, I was fooling
> with the _mailboxes updates I sent in 7932.  I typed "mutt -f <TAB>" and
> got a core dump with the following huge stack trace.  Note that the SIGALRM
> trap handler is being called (so it's a TMOUT thing) and further that it is
> being called during zalloc().  This is bad news, as the malloc() arena is
> not re-entrant in most implementations.

I think the library should take care of this, but maybe if we move the 
(|un)queue_signals() calls from our malloc down into zalloc() and friends?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author