From owner-freebsd-bugs Fri Dec 27 03:52:35 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA16084 for bugs-outgoing; Fri, 27 Dec 1996 03:52:35 -0800 (PST) Received: from murkwood.gaffaneys.com (dialup5.gaffaneys.com [134.129.252.24]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id DAA16079 for ; Fri, 27 Dec 1996 03:52:31 -0800 (PST) Received: (from zach@localhost) by murkwood.gaffaneys.com (8.8.2/8.7.3) id FAA02841; Fri, 27 Dec 1996 05:57:36 -0600 (CST) To: freebsd-bugs@freebsd.org Subject: Possible bug in Linux emulation code... Mime-Version: 1.0 (generated by tm-edit 7.89) Content-Type: text/plain; charset=US-ASCII From: Zach Heilig Date: 27 Dec 1996 05:57:35 -0600 In-Reply-To: Thomas Biskup's message of Thu, 26 Dec 1996 12:49:14 +0100 (MET) Message-ID: <87ybekfbdc.fsf@murkwood.gaffaneys.com> Lines: 30 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk There is a Linux game that comes in both statically linked a.out and dynamically linked elf formats. The a.out version (which I was using) is compiled with ncurses 1.9.9e headers, and linked with an older (1.8.6?) a.out library. Even though it might be a bad idea, this situation appearantly works fine for Linux. The only function this game calls that crashes in the FreeBSD emulation box is mvinch(). Whatever other ncurses functions the game calls do work properly (as far as I can tell, I haven't had much chance to do testing... this bug just happened to be painfully obvious). The maintainer is probably going to send me a linux a.out compiled binary that contains the above function, to make sure that is the cause of the SEGV... If it does turn out to be a crash only for FreeBSD, I'll submit a real bug report, since it means there probably is a Linux emulation bug somewhere... The ELF version (with the correct library linked in) works for both operating systems. The a.out version (with the older library linked) appearantly works for Linux (I don't know for sure, since I have no linux box to play with). If anyone else wants to reproduce the crash, the game is adom, available from: ftp://crescent.dartmouth.edu/adom/linux/adom-094g3-aout.tar.gz. It crashes whenever the game attempts to create a screen dump. (press '[' once you get into the main part of the game)