Bug#628617: psmisc: killall often fails with Assertion `process_age_sec 0' failed.
tags 628617 - moreinfo thanks I've tried various process and values for the process_age_sec and I have been able to get that warning. Are you still getting this and what sort of things are you trying to kill? Erm, processes? :) The problem is that killall asserts that the age of a process, as a floating-point number of seconds, must always be greater than zero. However, that value has a resolution of one jiffy[*], so it may very well be equal to zero if a process was launched within the same time slice as the call to process_age(). (Actually, as the value is obtained by substracting two floating-point values, it sometimes falls slightly below zero.) You may attempt to trigger this bug yourself by launching a bunch of short-lived processes. In one terminal, run: $ while true; do sleep 5s; done 2 /dev/null And in another: $ while true; do killall sleep --younger-than 5s | cat ; done Whether or not this works for you will depend on your particular machine. I myself had great success on virtual machines (Xen and VirtualBox), none at all on an small Atom box, and it was hit-and-miss on my desktop. (For some reason, the pipe to cat helped.) [*] So says proc(5), but it's actually 0.01s here, despite CONFIG_HZ=250 -- The easiest way to get the root password is to become system admin. -- Unknown source -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#628617: psmisc: killall often fails with Assertion `process_age_sec 0' failed.
tags 628617 moreinfo thankyou Hello, I've tried various process and values for the process_age_sec and I have been able to get that warning. Are you still getting this and what sort of things are you trying to kill? - Craig -- Craig Small VK2XLZ http://enc.com.au/ csmall at : enc.com.au Debian GNU/Linux http://www.debian.org/ csmall at : debian.org GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#628617: psmisc: killall often fails with Assertion `process_age_sec 0' failed.
Package: psmisc Version: 22.13-1 Severity: normal Attempting to use --older-than or --younger-than often triggers the following error: killall: killall.c:386: kill_all: Assertion `process_age_sec 0' failed. Aborted This is probably due to a slight skew, where newborn processes may appear to have a slightly negative age. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: i386 (x86_64) Kernel: Linux 2.6.39+sunix-amd64+ (SMP w/3 CPU cores) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages psmisc depends on: ii libc6 2.13-4 Embedded GNU C Library: Shared lib ii libncurses5 5.9-1 shared libraries for terminal hand psmisc recommends no packages. psmisc suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org