Date: Wed, 09 Oct 1996 21:04:19 -0700 From: John Polstra <jdp@polstra.com> To: Jeffrey Hsu <hsu@freefall.freebsd.org> Cc: current@freefall.freebsd.org, max@wide.ad.jp Message-ID: <199610100404.VAA01047@austin.polstra.com>
next in thread | raw e-mail | index | archive | help
Thanks for the test program. I found the problem in the dynamic linker.
It's this new code in dlsym():
static void *
__dlsym(fd, sym)
void *fd;
char *sym;
{
struct so_map *smp = (struct so_map *)fd, *src_map = NULL;
struct nzlist *np;
long addr;
/*
* Restrict search to passed map if dlopen()ed.
*/
if (LM_PRIVATE(smp)->spd_flags & RTLD_DL)
src_map = smp;
The code doesn't take into account the fact that "smp" can be NULL. I
will commit a fix ASAP.
This could also (hopefully) be the cause of the core dumps that Masafumi
reported from running kaffe.
John
--
John Polstra jdp@polstra.com
John D. Polstra & Co., Inc. Seattle, Washington USA
"Self-knowledge is always bad news." -- John Barth
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610100404.VAA01047>
