[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

BASH disorder after rpm installation

Posted on 2005-05-09
5
Medium Priority
?
599 Views
Last Modified: 2013-12-23
when i login to my shell with the bash , i get the following error

[root@itsansar ~]# ls
-bash: child setpgid (20559 to 20559): No such process

and when i strace this the output is such as :

[root@itsansar ~]# strace ls
-bash: child setpgid (20559 to 20559): No such process
execve("/bin/ls", ["ls"], [/* 20 vars */]) = 0
brk(0)                                  = 0x80586c8
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=38819, ...}) = 0
old_mmap(NULL, 38819, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001a000
close(3)                                = 0
open("/lib/libtermcap.so.2", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\r\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=11784, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40024000
old_mmap(NULL, 14856, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40025000
old_mmap(0x40028000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x40028000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0,O\1\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1433128, ...}) = 0
old_mmap(NULL, 1166300, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40029000
old_mmap(0x40140000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x117000) = 0x40140000
old_mmap(0x40144000, 7132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40144000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40146000
set_thread_area({entry_number:-1 -> 6, base_addr:0x401466c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0x40140000, 8192, PROT_READ)   = 0
mprotect(0x40018000, 4096, PROT_READ)   = 0
munmap(0x4001a000, 38819)               = 0
brk(0)                                  = 0x80586c8
brk(0x80796c8)                          = 0x80796c8
brk(0x807a000)                          = 0x807a000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=51732080, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40147000
close(3)                                = 0
rt_sigaction(SIGTERM, {0x8049740, [TERM], SA_RESTORER|SA_RESTART, 0x400503a8}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGKILL, {0x8049740, [KILL], SA_RESTORER|SA_RESTART, 0x400503a8}, {SIG_DFL}, 8) = -1 EINVAL (Invalid argument)
rt_sigaction(SIGSTOP, {0x8049740, [STOP], SA_RESTORER|SA_RESTART, 0x400503a8}, {SIG_DFL}, 8) = -1 EINVAL (Invalid argument)
ioctl(1, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=40, ws_col=142, ws_xpixel=0, ws_ypixel=0}) = 0
open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0750, st_size=1024, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 29 entries */, 4096)   = 984
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
open("/etc/mtab", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=366, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
read(3, "/dev/hda9 / ext3 rw 0 0\nnone /pr"..., 4096) = 366
close(3)                                = 0
munmap(0x4001a000, 4096)                = 0
open("/proc/meminfo", O_RDONLY)         = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
read(3, "        total:    used:    free:"..., 4096) = 651
close(3)                                = 0
munmap(0x4001a000, 4096)                = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
write(1, "anaconda-ks.cfg  daily.cvd.rpmsa"..., 121anaconda-ks.cfg  daily.cvd.rpmsave  install.log              libpng            mrtg-2.10.13  qmailmrtg7-4.0.tar.gz   serialmail-0.75.tar.gz
) = 121
write(1, "asdf\t\t gd\t\t    install.log.syslo"..., 97asdf               gd                 install.log.syslog  main.cvd.rpmsave  qmailmrtg7-4.0  qmail-scanner-queue.pl  zlib
) = 97
munmap(0x4001a000, 4096)                = 0
exit_group(0)                           = ?
[root@itsansar ~]#


I cannot make out why this is the problem. The problem occurred when i upgraded by zlib version to zlib-1.2.2.2-3 and glibc version to glibc-2.3.5-6.i386.rpm

I found some posts with *.rpmnew being the problem... There was 3 rpmnews in my /etc folder .. viz
 clamd.conf.rpmnew
 freshclam.conf.rpmnew
 ld.so.conf.rpmnew

I renamed them all and ran ldconfig -v still .. i cannot login with bash stuffs cleared.
I tried and restarted every other thing .. this is my qmail server ..
Everything is running fine except the prompt after every command that is really getting on my nerves.

Hope to see some solutions as soon as possible.

Regards
Nitin




0
Comment
Question by:nitinics
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 375 total points
ID: 13965424
I'm 99.99% certain that your problem is because of the glibc upgrade. Either that rpm wasn't built for your Linux system, it was too much of a jump in versions, or it wans't correctly upgraded.

What Linux do you have, what does 'uname -a' show,  where did you get the glibc rpm, and exactly how did you do the upgrade?
0
 

Author Comment

by:nitinics
ID: 13965685
Dear Jlevie

Thanks for the prompt reply . I guess it might be the problem as well.
uname -a shows up
Linux itsansar 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux

The glibc rpms used for the RPM upgrade was
glibc-2.3.5-6.i386.rpm
glibc-common-2.3.5-6.i386.rpm
glibc-devel-2.3.5-6.i386.rpm
glibc-profile-2.3.5-6.i386.rpm

It was done using rpm -Uvh the previous glibc rpms but i dont know which version the earlier was. And it was done with --nodeps as well.

I upgraded zlib as well ..
zlib-1.2.2.2-3.i386.rpm
zlib-devel-1.2.2.2-3.i386.rpm

Is there anyway i can solve this with minimal possible downtime for the running server .. Your help would be much appreciated

Regards
Nitin
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question