From owner-freebsd-stable@FreeBSD.ORG Wed Dec 29 07:21:07 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43B7616A4CE for ; Wed, 29 Dec 2004 07:21:07 +0000 (GMT) Received: from park.rambler.ru (park.rambler.ru [81.19.64.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EFEC43D31 for ; Wed, 29 Dec 2004 07:21:06 +0000 (GMT) (envelope-from is@rambler-co.ru) Received: from is.park.rambler.ru (is.park.rambler.ru [81.19.64.102]) by park.rambler.ru (8.13.1/8.12.6) with ESMTP id iBT7L5UG050486; Wed, 29 Dec 2004 10:21:05 +0300 (MSK) (envelope-from is@rambler-co.ru) Date: Wed, 29 Dec 2004 10:21:05 +0300 (MSK) From: Igor Sysoev X-X-Sender: is@is.park.rambler.ru To: Kris Kennaway In-Reply-To: <20041229064721.GA21602@xor.obsecurity.org> Message-ID: <20041229101325.R73628@is.park.rambler.ru> References: <20041228162708.P73628@is.park.rambler.ru> <20041229093312.P73628@is.park.rambler.ru> <20041229064721.GA21602@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: icc8 failed on 4.10: Illegal instruction X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2004 07:21:07 -0000 On Tue, 28 Dec 2004, Kris Kennaway wrote: > On Wed, Dec 29, 2004 at 09:41:32AM +0300, Igor Sysoev wrote: > > On Tue, 28 Dec 2004, Kris Kennaway wrote: > > > > > On Tue, Dec 28, 2004 at 04:34:35PM +0300, Igor Sysoev wrote: > > > > I have cvsup'ed ports to use icc-8.1.024 on FreeBSD 4.10-RELEASE. > > > > Then I installed the port and I ran /usr/local/intel_cc_80/bin/icc, > > > > but it always failed with message "Illegal instruction". > > > > > > You forgot to mention what type of CPU you have. > > > > > > > Does icc-8.1.024 work on FreeBSD 4.x ? > > > > Sorry, it was so obvious for me that is not CPU problem in this case, > > so I forgot to mention it. From dmesg: > > > > CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz (2679.56-MHz 686-class CPU) > > Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 > > > > I should also say that Linux binaries from linux_base-8-8.0_4 runs > > without problems. > > > > Is there way to get the core of Linux binary and look it in gdb ? > > The linux_devtools port includes a linux version of gdb. >/usr/compat/linux/usr/bin/gdb /usr/local/intel_cc_80/bin/iccbin GNU gdb Red Hat Linux (5.2.1-4) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) run Starting program: /usr/local/intel_cc_80/bin/iccbin Program received signal SIGILL, Illegal instruction. 0x080b13d7 in __intel_proc_init_ftzdaz () (gdb) bt #0 0x080b13d7 in __intel_proc_init_ftzdaz () #1 0x080b133d in __intel_proc_init.H () #2 0x2830e54d in __libc_start_main () from /lib/libc.so.6 (gdb) info registers ... eip 0x80b13d7 0x80b13d7 ... (gdb) disassemble $eip ... 0x80b13d3 <__intel_proc_init_ftzdaz+75>: mov 0x2c(%esp,1),%esi 0x80b13d7 <__intel_proc_init_ftzdaz+79>: stmxcsr (%esp,1) 0x80b13db <__intel_proc_init_ftzdaz+83>: mov (%esp,1),%eax ... (gdb) Strange, the code in __intel_proc_init_ftzdaz looks like the right code. Right now I can not say from what extention "stmxcsr" come from. Here is the features from dmesg: Features=0xbfebfbff Igor Sysoev http://sysoev.ru/en/