TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The case of a program that crashed on its first instruction

107 点作者 zdimension7 个月前

7 条评论

tzs7 个月前
I remember someone quipped that every program always has at least one bug left, and every program could be optimized to be smaller.<p>It follows then that with a sufficiently good optimizer every program can be reduced to a single wrong instruction.
评论 #42090743 未加载
评论 #42092988 未加载
xen07 个月前
Sometimes I start to feel like I&#x27;m pretty good at what I do.<p>Then I read one Raymond&#x27;s investigations like this and realise I&#x27;m still not that good.
评论 #42090488 未加载
评论 #42090514 未加载
评论 #42090950 未加载
评论 #42090700 未加载
pdonis7 个月前
I love this comment:<p>&quot;So at least it’s nice that this rogue code was compiled with stack buffer overflow protection. Can’t be too careful.&quot;
评论 #42091088 未加载
interroboink7 个月前
Could someone explain to me — it&#x27;s not <i>actually</i> crashing on its first instruction, I take it?<p>Why does it appear to be crashing on the first instruction?<p>Did the malware mess with the main thread&#x27;s code, so that the first instruction of the main thread was the invalid write instruction?<p>But then the malware thread must have run first somehow, no? (since that thread is in the same process)<p>I think I followed the article generally, but I don&#x27;t understand what actual sequence of events might have taken place that resulted in this report of &quot;crashed on first instruction.&quot;
评论 #42093651 未加载
jandrese7 个月前
I guessed wrong from the title. I was expecting a C&#x2F;C++ programmer that tried to stick too much stuff on the stack and crashing immediately on start. That&#x27;s usually the case when someone asks me why their previously working program doesn&#x27;t even make it to the first instruction.
wizzwizz47 个月前
If it&#x27;s not loading, add the following CSS:<p><pre><code> :root &gt; body { visibility: visible; opacity: 1; }</code></pre>
JSDevOps7 个月前
Wow