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.

Why is there a “V” in SIGSEGV Segmentation Fault?

222 pointsby cautionalmost 5 years ago

18 comments

dzsekijoalmost 5 years ago
Well some aspects are still not clear. If this thing was originally called &quot;segmentation violation&quot;, who, when switched to calling it &quot;segmentation fault&quot;? Why we don&#x27;t get<p><pre><code> Segmentation violation (core dumped) </code></pre> when this thing fires?<p>Actually &quot;violation&quot; sounds much clearer to me. It&#x27;s telling me that the code I&#x27;m running does something that was not part of the contract. With &quot;fault&quot;... well, it&#x27;s someone&#x27;s fault... probably someone else&#x27;s fault... who knows what happened... ¯\_(ツ)_&#x2F;¯<p>I wouldn&#x27;t be surprised if it was found out to sound smoother to managerial ears.
评论 #23563005 未加载
评论 #23563633 未加载
评论 #23563001 未加载
评论 #23570054 未加载
评论 #23562981 未加载
评论 #23562966 未加载
评论 #23563935 未加载
coldpiealmost 5 years ago
Never thought of that solution to segfaults before. Great trick for writing bug-free programs, going to go integrate that into all my code now.
评论 #23562719 未加载
评论 #23562708 未加载
评论 #23562653 未加载
评论 #23562794 未加载
评论 #23563043 未加载
评论 #23565363 未加载
评论 #23573269 未加载
评论 #23562648 未加载
评论 #23562406 未加载
评论 #23565807 未加载
评论 #23562414 未加载
mwcampbellalmost 5 years ago
On a BBS forum in the 90s, I read some lyrics for a blues song where each verse ended with &quot;segmentation violation -- core dumped blues&quot;. Here is what seems to be the definitive version of that song:<p><a href="https:&#x2F;&#x2F;www.netfunny.com&#x2F;rhf&#x2F;jokes&#x2F;92q3&#x2F;coredb.html" rel="nofollow">https:&#x2F;&#x2F;www.netfunny.com&#x2F;rhf&#x2F;jokes&#x2F;92q3&#x2F;coredb.html</a>
thomondalmost 5 years ago
I always thought the V was actually 5 as System V UNIX. Maybe to denote a change that started in that version.
ktm5jalmost 5 years ago
The author makes a big fuss about the old UNIX documentation using sigseg instead of sigsegv.. but then completely ignores the comment in the same line that does use the word violation
waynecochranalmost 5 years ago
&gt; Long long time ago, computers used to have memory segmentation.<p>If you are using an Intel chip, they still do.
评论 #23564155 未加载
评论 #23563013 未加载
jdxcodealmost 5 years ago
I&#x27;ve always read it like Dracula is telling me there was a seg fault: &quot;A seg vault! Muah hah hah hah!&quot;
评论 #23563793 未加载
fred256almost 5 years ago
It&#x27;s interesting to see all signal names in that early version had six letters (SIGQIT instead of SIGQUIT, even) but SIGPIPE was the exception. Was that one added later?<p>(Also funny how the article says &quot;this is from around 1978&quot; when the date on the listing says May 24 1976)
评论 #23563765 未加载
评论 #23584908 未加载
rkeene2almost 5 years ago
I started a project similar to the fictional &quot;skip instructions that cause segmentation violations&quot; for SIGILL (illegal instruction) which tried to implement SSE3 replacements on hosts without SSE3. It had two modes: replace the illegal instruction in memory, or handle it in the signal handler:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;rkeene&#x2F;sse3-emu" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rkeene&#x2F;sse3-emu</a>
anoncakealmost 5 years ago
&gt; Was there a &quot;Segmentation Vault?&quot;?<p>It&#x27;s not that far fetched, there&#x27;s a Referer header after all.
necovekalmost 5 years ago
The original cited SIGSEG constant definition in the OP still has a &quot;segmentation violation&quot; right there in the comment. Which suggests that &quot;violation&quot; was the norm even then.
khmalmost 5 years ago
Prior code is available. Before V4, there were no &#x27;signals&#x27; per se; errors were trapped individually with dedicated system calls.
fortran77almost 5 years ago
This didn&#x27;t really answer the question! However, I&#x27;ve been using Unix since the early 80s and never once wondered about this.
SomeoneFromCAalmost 5 years ago
SIGSEG sounds inappropriate in some Turkic languages. Extra V kinda masks the issue.
solarkraftalmost 5 years ago
Huh, this doesn&#x27;t explain why they added the V.
gcoguiecalmost 5 years ago
Maybe V like in System V?
hboschalmost 5 years ago
The shape of a &quot;V&quot; is a fault.
staycoolboyalmost 5 years ago
So much for the &quot;do not change&quot; comments. I love these archaeological digs into Unix history.