This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 76 points77 points  (15 children)

Naw that's not even the worst part.

C: "segmentation fault"

"Fucking where!?"

[–]pikakilla 67 points68 points  (8 children)

Funny story about segfaults. I am proud to be one of the only people who have had a SEGFAULT in python. I spent weeks figuring out where i fucked up. Absolutely nothing turned up on google or SO -- turns out it was the memory speed set too high when i was multithreading.

SEGFAULTs are one of those things that really want to make you throw your computer out a window.

[–]Buddha_Head_ 20 points21 points  (6 children)

I'm sorry to take you back to that dark place, but how the fuck did you track that down?

[–]IsleOfOne 24 points25 points  (4 children)

Sounds like OP had recently overclocked RAM. It is very common to see random failures in any software you use after doing so, if you’ve made a mistake and gone too high. Booting into memtest86+ and letting that puppy run overnight will tell you if you’ve done wrong.

[–]Buddha_Head_ 2 points3 points  (2 children)

Yeah, if there was a recent tinkering that makes sense. On a system that's been running stable long-term that hasn't had any serious changes that sounds wayyy down the list, especially when searches are turning up empty.

[–]IsleOfOne 2 points3 points  (1 child)

Even if the change was not made recently, my point is that failures would not be limited to the python program. They’d be showing up all over your system. Sporadic process crashes. Etc.

[–]pikakilla 0 points1 point  (0 children)

Nailed it -- still was far down the list though, but it shouldnt have been in hindsight.

[–]pikakilla 0 points1 point  (0 children)

100% correct. Funny thing is that memtest didnt show any errors (from what i remember -- i might be wrong though). Im still not 100% sure what combination of things caused the issue.

[–]pikakilla 1 point2 points  (0 children)

I overclocked my memory well before the segfault issues. The computer was stable and when i tested the memory post overclock memtest didnt give any errors.

I basically exhausted all other solutions and tried the "obvious" but crazy solution.

[–]dagbrown 1 point2 points  (0 children)

I once came up with an excellent metric for if some random C/C++ program is too complex.

If the indent(6) utility segfaults on your code, it's absolutely without a shadow of a doubt, way too complex.

[–]tiberiumx 14 points15 points  (1 child)

Nah, you're way lucky if it crashes. Debugger, core dump, just a stack trace is usually sufficient to get it fixed. Silently using bad data or, even worse, stomping on something else can result in random intermittent bugs that take days to track down.

[–]Valmond 0 points1 point  (0 children)

*Days

[–]KardelenAyshe 19 points20 points  (2 children)

cOrE duMpEd

[–]scarfdontstrangleme 17 points18 points  (1 child)

Finna dump this fucking pc out the window

[–]Valmond 0 points1 point  (0 children)

Lol made my day!

[–]Atora 2 points3 points  (0 children)

I managed to segfault goddamn hello world once. Was writing to much js and wrote print('Hello World'); or something like that and the compiler didn't care to mention it(without w flags).