Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Redhat / Fedora Linux Help
Reload this Page Zombies Being Created ( Bug? )
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Redhat / Fedora Linux Help Help and discussion related to Redhat and Fedora Linux.

Reply
 
Thread Tools Display Modes
Old 07-07-2008   #1 (permalink)
Just Joined!
 
Join Date: Jul 2008
Posts: 1
Zombies Being Created ( Bug? )

Hello All,

I'm seeing a zombie problem in Redhat 5 that does not occur in Redhat 4.

My version info is: Red Hat Enterprise Linux Server release 5.1 (Tikanga)
My Linux kernel is: Linux 2.6.18-53.1.6.el5 #1 SMP Wed Jan 16 03:56:15 EST 2008 x86_64

The following script produces zombies of the "ls" program. The "ls" is nested in sub-shell backquotes.

#!/bin/ksh
trap "" 17
which gzip
FOUND=0
while [ $FOUND = 0 ]
do
retval=`ls *.log 2>/dev/null | wc -l `
echo "retval=$retval"
sleep 1
done


/nss/rtns/v_running/scripts> ./nss_test &

retval= 0
retval= 0
retval= 0

ps -f
UID PID PPID C STIME TTY TIME CMD
rtns 15084 31190 0 Jul03 pts/6 00:00:00 /bin/ksh -i
rtns 16458 15084 0 10:26 pts/6 00:00:09 xterm -n xterm -ls -sl 900 -T Xterm900
rtns 19229 15084 0 16:12 pts/6 00:00:00 /bin/ksh ./nss_test
rtns 19231 19229 0 16:12 pts/6 00:00:00 [ls] <defunct>
rtns 19232 19229 0 16:12 pts/6 00:00:00 [ls] <defunct>
rtns 19235 19229 0 16:12 pts/6 00:00:00 [ls] <defunct>
rtns 19236 15084 0 16:12 pts/6 00:00:00 ps -f

...

Now, if I comment out the "which gzip" or if I give "trap" a non-null string argument, it won't spawn zombies..

#!/bin/ksh
trap "echo sigchld.. >/dev/null" SIGCHLD
which gzip
FOUND=0
while [ $FOUND = 0 ]
do
retval=`ls *.log 2>/dev/null | wc -l `
echo "retval=$retval"
sleep 1
done


/nss/rtns/v_running/scripts> ./nss_test &
[3] 19244
/nss/rtns/v_running/scripts> /bin/gzip
retval= 0
retval= 0
retval= 0
retval= 0
retval= 0

/nss/rtns/v_running/scripts> retval= 0

ps -f

UID PID PPID C STIME TTY TIME CMD
rtns 15084 31190 0 Jul03 pts/6 00:00:00 /bin/ksh -i
rtns 16458 15084 0 10:26 pts/6 00:00:09 xterm -n xterm -ls -sl 900 -T Xterm900
rtns 19244 15084 0 16:16 pts/6 00:00:00 /bin/ksh ./nss_test
rtns 19250 15084 0 16:16 pts/6 00:00:00 ps -f

If I comment out the "which gzip" zombies do not occur..
If I replace the "which gzip" with "echo abc" or something else, the zombies do not occur. There seems to be something about the "which" program that causes corruption.

Any advice as to the reasons why I'm seeing this?

Thanks in advanced..

Joe
jkoziate is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 05:27 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0