From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 839 invoked by alias); 5 Aug 2014 16:28:56 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19011 Received: (qmail 16025 invoked from network); 5 Aug 2014 16:28:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140805092845.ZM28111@torch.brasslantern.com> Date: Tue, 05 Aug 2014 09:28:45 -0700 In-reply-to: Comments: In reply to Marc Cornella "autoloaded colors() crashes with out of memory error" (Aug 4, 11:22pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Marc Cornella , zsh-users@zsh.org Subject: Re: autoloaded colors() crashes with out of memory error MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Aug 4, 11:22pm, Marc Cornella wrote: } } $ autoload -t colors } $ which colors } colors () { } # undefined } # traced } builtin autoload -Xt } } } $ colors } colors:3: fatal error: out of memory } Connection to server closed. The expression print -l -- ${^fpath}/colors(|.zwc)(N) should find the source from which colors is being autoloaded, unless there is a zwc "digest file" containing multiple function definitions. Look at for zwc in ${^fpath}/*.zwc(N) do print -- $zwc zcompile -t $zwc done to see if there might be any such. Zsh tries to detect when a .zwc file is from a different zsh version and avoid loading it, but there may be cases where that's failing.