LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-15-2015, 03:54 AM   #16
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled

Quote:
Originally Posted by ThatDude92194 View Post
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.
  1. 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.
  2. Feel free to open a new thread. That is way better if it is another problem.
  3. 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.
 
2 members found this post helpful.
Old 10-15-2015, 04:22 AM   #17
ThatDude92194
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
  1. 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.
 
Old 10-15-2015, 05:13 AM   #18
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by ThatDude92194 View Post
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.
 
Old 10-15-2015, 05:20 AM   #19
ThatDude92194
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
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 View Post
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:
Code:
/etc/profile.d/libglib2.sh: line 21:  1647 Done
      1648 Segmentation fault      | grep -iq UTF
Segmentation fault
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?
 
Old 10-15-2015, 05:35 AM   #20
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by ThatDude92194 View Post
Hmm... "grep -iq UTF". Doesn't that sound locale-related?
Absolutely not. Here:
Code:
~$ echo $LANG

~$ sh /etc/profile.d/libglib2.sh 
~$
So, as you see I have LANG unset (that is, "$LANG" = "") and no segmentation fault at all.

More, generally, hopefully a test() that returns false should never trigger a segmentation fault. Otherwise the system couldn't even start...

To know more see http://pubs.opengroup.org/onlinepubs...ties/test.html
 
Old 10-15-2015, 05:52 AM   #21
ThatDude92194
LQ Newbie
 
Registered: Oct 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Absolutely not. Here:
Code:
~$ echo $LANG

~$ sh /etc/profile.d/libglib2.sh 
~$
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.
 
Old 10-15-2015, 06:21 AM   #22
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Good luck.
 
Old 10-15-2015, 09:12 AM   #23
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
what is line 21 of /etc/profile.d/libglib2.sh
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware current: Firefox 16.0 segmentation fault burdi01 Slackware 7 10-10-2012 10:03 AM
xgames current 13.37 segmentation fault anti_user Slackware 7 03-20-2011 04:23 AM
smbtree Segmentation Fault (Slackware64-Current) Jack128 Slackware 1 04-04-2010 03:56 AM
Sylpheed segmentation fault in Slackware -current Affromen Slackware 1 02-20-2010 06:22 AM
mplayerplug-in with current causes segmentation fault Daedra Slackware 2 03-27-2009 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration