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

Re: core dump with autoloading failure.



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