From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7711 invoked by alias); 25 Jul 2002 12:07:22 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 7693 invoked from network); 25 Jul 2002 12:07:21 -0000 Received: from unknown (HELO sunsite.mff.cuni.cz) (195.113.19.66) by sources.redhat.com with SMTP; 25 Jul 2002 12:07:21 -0000 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.11.6/8.11.6) id g6PC7GX21715; Thu, 25 Jul 2002 14:07:16 +0200 Date: Thu, 25 Jul 2002 05:07:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] Fix IA-64 pthread signal wrapper Message-ID: <20020725140716.U20867@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-SW-Source: 2002-07/txt/msg00064.txt.bz2 Hi! IA-64 only recognizes real time style signals, but if SA_SIGINFO is not passed to sigaction, then pthread sighandler wrapper screws things up. Either it can be solved the following way, or we could add some macros to force using rt pthread sighandler wrapper unconditionally on some arches. Note that libSegFault.so did not work on IA-64 before this patch and does not work after it. 2002-07-25 Jakub Jelinek * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: New. * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Fix profil_counter arguments. --- libc/sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h.jj Thu Jul 25 13:52:17 2002 +++ libc/sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h Thu Jul 25 14:16:04 2002 @@ -0,0 +1,26 @@ +/* Copyright (C) 2002 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +#define SIGCONTEXT siginfo_t *_si, struct sigcontext * +#define SIGCONTEXT_EXTRA_ARGS _si, +#define GET_PC(ctx) ((void *) 0) +#define GET_FRAME(ctx) ((void *) 0) +#define GET_STACK(ctx) ((void *) 0) + +#define CALL_SIGHANDLER(handler, signo, ctx) \ + (handler)((signo), SIGCONTEXT_EXTRA_ARGS (ctx)) --- libc/sysdeps/unix/sysv/linux/ia64/profil-counter.h.jj Thu Aug 23 18:51:06 2001 +++ libc/sysdeps/unix/sysv/linux/ia64/profil-counter.h Thu Jul 25 14:15:20 2002 @@ -21,7 +21,7 @@ and the interrupted PC is easily findable in the `struct sigcontext'. */ static void -profil_counter (int signr, int code, struct sigcontext *scp) +profil_counter (int signr, siginfo_t *si, struct sigcontext *scp) { unsigned long ip = scp->sc_ip & ~0X3ULL, slot = scp->sc_ip & 0x3ull; Jakub