TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Recursion Error While Handling Recursion Error

2 pointsby nickdrozdalmost 6 years ago

1 comment

triskaalmost 6 years ago
Thank you for sharing this writeup!<p>Regarding the Emacs example: You can make Emacs crash entirely by triggering internal recursion in the garbage collector that exceeds the C stack limit, for example with:<p><pre><code> $ emacs -Q --eval &quot;(let (v) (while t (setq v (cons v v))))&quot; </code></pre> yielding:<p><pre><code> Fatal error 11: Segmentation faultSegmentation fault: 11. </code></pre> and the backtrace:<p><pre><code> Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0xbf7ffffc 0x0013bc1a in mark_object (arg=40166541) at alloc.c:5372 (gdb) bt #0 0x0013bc1a in mark_object (arg=40166541) at alloc.c:5372 #1 0x0013bdf8 in mark_object (arg=40166549) at alloc.c:5655 #2 0x0013bdf8 in mark_object (arg=40166557) at alloc.c:5655 #3 0x0013bdf8 in mark_object (arg=40166565) at alloc.c:5655 #4 0x0013bdf8 in mark_object (arg=40166573) at alloc.c:5655 #5 0x0013bdf8 in mark_object (arg=40166581) at alloc.c:5655 #6 0x0013bdf8 in mark_object (arg=40166589) at alloc.c:5655 ...</code></pre>
评论 #20101211 未加载