Subject: dlopen in init functions
To: None <tech-toolchain@NetBSD.ORG>
From: Martin Husemann <martin@rumolt.teuto.de>
List: tech-toolchain
Date: 06/16/2000 17:41:36
I think we have a problem; TAYA-san found it when getting Mozilla to run
on NetBSD.
A very small testprogram he wrote can be found at
http://homepages.teuto.de/martin/downloads/dlopentest.tar.gz
This program creates a shared library in C++ with an initializer that
calls dlopen(). This call fails on -current i386/ELF.
On 1.4.2A the initializer is not called at all (but this maybe a
Makefile bug, haven't looked deeper).
On -current:
./bbb
dlopen: Undefined error: 0
aaa = 100
bbb
And on 1.4.2A:
./bbb
aaa = 0
bbb
I don't know about dlopen()'s expected behaviour, but this sure looks like
a bug to me.
Martin