zsh-workers
 help / color / mirror / code / Atom feed
* SEGV with dynamic loading + zle builtin
@ 1997-02-18 12:19 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 1997-02-18 12:19 UTC (permalink / raw)
  To: Zsh hackers list

% ./zsh -f Baaah
zsh: 22284 segmentation fault (core dumped)  ./zsh -f Baaah

while trying to print out the `file not found message'.  The problem
is that trashzle() is #defined to use trashzleptr() (which is making
the code rather confusing, by the way) and in the call to zerr() from
parseargs(), trashzleptr is not set since this happens in
init_bltinmods().

In my case this is happening because (as I explained last week) I need
to have zle built into the shell, otherwise other libraries can't
recognise symbols from it.  However, it's possible this occurs other
times zle is built-in, e.g. without dynamic loading.  It probably
doesn't occur at all before 3.1.1.

There are various ways to handle this but while the dynamic loading
code is still evolving it's not obvious to me which is the best.  For
now it would be safe to add an `if (trashzleptr)' line in zerr()
before the (apparent) call to trashzle().

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-02-18 12:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-18 12:19 SEGV with dynamic loading + zle builtin Peter Stephenson

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).