Linux ldconfig segfaults

Samuel J. Greear sjg at evilcode.net
Mon Aug 8 00:14:35 PDT 2011


On Sun, Aug 7, 2011 at 10:59 PM, Pierre Abbat <phma at phma.optus.nu> wrote:
> I just tried to run a Linux program on DragonFly. I got the following:
>
> -bash-4.1$ /usr/pkg/emul/linux/bin/bash
> ELF interpreter /lib/ld-linux.so.2 not found
> Abort trap: 6
>
> I then checked the man page and found that I need to run ldconfig. So I did
> and got this:
>
> # /compat/linux/sbin/ldconfig
> Segmentation fault (core dumped)
>
> kldstat shows that the Linux module is loaded:
>
> # kldstat
> Id Refs Address    Size     Name
>  1   17 0xc0100000 88a9d4   kernel
>  2    1 0xc098b000 26ce4    linux.ko
>  3    1 0xc09b2000 78d04    acpi.ko
>  4    1 0xc0a2b000 134cc    ahci.ko
>  5    1 0xc0a3f000 97cc     ehci.ko
>  6    2 0xc0a49000 b9f8     dm.ko
>  7    1 0xcc6ad000 a000     linprocfs.ko
>  8    1 0xcd050000 9000     i915.ko
>  9    1 0xcd059000 13000    drm.ko
> 10    1 0xcd440000 18000    dm_target_crypt.ko
> 11    1 0xd3a5d000 12000    ext2fs.ko
>
> So what's wrong? Here's my uname:
>
> DragonFly darner.ixazon.lan 2.11-DEVELOPMENT DragonFly
> v2.11.0.203.g0e5ac-DEVELOPMENT #2: Mon May 16 09:57:06 UTC 2011
> root at darner.ixazon.lan:/usr/obj/usr/src/sys/GENERIC_SMP  i386
>
> Pierre
> --
> lo ponse be lo mruli po'o cu ga'ezga roda lo ka dinko
>

Probably caused by a bug in linux ldconfig, possibly tickled by
something we do not implement or that we implement differently. The
easiest way to find out what is wrong is to debug it like any other
program and see why it crashed and/or what it was doing right before
it crashed.

Sam






More information about the Users mailing list