From owner-freebsd-emulation@freebsd.org Sat Apr 2 07:51:42 2016 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CDC89AECDE5 for ; Sat, 2 Apr 2016 07:51:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id B90E71DB7 for ; Sat, 2 Apr 2016 07:51:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B86C2AECDE4; Sat, 2 Apr 2016 07:51:42 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8156AECDE3 for ; Sat, 2 Apr 2016 07:51:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8E051DB6 for ; Sat, 2 Apr 2016 07:51:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u327pfAl056367 for ; Sat, 2 Apr 2016 07:51:42 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 153243] [ibcs2] Seg fault whne running COFF binary using iBCS2 in 8.1 Date: Sat, 02 Apr 2016 07:51:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 8.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ske-89@pkmab.se X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2016 07:51:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D153243 Kristoffer Eriksson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ske-89@pkmab.se --- Comment #2 from Kristoffer Eriksson --- This sounds to me like the same problem that was later solved in the follow= ing discussion in 2013: https://lists.freebsd.org/pipermail/freebsd-hackers/2013-October/043615.html The solution was to run "sysctl security.bsd.map_at_zero=3D1=E2=80=9D or add =E2=80=9Csecurity.bsd.map_at_zero=3D1=E2=80=9C to /etc/sysctl.conf. The problem was that COFF files want to load at address 0, which is no long= er allowed by default. The executable code ends up on the wrong address, and crashes. So it is not really a bug, just difficult to use. There was some follow-up discussion that this setting is documented in aout= (4), but that some more documentation and clearer messages might be added for CO= FF=20 (or iBCS2) too. Or make the COFF loader allow this automatically. Most people would probably never find this out for themselves, and would ju= st conclude that iBCS2 is broken, so I think some of those suggestions should = be undertaken. It took me a long time to find this by googling too. --=20 You are receiving this mail because: You are the assignee for the bug.=