Bug 156353 - [ibcs2] ibcs2 binaries that execute on 4.x not working on 8.0 Abort Trap
Summary: [ibcs2] ibcs2 binaries that execute on 4.x not working on 8.0 Abort Trap
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 14:20 UTC by rich
Modified: 2017-12-31 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rich 2011-04-12 14:20:10 UTC
SCO binaries that execute in FreeBSD 4.x ok, IN FreeBSD 8.0 give error

This problem has occured since FreeBSD 5.x

$ ./pcmp
Abort trap

# kldstat
Id Refs Address    Size     Name
 1    8 0xc0400000 b6dfe0   kernel
 2    2 0xc5bc4000 b000     ibcs2.ko
 3    1 0xc5bd1000 3000     ibcs2_coff.ko

$ file pcmp
pcmp: 80386 COFF executable
$ truss ./pcmp
truss: can not get etype: No such process

IN FreeBSD 4.11
$ uname -a
FreeBSD esi.bsd 4.11-RELEASE FreeBSD 4.11-RELEASE #9: Wed May 26 08:16:14 EDT 20
10     root@esi.bsd:/usr/src/sys/compile/MYKERNEL  i386

$ ./pcmp
usage: ./pcmp [1st lib # to cmp] [2nd lib # to cmp]

$ file ./pcmp
./pcmp: MS Windows COFF Intel 80386 object file

$ truss ./pcmp
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
ioctl(1,0x5401,0xbfbfe7c2)                       = 0 (0x0)
usage: ./pcmp [1st lib # to cmp] [2nd lib # to cmp]

write(1,0x403ccc,53)                             = 53 (0x35)
Sample: ./pcmp 1 2

write(1,0x403ccc,21)                             = 21 (0x15)
        ** this will compare lib_1
write(1,0x403ccc,36)                             = 36 (0x24)
        **             to    lib_2

write(1,0x403ccc,37)                             = 37 (0x25)
close(0)                                         = 0 (0x0)
close(1)                                         = 0 (0x0)
close(2)                                         = 0 (0x0)
exit(0xffffffff)                                process exit, rval = 65280

How-To-Repeat: See above
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-04-17 01:45:19 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-emulation

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:31 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped