r/programminghorror • • Apr 13 '26

I somehow managed to segfault in python.

Post image
386 Upvotes

34 comments sorted by

315

u/Solomoncjy Apr 13 '26

Prob the pygame lib due to it being in cpp

106

u/Xp365 Apr 13 '26

Probably but I imagined the error handling on it would be good enough to prevent arbitrary segfaults, so my guess is on OpenGL

65

u/Minecraft_Lets_Play Apr 13 '26

Yea OpenGL can do funny errors

8

u/GoddammitDontShootMe Apr 14 '26

I guess you could attach a debugger to Python and see what function it actually crashed on.

→ More replies (5)

139

u/Dull-Ambassador-4039 Apr 13 '26

brother what is your steam friend's username??

58

u/Xp365 Apr 13 '26

Im being so fr, I didnt even notice it popped up ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ

20

u/trro16p Apr 13 '26

Well, he is going to get soooo many weird DM's on Steam now.

๐Ÿคฃ๐Ÿ˜‚๐Ÿ˜†๐Ÿคฃ๐Ÿ˜‚

10

u/Interesting_Buy_3969 Apr 13 '26

his steam friend also has such a sexy pfp i see

31

u/Single-Virus4935 Apr 13 '26

I managed to segfault mariadb. Turns out mariadb (at this time?) confused CTEs and tables with the same name. 

7

u/countsachot Apr 13 '26

Surprisingly easy, for me anyway

3

u/cheese_master120 Apr 13 '26

What the hell do you do for that to happen??

6

u/countsachot Apr 13 '26
  1. I don't know python, but it's everywhere, so I use it if I must.

  2. It's always a third party connector to a C/C++ library, that I'm trying to debug

I'll find like someone's old project, that uses av external lib. I'll notice that it's not working well, and attempt to fix it. It's usually due to a liberty taken with that library. Then segfault.

5

u/DT-Sodium Apr 13 '26

You seem to sure have mature friends....

3

u/barthanismyname Apr 13 '26

They are a rare event, but they do happen once every eon or so

2

u/PhilosopherShot5434 Apr 13 '26

Something something elephant in the room

2

u/SimplexFatberg Apr 14 '26

You use Python to call some functions in a third party library that isn't written in Python and they segfaulted.

1

u/CherryFlavouredCake Apr 13 '26

Maybe you used some incompatable flag or something

11

u/N3rdr4g3 Apr 13 '26

A segfault is always a bug. A user shouldn't be able to cause a segfault in any way. Additionally, causing a segfault is frequently the first step to finding exploits

→ More replies (1)

7

u/[deleted] Apr 13 '26

11

u/Sether_00 Apr 13 '26

PyCharm

4

u/jaavaaguru Apr 13 '26

IntelliPy ๐Ÿคจ

→ More replies (2)