Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
whatis DYNAMIC_NAME_CLASH_OK
- X-seq: zsh-workers 7497
- From: jarausch@xxxxxxxxxxxxxxxxxxx
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: whatis DYNAMIC_NAME_CLASH_OK
- Date: Thu, 26 Aug 1999 13:55:52 +0200
- Cc: fletch@xxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Reply-to: jarausch@xxxxxxxxxxxxxxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author