From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Dynamic modules: MODULE_HANDLE_SIGNALS etc. Date: Mon, 4 Jan 2016 07:28:07 -0800 Message-ID: <568A8F87.8080007@dancol.org> References: <83mvu1x6t3.fsf@gnu.org> <56772054.8010401@cs.ucla.edu> <83zix4scgf.fsf@gnu.org> <5677DBC9.6030307@cs.ucla.edu> <83io3rst2r.fsf@gnu.org> <567841A6.4090408@cs.ucla.edu> <567844B9.2050308@dancol.org> <5678CD07.8080209@cs.ucla.edu> <5678D3AF.7030101@dancol.org> <5678D620.6070000@cs.ucla.edu> <83mvt2qxm1.fsf@gnu.org> <56797CD9.8010706@cs.ucla.edu> <8337uuqsux.fsf@gnu.org> <5679DC83.70405@cs.ucla.edu> <83oadhp2mj.fsf@gnu.org> <567AD556.6020202@cs.ucla.edu> <567AD766.3060608@dancol.org> <567B5DAB.2000900@cs.ucla.edu> <83fuyromig.fsf@gnu.org> <567C25B1.3020101@dancol.org> <56892FD6.8040708@dancol.org> <56894CE7.7090301@cs.ucla.edu> <568950C5.2030306@dancol.org> <56896359.4020309@cs.ucla.edu> <568966D4.5080707@dancol.org> <56898C6F.4010303@cs.ucla.edu> <56898EBD.2000000@dancol.org> <83d1th8j08.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="N9AuFTl05aeGL1ceefr3ccAAwjBPDsFC9" X-Trace: ger.gmane.org 1451921315 31805 80.91.229.3 (4 Jan 2016 15:28:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jan 2016 15:28:35 +0000 (UTC) Cc: eggert@cs.ucla.edu, Emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 04 16:28:27 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aG73b-0002oo-4c for ged-emacs-devel@m.gmane.org; Mon, 04 Jan 2016 16:28:27 +0100 Original-Received: from localhost ([::1]:45410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG73a-0002iE-Ll for ged-emacs-devel@m.gmane.org; Mon, 04 Jan 2016 10:28:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG73X-0002i8-2B for Emacs-devel@gnu.org; Mon, 04 Jan 2016 10:28:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aG73S-0000MU-2J for Emacs-devel@gnu.org; Mon, 04 Jan 2016 10:28:22 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:46005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG73R-0000Kd-PY; Mon, 04 Jan 2016 10:28:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject; bh=B3gFZRP43I/TvDjhsKex64+Ppgar+WQYlfXsfo5Trl4=; b=HA8Zpfl89cCnWY/NY2FRuhRulPWKtgIGQ9DaIPl5T34KtKY9dfoxSbxdvMydIKvYVL14WNon6aMhZO65o/8P/9uevRruv195vnxeGuulKQ7Bg32uQl5xf6VuhPqkCHf7lEv3NaxjQ/fBajDAJ7ytLBdlglRjIY1Us28w0o9FS08W1rQSGgRBuBvtmiG+dZrUzEqpxBsu/4/8gCHUe2LUbe9lGVfoHvSLqloN6004YJqQ1GowMjv0aji5dcPuKd5IG86lDb1Tof5sOIA2RQIyoh49e1RBv7Au0rdjvhS4nm3IzMgpQ+5qfSwS3pP5fjX6UeWsqHOe92UUYw224/VE3A==; Original-Received: from c-67-161-115-4.hsd1.wa.comcast.net ([67.161.115.4] helo=[192.168.1.210]) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1aG73L-00048Y-6U; Mon, 04 Jan 2016 07:28:11 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <83d1th8j08.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197581 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --N9AuFTl05aeGL1ceefr3ccAAwjBPDsFC9 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 01/04/2016 07:24 AM, Eli Zaretskii wrote: >> From: Daniel Colascione >> Date: Sun, 3 Jan 2016 13:12:29 -0800 >> >>> I think something along that lines would suffice, yes. Admittedly I >>> didn't quite follow what you wrote (perhaps some text got elided?). B= ut >>> the main point, as I understand it, is that we needn't worry about >>> having a stack-overflow check inside the stack-overflow handler, beca= use >>> we can insist that the stack-overflow handler be tightly-enough >>> controlled so that it won't recurse indefinitely. >> >> Yes: do as little as possible in the segfault handler and signal an >> error the normal way at the next safe opportunity, if one arises befor= e >> we fully exhaust the stack. >=20 > You cannot do that when the stack is exhausted. You will almost > certainly crash if you try. That's why we have the alternate signal stack. --N9AuFTl05aeGL1ceefr3ccAAwjBPDsFC9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJWio+HAAoJEN4WImmbpWBl6S4P/A91UeML6cQbQgg7Uv8CH50V V04POPk988p96YTq9HJO7qvR3uxnPh4zvcD3Yw7gFLJcN1jN2/nbsmLX4W7dTYlz HkbqoE7ulYHBKBkPgSttzEdjOoOGzbN1x9EBVX2HtdtJipZDNUCyl9nZKkYnZwCZ jn+dPFo2LnDcgJ8LYqPpSqBfNj2z6XJ/cFL+9+md45E9KWE2gSa7UYtMw1C8a/P6 li6cX/KT5bFcoTZ2KGMShLREYEekg2HVPQNQUMdRYig4wNu7qdTNGcgodtuxlsNa aor+TEtA7QWzGCbaYGKmju6Vu8qiEv+OcDpdKeNR0pSWvxVPqhFPGw5QkaFl7rPV dKON9T0rhw3YbTQfe/UjnsQb4T9wLc1PxHRefCSOBYkvEbOFz3LUzdrBmPuuB4Uk JLH0qQH33Xe7KFUjQiR3Xfp/yGQvPYsDJbJRj040ccjnJDlw5Eha9SCtehs+VEIH 26HKE8WK72bU11lmm4zcgPhYQQ/RX9V6HTsETAJvJ7qRr9lEh5a4MNDFY5zzDAq3 moRIbMzfIesuF6uUARgfFJqSZ/rmmnorTAKehRDfwxNNBP1gmERelyQQaARPGG/d BAYpTTGm5vH81fa67USY5ZCVOmmR5kfi7xiqyaULrx9ViVCXZfTX9p56mOaIp0Rw b3LmQPiMZmf76qjD5Yae =Y0zJ -----END PGP SIGNATURE----- --N9AuFTl05aeGL1ceefr3ccAAwjBPDsFC9--