From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Wallman Subject: Adventure - the answer to what went wrong? Date: Thu, 12 Dec 2002 19:11:11 +0000 (GMT) Sender: linux-8086-owner@vger.kernel.org Message-ID: <200212121911.gBCJB75G012842@eddie.loc> References: <1039651196.1847.43.camel@Castle.goembel> Mime-Version: 1.0 Return-path: In-Reply-To: <1039651196.1847.43.camel@Castle.goembel> List-Id: Content-Type: TEXT/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Linux 8086 Gave it a bit of thought today, and I think I know what happened. Looking at the libc sources, it looks like the strcmp and strncmp functions assume that both strings are in the same 64Kb segment. (There may be other functions that make this assumption as well, but I haven't really looked). Looking at the file sizes, the "advent" program is 84Kb when compiled using bcc. I put forward the theory that it fails because the two strings are not in the same 64Kb segment. The reason no-one has found this problem before is that so far all of the binaries have been <64Kb in size. Still, looks like it's been fixed now, but if anyone was wondering why their port of their favourite app failed, that may be the reason. -- Richard Wallman http://www.murkygoth.uklinux.net/elks