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.

The case of a program that crashed on its first instruction

107 pointsby zdimension6 months ago

7 comments

tzs6 months ago
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 未加载
xen06 months ago
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 未加载
pdonis6 months ago
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 未加载
interroboink6 months ago
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 未加载
jandrese6 months ago
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.
wizzwizz46 months ago
If it&#x27;s not loading, add the following CSS:<p><pre><code> :root &gt; body { visibility: visible; opacity: 1; }</code></pre>
JSDevOps6 months ago
Wow