796
race conditions (lemmy.zip)
submitted 3 days ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 30 points 3 days ago

Not a word of a lie, I saw a "segmentation fault" error in JavaScript.

Can't remember how we resolved it, but it did blow my mind.

[-] [email protected] 12 points 2 days ago

Technically any language runtime can end in a segmentation fault.

For some languages, in principle this shouldn't be possible, but the runtimes can have bugs and/or you are calling libraries that do some native code at some point.

[-] [email protected] 7 points 2 days ago

Even safe rust can do it, if we allow compiler bugs

[-] [email protected] 10 points 3 days ago

Ive also seen this, but not from js but node

[-] [email protected] 6 points 2 days ago

I have seen a Java program I wrote terminate with SIGSEGV. I think a library was causing it.

[-] [email protected] 1 points 2 days ago

Yup, can confirm. We had a wrapper to a C++ library using JNI, so whenever this library crashed so did the entire JVM.

this post was submitted on 08 Jun 2025
796 points (97.2% liked)

Programmer Humor

24079 readers
973 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS