From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14320 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Florian Weimer Newsgroups: gmane.linux.lib.musl.general Subject: Re: Conditional signal safety? Date: Mon, 01 Jul 2019 06:21:11 +0200 Message-ID: <87imsmidvs.fsf@oldenburg2.str.redhat.com> References: <20190629055405.GA22788@voyager> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="1551"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: musl@lists.openwall.com To: Markus Wichmann Original-X-From: musl-return-14336-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jul 01 06:21:30 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1hhnon-0000Kx-4X for gllmg-musl@m.gmane.org; Mon, 01 Jul 2019 06:21:29 +0200 Original-Received: (qmail 3830 invoked by uid 550); 1 Jul 2019 04:21:26 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 3806 invoked from network); 1 Jul 2019 04:21:25 -0000 In-Reply-To: <20190629055405.GA22788@voyager> (Markus Wichmann's message of "Sat, 29 Jun 2019 07:54:05 +0200") X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 01 Jul 2019 04:21:14 +0000 (UTC) Xref: news.gmane.org gmane.linux.lib.musl.general:14320 Archived-At: * Markus Wichmann: > at work yesterday I had to build an exception handler (a signal handler > for SIGSEGV, SIGBUS, SIGILL, and SIGFPE). For my purposes, it was really > convenient to just use dladdr() to find out at least what module and > function PC and LR were pointing to when the exception happened, so I > used that function. Are these signals generated synchronously, by running code? Then the rules regarding asynchronous signal safety do not apply. Thanks, Florian