Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: core dump with autoloading failure.
- X-seq: zsh-workers 9279
 
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
 
- To: zsh-workers@xxxxxxxxxxxxxx
 
- Subject: Re: core dump with autoloading failure.
 
- Date: Sun, 09 Jan 2000 18:44:37 +0000
 
- In-reply-to: "Tanaka Akira"'s message of "10 Jan 2000 01:03:26 +0900."             <rsqu2knxmep.fsf@xxxxxxxxxxxxxxxxx> 
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
 
Tanaka Akira wrote:
> zsh dumps core as follows:
> 
> Z:akr@thorax% Src/zsh -f
> thorax% bindkey -e; autoload -U compinit; compinit -D 
> thorax% compdef _xxx xxx; autoload -U _xxx
> thorax% xxx 
> _xxx: _xxx: function definition file not found
> zsh: segmentation fault (core dumped)  Src/zsh -f
My guess is this.  Sven, are there are any more like this?
Index: Src/mem.c
===================================================================
RCS file: /home/pws/CVSROOT/projects/zsh/Src/mem.c,v
retrieving revision 1.3
diff -u -r1.3 mem.c
--- Src/mem.c	1999/12/21 15:18:28	1.3
+++ Src/mem.c	2000/01/09 18:11:45
@@ -181,7 +181,11 @@
     for (h = heaps; h; h = n) {
 	n = h->next;
 	DPUTS(h->sp, "BUG: old_heaps() with pushed heaps");
+#ifdef USE_MMAP
+	munmap((void *) h, sizeof(*h));
+#else
 	zfree(h, sizeof(*h));
+#endif
     }
     heaps = old;
     fheap = NULL;
-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author