X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4AAE0658.3000300@gmail.com>
Date: Mon, 14 Sep 2009 10:01:12 +0100
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: Dave Korn <dave.korn.cygwin@googlemail.com>
CC: cygwin@cygwin.com
Subject: Re: Core dump on hello world.
References: <4AADCA4E.2030302@verizon.net> <4AAE0285.9040402@gmail.com>
In-Reply-To: <4AAE0285.9040402@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Dave Korn wrote:
> Jerry DeLisle wrote:
> 
>> gdb says:
>> (gdb) r
>> Starting program: /home/jerry/prs/test/a.exe
>> [New thread 162.0xa9]
>> [New thread 162.0x8e]
>>
>> Program received signal SIGILL, Illegal instruction.
>> set_fpu () at ./fpu-target.h:80
>> 80      ./fpu-target.h: No such file or directory.
>>         in ./fpu-target.h
>> (gdb) bt
>> #0  set_fpu () at ./fpu-target.h:80
> 
>   Need an actual $eip value here, and the contents of your /proc/cpuinfo please.

  Nah, hang on, I'll give the psychic debugging a go.  <places hand to
forehead, covering eyes, waves other hand out in front of me in a
mystical-looking way>  I'm getting something.... the spirits are talking... or
maybe it's just the beer...  and they tell me: The problem is that the CPUID
instruction in your virtual machine is returning some kind of bogus output
that's leading set_fpu() to believe the CPU supports SSE, but the emulation in
fact does not, and it blows up here:

> 0x697826c4 <set_fpu+164>:       stmxcsr -0x14(%ebp)

    cheers,
      DaveK

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

