Skip site navigation (1)Skip section navigation (2)
Date:      27 Dec 1996 05:57:35 -0600
From:      Zach Heilig <zach@blizzard.gaffaneys.com>
To:        freebsd-bugs@freebsd.org
Subject:   Possible bug in Linux emulation code...
Message-ID:  <87ybekfbdc.fsf@murkwood.gaffaneys.com>
In-Reply-To: Thomas Biskup's message of Thu, 26 Dec 1996 12:49:14 %2B0100 (MET)

next in thread | raw e-mail | index | archive | help

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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87ybekfbdc.fsf>