From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matteo Frigo Subject: Re: Cygwin bash's built-in test command crashes on Windows 2008 Server 64bit under KVM Date: Fri, 13 Feb 2009 16:52:33 -0500 Message-ID: <87y6wa57j2.fsf@cilk.com> References: <40ddf2480901050654y268213d1jbf34f9d81d6faeb0@mail.gmail.com> <40ddf2480901050822q52a9c2b6x5d5d87d17dec4992@mail.gmail.com> <49788A80.2070403@redhat.com> <87bptgnykd.fsf@fftw.org> <4995D180.9000706@redhat.com> <878woaozu2.fsf@matteo.cilk.lan> <4995D7FD.9020609@redhat.com> <87eiy26ph9.fsf@cilk.com> <4995DFD6.7050605@redhat.com> <87ab8q6ngc.fsf@cilk.com> <4995EA51.20805@redhat.com> <8763je6m8i.fsf@cilk.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from 75-150-79-137-NewEngland.hfc.comcastbusiness.net ([75.150.79.137]:58046 "EHLO cilk50.cilki.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752608AbZBMVwe (ORCPT ); Fri, 13 Feb 2009 16:52:34 -0500 In-Reply-To: <8763je6m8i.fsf@cilk.com> (Matteo Frigo's message of "Fri\, 13 Feb 2009 16\:49\:33 -0500") Sender: kvm-owner@vger.kernel.org List-ID: Matteo Frigo writes: > Avi Kivity writes: > >> Can you run the slightly modified gs.c (attached) and rerun on AMD? >> The is to see if the runtime somehow restores gs. > > Crashes as follows: > > w2k3-64:~$ ./a.exe > gs: 2b > gs:0x30: 7efdb000 > Segmentation fault (core dumped) A little bit more information: w2k3-64:~$ gdb a.exe GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... (no debugging symbols found) (gdb) r Starting program: /home/athena/a.exe [New thread 1620.0x6dc] Error: dll starting at 0x77d40000 not found. Error: dll starting at 0x77d40000 not found. Error: dll starting at 0x77c20000 not found. Error while mapping shared library sections: /cygdrive/c/WINDOWS/SysWOW64/ntdll32.dll: No such file or directory. (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [New thread 1620.0x74c] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) Program received signal SIGSEGV, Segmentation fault. 0x0040109d in main () (gdb) x/i $pc 0x40109d : mov %gs:0x30,%esi (gdb) p/x $gs $1 = 0x2b (gdb)