Subject: emul.linux32 error: Inconsistency detected by ld.so
To: None <port-amd64@netbsd.org>
From: None <joel@carnat.net>
List: port-amd64
Date: 08/15/2006 22:47:47
Hi,

I have a NetBSD 4.0_BETA/amd64 running with meta-pkg/suse-10.0nb3
installed in /emul/linux and a working slackware (v 10.2, i386)
installation mounted on /emul/linux32. When I try to run the linux 32bits
apps, I get the error:
Inconsistency detected by ld.so: dl-minimal.c: 84: __libc_memalign:
Assertion `page != ((void *) -1)' failed!
If I untar the emulators/suse* packages (build for 4.0_BETA/i386), it
seems to work.

Here are the commands (suse64, suse32, slackware32):
# /emul/linux/bin/uname -a
Linux atheria.tumfatig.net 2.4.18 #0 Wed Feb 20 20:00:02 CET 2002 x86_64
x86_64 x86_64 GNU/Linux
# /emul/linux32/bin/uname -a
Linux atheria.tumfatig.net 2.4.18 #0 Wed Feb 20 20:00:02 CET 2002 x86_64
x86_64 x86_64 GNU/Linux
# /emul/linux32/bin/uname -a
Inconsistency detected by ld.so: dl-minimal.c: 84: __libc_memalign:
Assertion `page != ((void *) -1)' failed!

From the 4.0_BETA/i386 installation, I can run the slackware binaries.

Here's a few info about my kernel:
#  sysctl -a | grep linux
emul.linux.kern.ostype = Linux
emul.linux.kern.osrelease = 2.4.18
emul.linux.kern.osversion = #0 Wed Feb 20 20:00:02 CET 2002
emul.linux32.kern.ostype = Linux
emul.linux32.kern.osrelease = 2.4.18
emul.linux32.kern.osversion = #0 Wed Feb 20 20:00:02 CET 2002

# strings /netbsd | egrep 'COMPAT_|EXEC_'
_CFG_options \011COMPAT_15\011# compatibility with NetBSD 1.5,
_CFG_options \011COMPAT_16\011# NetBSD 1.6,
_CFG_options \011COMPAT_20\011# NetBSD 2.0,
_CFG_options \011COMPAT_30\011# NetBSD 3.0 compatibility.
_CFG_options \011COMPAT_43\011# and 4.3BSD
_CFG_options \011COMPAT_386BSD_MBRPART # recognize old partition ID
_CFG_options \011COMPAT_NETBSD32
_CFG_options \011COMPAT_LINUX
_CFG_options \011COMPAT_LINUX32\011# req. COMPAT_LINUX and COMPAT_NETBSD32
_CFG_options \011EXEC_ELF32
_CFG_options\011\011EXEC_AOUT
_CFG_options\011\011COMPAT_BSDPTY\011# /dev/[pt]ty?? ptys.
_CFG_options \011WSDISPLAY_COMPAT_PCVT\011\011# emulate some ioctls
_CFG_options \011WSDISPLAY_COMPAT_SYSCONS\011# emulate some ioctls
_CFG_options \011WSDISPLAY_COMPAT_USL\011\011# VT handling
_CFG_options \011WSDISPLAY_COMPAT_RAWKBD\011\011# can get raw scancodes
_CFG_#options VERIFIED_EXEC_FP_RMD160
_CFG_#options VERIFIED_EXEC_FP_SHA256
_CFG_#options VERIFIED_EXEC_FP_SHA384
_CFG_#options VERIFIED_EXEC_FP_SHA512
_CFG_#options VERIFIED_EXEC_FP_SHA1
_CFG_#options VERIFIED_EXEC_FP_MD5
_CFG_###> options \011EXEC_ELF64\011# exec ELF binaries
_CFG_###> options \011EXEC_SCRIPT\011# exec #! scripts


any ideas ?
TIA,
    Jo