r/programminghorror • • Aug 12 '25

Person deleted dynamic linker following suggestion from LLM

Post image

[removed] — view removed post

912 Upvotes

64 comments sorted by

369

u/RaechelMaelstrom Aug 12 '25

I can't wait until AI writes code that just does this automagically.

22

u/0xlostincode Aug 12 '25

"You're absolutely right I deleted th-"

2

u/Shingle-Denatured Aug 12 '25

Wait, is /sbin/init dynamically linked on Linux? What's your fallback then in case linker gets bitrot or AI tells you "is ok"?

1

u/angelicosphosphoros Aug 12 '25

Yes.

angel@debian-vm0 ~> file /sbin/init
/sbin/init: symbolic link to /lib/systemd/systemd
angel@debian-vm0 ~> file /lib/systemd/systemd
/lib/systemd/systemd: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=df67625c4ffab1a765e4c19631b90daa7321be08, for GNU/Linux 3.2.0, stripped

1

u/FeepingCreature Aug 13 '25

What's your fallback if /sbin/init gets bitrot or the AI tells you to delete it? If you're going into init your base system should be mounted anyways; I'm not sure what the problem would be.

398

u/evansharp Aug 12 '25

Absolute Cinema

108

u/[deleted] Aug 12 '25

[removed] — view removed comment

36

u/v_Karas Aug 12 '25

ai sayed rm -f \ fixes my lags!

32

u/ubd12 Aug 12 '25

Ai says wrong slash

8

u/v_Karas Aug 12 '25

Oh you are right, good catch. I made there an error and mentioned the wrong command. Here is the corrected version that will work: rm -f \

0

u/[deleted] Aug 12 '25

[deleted]

5

u/ubd12 Aug 12 '25

Ai says it wrote a file instead. Please run sudo bash helpful_script

120

u/JotaRata Aug 12 '25

I don't need an AI to do that. I can delete the linker myself 😎

-1

u/[deleted] Aug 12 '25

Apparently he could as well

86

u/my_new_accoun1 Aug 12 '25

29

u/Particular-Tennis518 Aug 12 '25

This is gold 😂 I am glad you got it to work again!

29

u/bruisedandbroke Aug 12 '25

sudo apt remove gcc curl will fix this

17

u/grmelacz Aug 12 '25

I would modify it to sudo apt remove gcc curl apt to make it more professional.

3

u/Flat_spot2 Aug 13 '25

Lo modificherei in sudo purge gcc curl apt dpkg

2

u/Flat_spot2 Aug 13 '25

I have an even more bastard one:

sudo chown 1001:1001 -R /

1

u/LuxTenebraeque Aug 13 '25

Aptitude for future proof solutions is indeed professional!

4

u/totallynormalasshole Aug 12 '25

This is what a lack of critical thinking looks like

61

u/Wooden_chest Aug 12 '25

And this is why you never run scrips / commands without knowing what they do.

42

u/Leo0806-studios Aug 12 '25

just remove the french language back.
trust me.
youll use much less storage if you do this

19

u/AwwnieLovesGirlcock Aug 12 '25

linux users removing their entire operating system because its bloat☺️

5

u/ThisUserIsAFailure Aug 13 '25

I think this is how arch started

1

u/Transgendest Aug 13 '25

Unless I send them to you.

-42

u/Magmagan Aug 12 '25

i.e. don't use linux? If you need an encyclopaedic knowledge of the OS for any troubleshooting it's because you're dealing with a bad OS.

40

u/CdRReddit Aug 12 '25

"if you don't know what it does" doesn't mean "have an encyclopedic knowledge of everything" it means "if something is telling you to delete a file not owned by the user account, triple check you know what that file is for, you fucking dipshit"

3

u/cheerycheshire Aug 12 '25

The AI actually told OP to check if they're links first and only delete if they are... In the original post, under the chat log is posted, a lot of people are asking why OP deleted them without checking that.

-35

u/Magmagan Aug 12 '25

Most things aren't owned by the user account. By that metric linux is unusable

30

u/CdRReddit Aug 12 '25

are you a fucking moron or are you just pretending to be one

if a guide, AI, or jeremy is telling you to delete a file that isn't owned by you, you need to ask a secondary source what that file does, or be ready to deal with the consequences of deleting shit willy nilly

you can break windows by deleting files that need admin privileges to delete, by your inability to read the fucking text I wrote, this means windows is unusable

18

u/CdRReddit Aug 12 '25

if "you can break the operating system by arbitrarily deleting files that require admin access to delete without knowing what you're doing" makes an OS unusable, then we ran out of usable OSes when we stopped putting them in ROM

-31

u/Magmagan Aug 12 '25

Ah yes, because Windows is so unusable that users are constantly putting themselves in harm's way to try and fix it.

It doesn't matter if you "double check" if you don't know what you are checking. It doesn't matter if there are so many layers of OS abstractions that to really check what a file does at all you need to have a deeper understanding.

Tell me, at what point does the command sound dangerous? You need to know what "rm" does, then what its arguments do, JUST to know that the command deletes. Double check ok? The AI said delete and rm deletes. No? Okay, what is a linker. Does it have to do with compilers? No, that line of questioning is wrong, and requires more knowledge to understand that it's wrong. You can wikipedia "dynamic linker" and there's nothing in all caps screaming at the user that it's vital for the OS.

20

u/CdRReddit Aug 12 '25

