Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hi.
I have recently installed PLOS, and have been toying around with it for some days.
But yesterday I unfortunately ran into a when Im trying to use the *su* command, and here is how it goes:
If I open a terminal or console and try to acess root privileges by using the *su* command my system is going wild.
The CPU raise from its ususal 5% to 100%, and the tasks rise from ca 100 up to several 1000!
This constant opening of new tasks is eating up my RAM (1GB). And when no ram is left, it start to fill up my swap (1,6GB) as well, until there is no memory left, real or virtual..
While this frenzy is going on I find myself unable to stop the process(-es?), not even being able to log out. In the end the system freeze, leaving my with no other options than to use the reset button.
I have tried to find out what is broken, if there is a conflict or mal-configuration.
Googling the net gave no help, and I have been looking at LinuxQuestions for some hints as well.
While Im trying to locate the problem, I found this:
If I open a new virtual Console terminal using Ctrl+Alt+F1, Im able to log on as root.
If I first log on a virtual terminal as user, and then try to log on as root using the su command, all hell break loose..
If I open PCLinuxOS Control Center (PCC) and then go to /system/console the CPU is firing up to 100%, but Im able to stop the prosess by choosing File/exit or closing the window.
I logged in to a desktop as root instead of user, and tried the different terminals and consoles.
Here is what I found:
When I open one of xterm, aterm, terminal & Xfcf-terminal I encontered problems, but the KDE-konsole(superuser-mode), YaKuake & the PCC/system/console worked fine. On the other hand, if I did "su user" and then "su root" it gave me problems. But I could stop the evil process by closing the console/terminal window.
I have also sucessfully stopped the wild process by restarting the X-server by using Ctrl+Alt+Backsp, both as user and as root. Restarting X was possible as long as I used the option early, before the process had frozen my system by eating up all memory.
So, since Im able to use su, as long as it used as root, to change to an "downgraded" user, my intuitive rasoning brings me to the conlusion that the su command may not be the problem. On the other hand its actually after I have typed my password, and striked enter, the hell break loose. So it may have something to do with su in relation to some kind of authentication-process or initiating-prosess?
Being able to stop the uncontrolled process by restarting the X-server indicate that the X-server is involved.
I have tried to look at the different system-logs, but as a relative newbee, I must admit that I dont know exactly what Im looking for, and where..
I also have made some snapshots of the system using the "top" command:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8667 root 20 0 4360 3300 776 R 6.5 0.3 0:24.34 top
13099 root 20 0 4000 3068 776 R 6.2 0.3 0:04.70 top
57 root 21 0 0 0 0 R 3.4 0.0 0:01.25 kswapd0
548 root 20 0 171m 22m 4240 S 1.9 2.3 2:17.53 X
24430 root 20 0 1708 600 436 S 0.9 0.1 0:00.03 ksh
56 root 20 0 0 0 0 S 0.3 0.0 0:00.18 pdflush
24075 root 35 0 1712 604 436 S 0.3 0.1 0:00.01 ksh
24097 root 35 0 1708 600 436 S 0.3 0.1 0:00.01 ksh
24119 root 35 0 1708 600 436 S 0.3 0.1 0:00.01 ksh
24165 root 35 0 1712 600 436 S 0.3 0.1 0:00.01 ksh
24187 root 36 0 1712 604 436 S 0.3 0.1 0:00.01 ksh
24253 root 36 0 1708 600 436 S 0.3 0.1 0:00.01 ksh
24496 root 20 0 1708 600 436 S 0.3 0.1 0:00.01 ksh
24540 root 20 0 1708 600 436 S 0.3 0.1 0:00.01 ksh
24586 root 20 0 1708 600 436 S 0.3 0.1 0:00.01 ksh
24785 root 20 0 1712 600 436 S 0.3 0.1 0:00.01 ksh
24895 root 21 0 1712 604 436 S 0.3 0.1 0:00.01 ksh
25095 root 21 0 1712 604 436 S 0.3 0.1 0:00.01 ksh
25139 root 21 0 1712 604 436 S 0.3 0.1 0:00.01 ksh
25161 root 21 0 1708 600 436 S 0.3 0.1 0:00.01 ksh
25184 root 21 0 1708 600 436 S 0.3 0.1 0:00.01 ksh
25316 root 22 0 1712 604 436 S 0.3 0.1 0:00.01 ksh
25450 root 22 0 1708 600 436 S 0.3 0.1 0:00.01 ksh
25560 root 22 0 1708 600 436 S 0.3 0.1 0:00.01 ksh
25627 root 22 0 1712 600 436 S 0.3 0.1 0:00.01 ksh
1 root 20 0 1548 500 448 S 0.0 0.0 0:00.90 init
2 root 39 19 0 0 0 R 0.0 0.0 0:00.23 ksoftirqd/0
3 root 15 -5 0 0 0 S 0.0 0.0 0:00.80 events/0
As you may see, this "ksh" is a loose horse..
Sometimes ksh is filling the whole screen, from top to bottom, and I suspect this endless proliferation is eating my RAM..
I suspect ksh is the Korn shell, pdksh.
When I check pdksh for removal in Synaptic, I see the Xorg11 packages is dependent on pdksh.
So, this is where I am. Something is broken in my system, and Im not able to pinpoint it, and correct it.
I have provided all the information I have been able to gather, and hopefully someone can tell me what is wrong, and how to correct it.
Hi, I haven't run a memtest, but Im currently reading about it.
And I also agree that 1.6 GB swap is overkill on Linux.
It's probably a bad habit I have left over from the days in M$-world,
where they usually set the page.sys file to 1.5xRAM..
I'll never do it again, Im still learning.. ;-)
"too much" swap won't cause a malfunction---the machine just won't use it.
Did you try a GUI login as root?
If you cure this by simply re-installing, you would not be the first.....Things get glitched--power surges, cosmic rays, etc. One of the many reasons that I argue that coumputers are not deterministic.
Well, I have encountered some other problems too. Hardware that was working perfectly after install, dosen't seem to work anymore. So I've decided to do a clean install. It had been nice to solve this problem, if not for anything else than to gain some new knowlegde of my favorite OS.
I will reduce my swap to 2x350MB on my new system ;-)
By the way, I tried to logg on as root, and it gave me inconsistent results:
If I tried to open xterm, aterm, terminal & Xfce-terminal I encontered problems.
YaKuake & KDE-konsole(superuser-mode) gave me no problems, but if I did "su user", and then "su" or "su root" I encountered problems with these 2 terminals to, but "su -" gave me no problems.
At age 10, I developed a reputation for fixing lawnmowers by disassembling, cleaning, and re-assembling. If I was successful, I never knew WHY.
Now--much older--I re-live this behavior with computers.
On Windows, you learn to re-boot to fix any number of glitches and to do a clean install AT LEAST once per year. In spite of claims of robustness, Linux may also sometimes benefit from this unscientific approach.
there is some truth in that, but if you really look after your system then there's no need to. i've run the same slackware system for a few years and it still works great.
but we all get tempted to do a "apt-get dist-upgrade" or a <fill in your package mangager>.
and we don't trim the log files and manage our accounts....
it's a human thing - lazyness? busyness i think....
Hi
Yes, I know this thread is old, but I got the same problem today.
I had some printing problems, and therefore installed the xprint-rpm form one of the pclos repositories.
Shortly after, when trying to log in as root (su + passw) in Konsole, my mashine chrashed as described in message above.
When substituted *xprint*-rpm with *xorg-x11-Xpt*-rpm my problem disappeared.
So, the *1.0-0.008_20030508.2mdk* version of xprint is somehow causing a problem or conflict when installed.
This may be a distro-specific problem, anyway,
do anybody have any idea where to report this 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.