From owner-freebsd-emulation@freebsd.org Fri Sep 9 21:34:59 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 6EB5EBD4B7E for ; Fri, 9 Sep 2016 21:34:59 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from prak.gameowls.com (prak.gameowls.com [IPv6:2001:19f0:5c00:950b:5400:ff:fe14:46b7]) by mx1.freebsd.org (Postfix) with ESMTP id 4B10C84B for ; Fri, 9 Sep 2016 21:34:59 +0000 (UTC) (envelope-from joe@getsomewhere.net) Received: from [10.135.6.127] (50-194-94-9-static.hfc.comcastbusiness.net [50.194.94.9]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by prak.gameowls.com (Postfix) with ESMTPSA id 4532418FA9 for ; Fri, 9 Sep 2016 16:34:52 -0500 (CDT) From: Joe Love Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: linux-compat semctl operation - bad address Message-Id: <276F4863-DE8C-49F7-BB60-F8614F88064C@getsomewhere.net> Date: Fri, 9 Sep 2016 16:34:51 -0500 To: freebsd-emulation@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 09 Sep 2016 21:34:59 -0000 Hi, I have a linux binary I=E2=80=99m trying to run on a 12-CURRENT machine = with the linux_base-c7 (64-bit) port. When trying to run it, it starts up and then spits out this error: shm_semaphores_init: semctl init error: Bad address - trying again I=E2=80=99m guessing that it=E2=80=99s reaching the end of the switch = statement in sys/compat/linux/linux_ipc.c=E2=80=99s linux_semctl(=E2=80=A6= ) function and getting an EINVAL result. That=E2=80=99s a guess, = however, as I don=E2=80=99t know enough about debugging at this level in = order to tell what it=E2=80=99s actually doing. Can anyone tell me how to get the results of the linux_msg() call at the = end of the function to find out what ipc type it=E2=80=99s trying to = utilize, and with a little luck maybe get a patch created to support = whatever operation it=E2=80=99s trying? Thanks, -Joe