Score:0

Ubuntu started randomly segfaulting after force power off due to usage of RAM

in flag

So I accidentally ran a script which used up all of the RAM on my ubuntu system, and I had to force it to power off. When I rebooted the system, programs would randomly segfault, even though I changed nothing and they had never done this before. How would I fix my server so that these programs start working again? I've already tried reinstalling them via APT, but that doesn't seem to help.

guiverc avatar
cn flag
Had to force it to power off? Why didn't you command the kernel to safely shutdown (ie. SysRq key + commands allow you to bypass any running programs/X/GUI etc and directly command the kernel?). You should never need to use the power-off button (except where kernel panic is involved; as then you can't direct the kernel to do anything as it's already dead). Given you powered your system off (unclean shutdown), did you `fsck` your system & check for *logical* errors?
Epic Programmer avatar
in flag
@guiverc I tried to fsck my system using the recommended method but I can't tell if it did anything, as bootup takes the same time with or without the "fsck check". Furthermore, the laptop running the server doesn't have a SysRq key, only a print screen key.
Epic Programmer avatar
in flag
By a miracle another restart seems to have fixed all of the problems, so I'll be happy that it's not permanently dead.
guiverc avatar
cn flag
Many *modern* keyboards don't have SysRq marked on the keys (as a majority of users never used the key, not having it marked made the device appear *cleaner*, eg. 2019-2021 dell laptops don't), but if you know where the key is - it still works (though some models require an extra *Fn* key to be pressed to get the SysRq key effect; but how the key is achieved is machine specific, esp. *firmware* on the machine).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.