vassilisl / freebsd-linux_base-f20

Linux Fedora 20 FreeBSD ports - devel
4 stars 2 forks source link

FreeBSD ELF shared object #1

Open ghost opened 9 years ago

ghost commented 9 years ago

I went to try Half-Life game server, I'd like to share a few things about my experience.

root@localhost:/home/matchfiles # ./hlds_run -game cstrike +map de_dust -maxplayers 10 Auto-restarting the server on crash Segmentation fault (core dumped)

root@localhost:/home/matchfiles # ldd engine_i486.so ldd: engine_i486.so: not a FreeBSD ELF shared object root@localhost:/home/matchfiles # sysctl kern.elf32.fallback_brand kern.elf32.fallback_brand: 3 root@localhost:/home/matchfiles # sysctl compat.linux.osrelease compat.linux.osrelease: 3.15.0

Any suggestions? Thank you.

ghost commented 9 years ago

cc @vassilisl

root@localhost:~ # /compat/linux/bin/bash Segmentation fault (core dumped)

Hmm. Any help would be greatly appreciated.

vassilisl commented 9 years ago

Hey, Hmmm, I don't remember getting /compat/linux/bin/bash segfaulting. Can you provide some more info, sucha as which FreeBSD version are you trying this out? I've tested it on CURRENT. Make sure that you have the linux.ko loaded.

Cheers.

ghost commented 9 years ago

@vassilisl thank you for reply issue.

root@localhost:/etc # /compat/linux/bin/bash FATAL: kernel too old

root@localhost:/etc # sysctl compat.linux.osrelease compat.linux.osrelease: 2.6.16

root@localhost:/etc # sysctl compat.linux.osrelease=3.15.0 compat.linux.osrelease: 2.6.16 -> 3.15.0

root@localhost:/etc # /compat/linux/bin/bash Segmentation fault (core dumped) root@localhost:/etc

root@localhost:/etc # uname -a FreeBSD localhost 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 root@localhost:/etc #

root@localhost:/etc # kldload linux kldload: can't load linux: module already loaded or in kernel root@localhost:/etc #

root@localhost:/etc # kldstat Id Refs Address Size Name 1 22 0xffffffff80200000 1755658 kernel 2 1 0xffffffff81956000 15050 aio.ko 3 1 0xffffffff8196c000 30b0 cc_htcp.ko 4 1 0xffffffff81a11000 538a fdescfs.ko 5 1 0xffffffff81a17000 9d37 linprocfs.ko 6 1 0xffffffff81a21000 43bce linux.ko 7 1 0xffffffff81a65000 26c7 pflog.ko 8 1 0xffffffff81a68000 32339 pf.ko root@localhost:/etc #

/etc/fstab: /dev/da0p2 / ufs rw 1 1 /dev/da0p3 none swap sw 0 0 fdesc /dev/fd fdescfs rw 0 0 proc /proc procfs rw 0 0 linproc /compat/linux/proc linprocfs rw 0 0

vassilisl commented 9 years ago

I see. Thanks for all this information. I have been running this on FreeBSD CURRENT, lemul branch, so I don't know how exactly it would behave on FreeBSD 10.0. Would it be too much to ask you if you could try using that branch of FreeBSD instead of 10.1? In the meantime I'll try to reproduce this bash segfault on what I have.

ghost commented 9 years ago

The problem is when running FreeBSD 10.1 with f20 not tested under previous version FreeBSD 10.0 yet. If installation instruction available I'll try to make a fresh install.

fxlv commented 9 years ago

I'm wondering if you ever got this resolved?