From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4170 invoked by alias); 19 Jul 2010 09:50:20 -0000 Received: (qmail 4147 invoked by uid 22791); 19 Jul 2010 09:50:19 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Jul 2010 09:50:11 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 6C38ECB025A; Mon, 19 Jul 2010 11:50:07 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g0-3k080QarQ; Mon, 19 Jul 2010 11:50:07 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 598B7CB01D8; Mon, 19 Jul 2010 11:50:07 +0200 (CEST) Subject: Re: [patch] Fix linux-ia64 on SIGILL for deleted breakpoint Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: <20100719091956.GA25899@host1.dyn.jankratochvil.net> Date: Mon, 19 Jul 2010 09:50:00 -0000 Cc: gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20100719085817.GA24395@host1.dyn.jankratochvil.net> <00CE116D-04D6-477D-9D71-0EBAD7017283@adacore.com> <20100719091956.GA25899@host1.dyn.jankratochvil.net> To: Jan Kratochvil X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00278.txt.bz2 On Jul 19, 2010, at 11:19 AM, Jan Kratochvil wrote: > On Mon, 19 Jul 2010 11:04:26 +0200, Tristan Gingold wrote: >> On Jul 19, 2010, at 10:58 AM, Jan Kratochvil wrote: >>> in some cases ia64 can generate SIGILL instead of SIGTRAP. Guessing it= is >>> a CPU bug instead of Linux kernel bug (but I may be wrong). >>> https://bugzilla.redhat.com/show_bug.cgi?id=3D615538 >>> http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-t= ests/tests/ia64-sigill.c?cvsroot=3Dsystemtap >>=20 >> This is not a bug but a feature: the immediate of break.b is ignored by = the processor. >=20 > You are right, Intel IA64 manual says: > For the b_unit_form, imm21 is ignored and the value zero is placed in > the Interruption Immediate control register (IIM). Yes, this is an amazing weirdness, which might be difficult to work-around = before tukwila.