zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: core dump with autoloading failure.
Date: Mon, 10 Jan 2000 10:14:55 +0100 (MET)	[thread overview]
Message-ID: <200001100914.KAA25275@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Sun, 09 Jan 2000 18:44:37 +0000


Peter Stephenson wrote:

> 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?

Dunno how I overlooked that one.

I found another problem in hrealloc() at the weekend.

As far as I can see by looking through the code this should be ok now.

Bye
 Sven

diff -ru ../z.old/Src/mem.c Src/mem.c
--- ../z.old/Src/mem.c	Mon Jan 10 10:07:45 2000
+++ Src/mem.c	Mon Jan 10 10:08:39 2000
@@ -441,6 +441,7 @@
 #endif
 	    return NULL;
 	}
+#ifndef USE_MMAP
 	if (old > HEAP_ARENA_SIZE || new > HEAP_ARENA_SIZE) {
 	    size_t n = HEAP_ARENA_SIZE > new ? HEAPSIZE : new + sizeof(*h);
 
@@ -451,6 +452,7 @@
 	}
 	h->used = new;
 	return arena(h);
+#endif
     }
     DPUTS(h->used > HEAP_ARENA_SIZE, "BUG: hrealloc at invalid address");
     if (h->used + (new - old) <= HEAP_ARENA_SIZE) {

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~2000-01-10  9:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-10  9:14 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-01-09 16:03 Tanaka Akira
2000-01-09 18:44 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200001100914.KAA25275@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).