zsh-workers
 help / color / mirror / code / Atom feed
From: jarausch@igpm.rwth-aachen.de
To: zsh-workers@sunsite.auc.dk
Cc: fletch@phydeaux.org
Subject: whatis DYNAMIC_NAME_CLASH_OK
Date: Thu, 26 Aug 1999 13:55:52 +0200	[thread overview]
Message-ID: <199908261155.NAA65383@numa1.igpm.rwth-aachen.de> (raw)

Hi,

I've just debugged a segment fault, when trying to load
Mike Fletcher's zperl module.

I traced it down to 
#0  module_func (m=0x100da3a8, name=0x100ad0f8 "setup_", 
    name_s=0x100ad100 "setup_%s") at module.c:468
#1  0x1005746c in setup_module (m=0x100da3a8) at module.c:482



Now in  'module_func) (module.c:452)

s= m->nam  returning  "zperl"

since configure defined DYNAMIC_NAME_CLASH_OK on my IRIX 6.5
it directly calls
fn = (Module_func) dlsym(m->handle, name);
where name = 'setup_'
Obviously that fails (since the correct symbol is  setup_zperl)
and the success of dlsym is not checked
we run into nirwana.

1.) What's the heck with DYNAMIC_NAME_CLASH_OK ?
2.) At least IRIX 6.5 obviously needs  #undef DYNAMIC_NAME_CLASH_OK
3.) checking the success of  dlsym and an error abort
    would be nicer than a segment fault, which was hard to be traced
    down

Thanks for your comments,
Helmut.

-- 
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany


             reply	other threads:[~1999-08-26 11:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-26 11:55 jarausch [this message]
1999-08-26 12:22 ` Zefram
1999-08-26 12:26   ` jarausch

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=199908261155.NAA65383@numa1.igpm.rwth-aachen.de \
    --to=jarausch@igpm.rwth-aachen.de \
    --cc=fletch@phydeaux.org \
    --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).