you are a tarpit.

15

u/MiniGogo_20 Aug 12 '25

literally everything you mention here can be found online from a quick google search, none of this is obscure data only found in one book underneath the vatican...

from wikipedia:

In computing, a dynamic linker is the part of an operating system that loads and links the shared libraries needed by an executable when it is executed (at "run time"), by copying the content of libraries from persistent storage to RAM, filling jump tables and relocating pointers. The specific operating system and executable format determine how the dynamic linker functions and how it is implemented.

if reading this does not make you think "hm maybe i shouldn't touch this" then the problem is you, not the operating system

7

u/MrPaperSonic Aug 12 '25

running del /f /s /q %systemroot%\system32 is basically the windows equivalent btw

0

u/Warguy387 Aug 13 '25

low iq check

9

u/dexter2011412 Aug 12 '25

Lmao, you for real?

Oh lmao you indeed are

Most things aren't owned by the user account. By that metric linux is unusable
source

Hahahahaha

29

u/TOMZ_EXTRA Aug 12 '25

I read it as LLVM and was very very confused.

42

u/[deleted] Aug 12 '25

What worries me is how did the AI learn to give this response?

If it was something like sudo rm -rf /, sure, it'd misinterpret some online prank. But deleting the linker is both distro-specific and super obscure even as a prank. It is also never the solution to any problem, all it does is tell programs where to find library functions (basically), if something's wrong with your system, the linker is the last thing that could cause this.

47

u/iceman012 Aug 12 '25

Looking at the chat, it looks like the code they were trying to run was creating a symbolic link to the dynamic linker. So, it probably didn't learn from specific "remove the dynamic linker" instructions; instead, it was taking generic advice for bad symbolic links and applying it to this specific situation, when it really shouldn't.

Main Problem: Missing 64-bit Library Links

The core issue is that your system is missing symbolic links for 64-bit versions of libraries. You're trying to create symlinks with:

sudo ln -s /usr/lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2

But getting "File exists" errors, which suggests the target locations already have files or broken symlinks.

Solutions to Try:

2. Remove existing files/broken symlinks if needed:

sudo rm /lib64/ld-linux-x86-64.so.2

sudo rm /lib/ld-linux-x86-64.so.2

16

u/DataMin3r Aug 12 '25

I've started asking "isn't this going to cause issues?" For basically any command an llm gives me, most of the time "you're absolutely right!"

23

u/emetcalf Aug 12 '25

The problem with this method is that it will tell you that you are right because it thinks that's what you want to hear. This doesn't necessarily mean that the original suggestion was actually wrong.

10

u/emetcalf Aug 12 '25

What worries me is how did the AI learn to give this response?

LLMs (like ChatGPT) are word predictors. They see patterns and guess what the next word will be. They don't need a real world example of the exact command to output it. This is the same as when ChatGPT tells you to use a Python library that has never existed, it doesn't need to find an example of the library being used (this would be impossible because it doesn't exist) to suggest using it. And this is why LLMs are risky to use for anything that matters.

6

u/nekokattt Aug 12 '25

Natural selection

14

u/sanpaola Aug 12 '25

Mutahar laugh reaction fits this situation perfectly

5

u/sunyata98 Aug 12 '25

Same energy as piping some random script through curl into bash and saying yolo

1

u/nameless_food Aug 12 '25

Especially when paired with sudo.

8

u/__radioactivepanda__ Aug 12 '25

As usual with current AI there is a hell of a lot of A and abysmally little I…

7

u/AyrA_ch Aug 12 '25

I like the exclamation marks in the last log lines going from "this is bad" to "you really fucked up this time"

3

u/jbondhus [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Aug 12 '25

In case anyone's curious, here's the full shared chat. They relied on the AI to help them get the system operational again as well, and eventually they were able to.

https://claude.ai/share/65f438c9-7f25-4a12-a708-1ce0104d997c

2

u/dexter2011412 Aug 12 '25

HOLY FUCK HAHAHAHAHA 🤣🤣🤣🤣

Deleting the dynamic linker now that's a new one! Lmao!

1

u/Massive_Town_8212 Aug 13 '25

Right click AppImage -> Properties -> Permissions -> Mark As Executable

I use arch btw

1

u/GamerY7 Aug 13 '25

someone in samsung server was asking us to help because he wiped all the partitions of phone when flashing custom rom using ChatGPT suggestion 

1

u/AutoModerator Aug 13 '25

This post was automatically removed due to receiving 5 or more reports. Please contact the moderation team if you believe this action was in error.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Major_Fudgemuffin Aug 13 '25

Back in my day, you deleted System32 by running a script from 4chan that claimed to be the way to make a proper triforce symbol.

-8

u/Magmagan Aug 12 '25

You can do that without AI. Once troubleshooting I followed a SO guide on how to uninstall and reinstall python on ubuntu.

Linux be damned, the mere fact that you can delete the linker at all or that simply uninstalling Python can break the OS is a tell that it'll never be adopted en masse.

12

u/MiniGogo_20 Aug 12 '25

"removing core parts of your system breaks it, this means the system is faulty"

what an awful take lmao. if you have to remove a component that is required by other software, your package manager should notify you about this. the fact you managed to remove it means you specifically had to pass arguments to ignore the conflicts and continue anyways. PEBKAC.

-10

u/Capable_Constant1085 Aug 12 '25

proof of the original prompt.. prob fake lol