[Bug 723708] New: checkproc returns wrong values
https://bugzilla.novell.com/show_bug.cgi?id=723708 https://bugzilla.novell.com/show_bug.cgi?id=723708#c0 Summary: checkproc returns wrong values Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: f.de.kruijf@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Starting amavis with rcamavis as root gives an error message which tells that amavisd did not start. See also the following: # rcamavis status amavis.service - LSB: Start amavisd-new Loaded: loaded (/etc/init.d/amavis) Active: failed since Wed, 12 Oct 2011 16:58:49 +0200; 6h ago Process: 5070 ExecStart=/etc/init.d/amavis start (code=exited, status=7/NOTRUNNING) CGroup: name=systemd:/system/amavis.service ├ 5079 /usr/sbin/amavisd (master) ├ 5085 /usr/sbin/amavisd (virgin child) └ 5086 /usr/sbin/amavisd (virgin child) However amavisd is running. See the follwing: # ps aux | grep amavis vscan 5079 0.0 9.5 217148 97120 ? Ss 16:58 0:01 /usr/sbin/amavisd (master) vscan 5085 0.0 9.4 218420 96144 ? S 16:58 0:00 /usr/sbin/amavisd (virgin child) vscan 5086 0.0 9.4 218420 96136 ? S 16:58 0:00 /usr/sbin/amavisd (virgin child) root 10999 0.0 0.0 6784 872 pts/1 S+ 23:52 0:00 grep amavis The problem lies in the utility checkproc which returns the wrong values: # checkproc amavisd ; echo $? 3 eik121b1v:~ # checkproc -p /var/spool/amavis/amavisd.pid amavisd ; echo $? 1 The return values are 3 and 1, but in both cases the return value must be 0, because amavisd is running. See above. Reproducible: Always Steps to Reproduce: 1.Start amavisd using the command rcamavis as root 2.Check that amavisd is running with ps aux | grep amavis 3.Give the two lines of commands given above and check the returned value. Actual Results: Values 3 and 1. Expected Results: In both cases the return value must be 0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c1
--- Comment #1 from Freek de Kruijf
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c2
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c3
--- Comment #3 from Freek de Kruijf
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c4
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c5
Freek de Kruijf
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c6
--- Comment #6 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c7
--- Comment #7 from Freek de Kruijf
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c8
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c9
--- Comment #9 from Freek de Kruijf
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c10
--- Comment #10 from Freek de Kruijf
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c11
--- Comment #11 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c12
--- Comment #12 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c13
--- Comment #13 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c14
--- Comment #14 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c15
--- Comment #15 from Freek de Kruijf
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c16
Dr. Werner Fink
eik121b1v:~ # more /proc/$(cat /var/spool/amavis/amavisd.pid)/stat 3608 (/usr/sbin/amavi) S 1 3608 3608 0 -1 4202560 11045 0 14 0 127 8 0 0 20 0 1 0 8609 224161792 24720 18446744073709551615 4194304 5645308 140735348404400 140735348403656 140307836922899 0 0 4224 81927 0 0 0 17 0 0 0 20 0 0 eik121b1v:~ #
IMHO this is a kernel bug! The 15 bytes (16 including ASCII zero) should not use the full path but the filename of the program or the script. Hopefully this will not happen on SLES11-SP2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c17
Jiri Slaby
IMHO this is a kernel bug! The 15 bytes (16 including ASCII zero) should not use the full path but the filename of the program or the script.
It contains whatever the task sets as its comm. Either by prctl(PR_SET_NAME) or by writing to /proc/<pid>/comm file. Maybe amavis sets its full path? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c18
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c19
--- Comment #19 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c20
--- Comment #20 from Peter Varkoly
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c21
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c22
--- Comment #22 from Peter Varkoly
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c23
Andreas Bolsch
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c24
--- Comment #24 from Pavel Koshevoy
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c25
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c26
--- Comment #26 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c27
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c28
--- Comment #28 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c29
--- Comment #29 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c30
Stefan Schäfer
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c31
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c32
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c33
--- Comment #33 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c34
--- Comment #34 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c35
--- Comment #35 from Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c36
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c37
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c38
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c39
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c40
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c41
--- Comment #41 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c42
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=723708
https://bugzilla.novell.com/show_bug.cgi?id=723708#c43
Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com