Segmentation fault when running anything after a failed upgrade to -current
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Come on, guys! I thought ya knew better. I'll stop referencing that now because it's even making me cringe.
But seriously, it WAS my system locale. You know how I know? Because I put a shell script in profile.d to set LANG and everything except X (and apparently ncurses, but it works, just with garbage data because I'm using UTF8 all of a sudden) magically worked again. I already said that. The upgrade finished successfully before I ever rebooted, so I know it didn't leave half-installed packages. Besides, I already got my old install DVD and replaced all the 14.1 packages.
MY ONLY PROBLEM RIGHT NOW IS X DOESN'T WORK. That's all. None of the symptoms in the OP are there anymore. I fixed it, and without a "wipe and install" either. I've removed the package serieses X, XAP, KDE, KDEI, and XFCE so that I can easily go through, delete leftover configs from /etc, and reinstall them good as new. If that doesn't work, I'll need help again, and I'll start a new thread because nobody is reading anything except the OP before they try to help.
It was certainly not your system locale. It is impossible that just changing it could have either caused or solved the issues you mentioned. More probably what (partially) solved the issue was one of the other changes you made and maybe of which you forgot to take a note.
Feel free to open a new thread. That is way better if it is another problem.
Nemo auditur propriam turpitudinem allegans. In other words, don't blame others for your own mistakes. Unless you just want to discourage those who try to help you, of course.
It was certainly not your system locale. It is impossible that just changing it could have either caused or solved the issues you mentioned. More probably what (partially) solved the issue was one of the other changes you made and maybe of which you forgot to take a note.
It certainly was my system locale. I didn't HAVE one. The update somehow got rid of my LANG environment variable entirely. I can see how you would think that having a wrong locale would not cause problems to my original extent, but it seems that not having one at all was causing the problem. I didn't just randomly decide to try changing it, you know. I thought bash was screwed, so I tried chrooting in and using su to start a login shell with zsh. That segfaulted too, but it gave me an error message that said there was something wrong with a shellscript related to libglib2. It was even helpful enough to print the line in question, which was trying to check the LANG variable.
Sorry for the angry tone of my message, I've just had a long day and I get hopeful every time I open my emails and see a new reply, only to have my hopes crushed when I find said reply is trying to help me fix an issue I already fixed independently. I'm certainly grateful that people are trying to help me, I just wish they'd check all my posts.
It certainly was my system locale. I didn't HAVE one. The update somehow got rid of my LANG environment variable entirely. I can see how you would think that having a wrong locale would not cause problems to my original extent, but it seems that not having one at all was causing the problem. I didn't just randomly decide to try changing it, you know. I thought bash was screwed, so I tried chrooting in and using su to start a login shell with zsh. That segfaulted too, but it gave me an error message that said there was something wrong with a shellscript related to libglib2. It was even helpful enough to print the line in question, which was trying to check the LANG variable
Sorry, but I don't accept your explanation.
I just rebooted after having commented out the line that set and export LANG in /etc/profile.d/lang.sh and my system works. I checked that LANG be not set before posting this, of course.
So, I think that you came too hastily to a conclusion from the information you gathered.
The only way to make sure would be to exhibit more evidence, like posting (a link to) the shell script in question, the line you printed, whatever.
So, in your further posts please include as much as you can of such factual information, like content of files, exact error messages, output of helpful commands, settings and such. This could help us to help you.
The only way to make sure would be to exhibit more evidence, like posting (a link to) the shell script in question, the line you printed, whatever.
See, this right here is why I want people to read my posts before they try to help me. I DID post the line that was printed. Here, I'll quote myself.
Quote:
Originally Posted by ThatDude92194
I'm certain I don't need to completely reinstall, even if a LOT of packages need to be replaced. But I'm fairly sure I don't even need to do that. I was experimenting with the LiveCD chrooted into my actual system again and I got this when I ran su -l -c zsh declan:
So I'm guessing this would indicate that I've screwed up my system locale, which is a lot narrower of a problem to work with. Does anyone know how I can fix this without, er, going the Windows route?
Hmm... "grep -iq UTF". Doesn't that sound locale-related?
So, as you see I have LANG unset (that is, "$LANG" = "") and no segmentation fault at all.
... You do know you haven't actually addressed what I said? It had some problem running grep to try and find UTF. What else is UTF related to?!
Anyway, yay for you. How your system works is irrelevant. For all I know you could have installed some experimental package that I've never heard of that manages locale better. More realistically, for all I know I could have unknowingly changed how locale works when I ran the upgrade. I also know what I did. I have facebook chat logs with my aforementioned friend, in which I documented everything I did, in real time. The full segfaulting command, which seems to have been overwritten with the text "Segmentation fault" before I typed it into the forum post, was echo $LANG | grep -iq UTF. I sent this to my friend and he told me to try quitting su, setting LANG to en_US.UTF8 and then running su --preserve-environment (I was working from a chroot at the time). I did this and what do you know, no more segfaults. So I don't care that you can't reproduce this on your system. What matters is, this was how it worked on mine. Which is the one with the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.