NetBSD Problem Report #52246

From www@NetBSD.org  Fri May 19 13:42:55 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 880827A219
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 19 May 2017 13:42:55 +0000 (UTC)
Message-Id: <20170519134254.2C0F67A2AE@mollari.NetBSD.org>
Date: Fri, 19 May 2017 13:42:54 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: 0.9 binaries abort on start
X-Send-Pr-Version: www-1.0

>Number:         52246
>Category:       kern
>Synopsis:       0.9 binaries abort on start
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 19 13:45:00 +0000 2017
>Closed-Date:    Fri May 19 14:08:14 +0000 2017
>Last-Modified:  Fri May 19 14:08:14 +0000 2017
>Originator:     Kamil Rytarowski
>Release:        NetBSD 7.99.71 amd64
>Organization:
TNF
>Environment:
NetBSD chieftec 7.99.71 NetBSD 7.99.71 (GENERIC) #29: Fri May 19 15:13:04 CEST 2017  root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64
>Description:
NetBSD i386 0.9 executables early abort on start.

chieftec$ ./lisp                          
Abort 
chieftec$ ktruss ./lisp                   
  1014      1 ktruss   fcntl(0x4, 0x3, 0)          = 4194305
  1014      1 ktruss   emul(netbsd)
  1014      1 ktruss   fcntl(0x4, 0x4, 0x400001)   = 0

$ config  -x /netbsd|grep COMPAT|grep BSD   
options         COMPAT_NOMID    # NetBSD 0.8, 386BSD, and BSDI
options         COMPAT_09       # NetBSD 0.9,
options         COMPAT_10       # NetBSD 1.0,
options         COMPAT_11       # NetBSD 1.1,
options         COMPAT_12       # NetBSD 1.2 (and 386BSD and BSDI),
options         COMPAT_13       # NetBSD 1.3 (and 386BSD and BSDI),
options         COMPAT_14       # NetBSD 1.4,
options         COMPAT_15       # NetBSD 1.5,
options         COMPAT_16       # NetBSD 1.6,
options         COMPAT_20       # NetBSD 2.0,
options         COMPAT_30       # NetBSD 3.0,
options         COMPAT_40       # NetBSD 4.0,
options         COMPAT_50       # NetBSD 5.0,
options         COMPAT_60       # NetBSD 6.0, and
options         COMPAT_70       # NetBSD 7.0 binary compatibility.
options         COMPAT_43       # and 4.3BSD

>How-To-Repeat:
1. Enable COMPAT_09 in the kernel config.

2. Fetch lisp.gz and liszt.gz from:
ftp://ftp.cogsci.ed.ac.uk/pub/richard/franz-for-NetBSD/

3. gunzip downloaded files

4. chmod +x over binaries

5. try to run them ./lisp and ./liszt
>Fix:
N/A

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Fri, 19 May 2017 16:08:14 +0200
State-Changed-Why:
Issue fixed by: "sysctl -w vm.user_va0_disable=0" (perhaps also disabling global PaX MPROTECT and ASLR can help)
Thanks joerg@, martin@, christos@.
$ ./lisp                                                                                                                     
Franz Lisp, Opus 38.92
->


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.