# make installworld DESTDIR=/mnt
# make installkernel DESTDIR=/mnt
# mergemaster -D /mnt
FreeBSD 8.1-STABLE FreeBSD 8.1-STABLE #0 r215039: Tue Nov 9 19:22:18 CET 2010 toor@:/usr/obj/usr/src/sys/KERNEL i386
7 2 0xcc8f9000 b000 ibcs2.ko
8 1 0xcc866000 3000 ibcs2_coff.ko
> file ./*
./doscopy: MS Windows COFF Intel 80386 object file
./isis: MS Windows COFF Intel 80386 object file
doscopy: 80386 COFF executable not stripped
isis: 80386 COFF executable not stripped
doscopy: MS Windows COFF Intel 80386 object file
isis: MS Windows COFF Intel 80386 object file
doscopy: 80386 COFF executable not stripped
isis: 80386 COFF executable not stripped
$ kldstat
Id Refs Address Size Name
1 31 0xc0400000 bd8a7c kernel
2 1 0xc0fd9000 c108 ahci.ko
3 1 0xc5b3c000 8000 linprocfs.ko
4 1 0xc5b44000 26000 linux.ko
5 2 0xc5cd8000 b000 ibcs2.ko
6 1 0xc5ce7000 3000 ibcs2_coff.ko
7 1 0xcb6c5000 68000 radeon.ko
8 1 0xcb628000 14000 drm.ko
$ truss ./isis
truss: execution type IBCS2 COFF is not supported -- using FreeBSD a.out: Unknown error: 0
SIGNAL 11 (SIGSEGV)
process exit, rval = 0
$ kldstat
Id Refs Address Size Name
1 8 0xc0400000 b6e060 kernel
3 2 0xcde40000 b000 ibcs2.ko
4 1 0xcc718000 3000 ibcs2_coff.ko
$ truss ./isis
truss: execution type IBCS2 COFF is not supported -- using FreeBSD a.out: Unknown error: 0
SIGNAL 11 (SIGSEGV)
process exit, rval = 0
$ kldstat
Id Refs Address Size Name
1 8 0xc0400000 8b3ea0 kernel
2 1 0xc0cb4000 64934 acpi.ko
3 2 0xc8de1000 a000 ibcs2.ko
4 1 0xc676a000 3000 ibcs2_coff.ko
$ truss ./isis
truss: execution type IBCS2 COFF is not supported -- using FreeBSD a.out: Unknown error: 0
truss: execution type IBCS2 COFF is not supported -- using FreeBSD a.out: Invalid argument
old.sigprocmask(0x4,0x5059e) = 0 (0x0)
old.sigprocmask(0x7,0x5059e) = 0 (0x0)
old.sigprocmask(0xb,0x5059e) = 0 (0x0)
old.sigprocmask(0xa,0x5059e) = 0 (0x0)
old.sigprocmask(0x8,0x5068e) = 0 (0x0)
old.sigprocmask(0x3,0x50616) = 0 (0x0)
old.sigprocmask(0x2,0x5065a) = 0 (0x0)
old.getkerninfo(0x3,0x0) = -1 (0xffffffff)
break(0x40ddcc) = 0 (0x0)
sendmsg(0x0,0xbfbfe728) = 0 (0x0)
sendmsg(0x0,0xbfbfe6ec) = 0 (0x0)
sendmsg(0x1,0xbfbfe728) = 0 (0x0)
sendmsg(0x1,0xbfbfe6ec) = 0 (0x0)
fork() = 40132 (0x9cc4)
old.sigprocmask(0x2,0x1) = 329306 (0x5065a)
old.sigprocmask(0x3,0x1) = 329238 (0x50616)
wait4(0xbfbfe4a4,0x2d,0xbfbfe509) = 40132 (0x9cc4)
old.sigprocmask(0x2,0x5065a) = 1 (0x1)
old.sigprocmask(0x3,0x50616) = 1 (0x1)
open("SYSPAR.PAR",O_RDWR,0666) ERR#2 'No such file or directory'
open("SYSPAR.PAR",O_RDONLY,0666) ERR#2 'No such file or directory'
open("ISISUC.TAB",O_RDWR,0666) ERR#2 'No such file or directory'
open("ISISUC.TAB",O_RDONLY,0666) ERR#2 'No such file or directory'
write(2,"\n",1) = 1 (0x1)
pascal: Can not open file
write(2,"pascal: Can not open file\n",26) = 26 (0x1a)
file: ISISUC.TAB
write(2," file: ISISUC.TAB\n",25) = 25 (0x19)
write(1,"\^[=\^[[3v\^[[0q\n",11) = 11 (0xb)
Error occurred at 0002CF64 line 301 in procedure sysinit
write(1,"Error occurred at 0002CF64 line "...,57) = 57 (0x39)
Last called from 00000659 line 195 in program isismain
write(1,"Last called from 00000659 line 1"...,55) = 55 (0x37)
Last called from 000000ED
write(1,"Last called from 000000ED\n",26) = 26 (0x1a)
exit(0x1)
process exit, rval = 256
parkrow4# uname -a
FreeBSD parkrow4.blank.blank 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
parkrow4# kldstat
Id Refs Address Size Name
1 8 0xc0400000 bb5504 kernel
2 2 0xc0fb6000 cc94 ibcs2.ko
3 1 0xc0fc3000 3028 ibcs2_coff.ko
parkrow4# file foxpro.pr
foxpro.pr: 80386 COFF executable
parkrow4# truss ./foxpro.pr
truss: execution type IBCS2 COFF is not supported -- using FreeBSD a.out: Unknown error: 0
SIGNAL 11 (SIGSEGV)
process exit, rval = 0
% pwd
/tmp/isis/ore
% ls
doscopy isis
% file doscopy
doscopy: MS Windows COFF Intel 80386 object file
% file isis
isis: MS Windows COFF Intel 80386 object file
% ./isis
(obviously-wrong garbled output removed, it's a term setting or character set problem, along with lots of "not founds")
./isis: 137: Syntax error: ")" unexpected
% truss ./isis
__sysctl(0xbfbfe3e4,0x2,0xbfbfe3ec,0xbfbfe3f0,0x0,0x0) = 0 (0x0)
mmap(0x0,320,PROT_READ|PROT_WRITE,MAP_ANON,-1,0x0) = 868868096 (0x33c9e000)
munmap(0x33c9e000,320) = 0 (0x0)
__sysctl(0xbfbfe448,0x2,0x33c94f1c,0xbfbfe450,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 868868096 (0x33c9e000)
issetugid(0x33c8d047,0xbfbfe90c,0x104,0x0,0x0,0x0) = 0 (0x0)
open("/etc/libmap.conf",O_RDONLY,0666) ERR#2 'No such file or directory'
...
% uname -a
FreeBSD lightning 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Wed Dec 15 12:35:57 MST 2010 root@lightning:/usr/obj/usr/src/sys/LIGHTNING i386
sysctl security.bsd.map_at_zero=1
or addYou're not using the patch(1) command correctly.But it doesn't answer and stays winking without applying the patch.