Path: csiph.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Mike Gerwitz Newsgroups: gnu.bash.bug Subject: Re: Segfault on recursive trap/kill Date: Sun, 07 Oct 2018 13:24:14 -0400 Lines: 42 Approved: bug-bash@gnu.org Message-ID: References: <874ldy1vka.fsf@gnu.org> <8736tj3llu.fsf@gnu.org> <25389056-9fcf-1d31-36d8-13098769a43a@case.edu> <18119.1538880121@jinx.noi.kre.to> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: usenet.stanford.edu 1538933157 4537 208.118.235.17 (7 Oct 2018 17:25:57 GMT) X-Complaints-To: action@cs.stanford.edu Cc: Chet Ramey , bug-bash@gnu.org To: Robert Elz Envelope-to: bug-bash@gnu.org In-Reply-To: <18119.1538880121@jinx.noi.kre.to> (Robert Elz's message of "Sun, 07 Oct 2018 09:42:01 +0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) OpenPGP: id=22175B02E626BC98D7C0C2E5F22BB8158EE30EAB X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14697 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, Oct 07, 2018 at 09:42:01 +0700, Robert Elz wrote: > I expect that if you did look, you'd probably find that while > technically the former, it isn't a reference to some wild pointer, > but rather simply growing the stack until the OS says "no more" > and returns a SIGSEGV instead af allocating a new stack page. That makes sense. Thanks. Though, it is an implementation detail that IMO a user of bash shouldn't have to worry about---if bash instead implemented its interpreter stack on the heap rather than the same stack as bash itself, a segfault could have represented an actual bug. =2D-=20 Mike Gerwitz --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJbukE+AAoJEIyRe39dxRuiSoEQAL1WHLNyOPeCSkvaKKJQO1Yk Kc3Tnc+CoJkNHyY4GBcKfhbD9cG4iuVGnIaB/ngl52Nhoy+0Un8laujqY218XM+i FFE5OBP9SoklCAFVVKuOTESOJcdpBE7ER1H8loj/nWWtcNr0VvKNLtHe2pnRCVfk z/fAUBm8+aToAgYV0vXp5V2iM41bEouQrL1fcVOkQt2xhXWjslGET9FIR1SXNdP0 CofJTm6JjPilOrfJgHfjWC5OoUJEXZnKcyoYdJpnUxZerzQyJ5c1UifJPEsh0G7u dGLGbACeF7g3HjzyYXPzBXXKi+A8yFSbcv2LmHye9E6nXD+7v1ZO8ralEQu+fLeF ja1cBI7+Mi3BjWyYSQhnpyJXTx4aEebcWqMkBsBFT5/iFC/8Q3hGgxfkJ1SXDk4B 9BNfNOwcaGbdSXFc2Gu5nMPtU7KQ1AeGvclvjV8I0bNDUHg/7IG7EN6QkP8BqXad LR8kAtdRC+oDh0d9ii+D86bVHIqx5dwLacDz2aXH1CY147Wi5ZMFfO9s4lPzXQf+ 8FME1UKihuS1qOVu9IvFUZIlKduh8+Qistjxf65xFQ15W/GcRWc8fX/akD9oxvaq 2m7E4drvuK8g4iZvtImv+QnSTJ3wgoWNFba0X6Tip6Gxmi730ZS/YIew4yCqbir/ BU+6djfGadbqN0wn3guJ =jMyh -----END PGP SIGNATURE----- --=-=-=--