Bug#502435: perl: Time::HiRes alarm is broken for etchnhalf kernels
On Fri, Oct 17, 2008 at 10:24:09AM +0100, Anton Ivanov wrote: This sounds #448965 revisited, is the kernel returning EINVAL here? It actually worked with 2.6.18. 2.6.18 complained: media-server kernel: setitimer: processor .pl (pid = 2675) provided invalid timeval it_value: tv_sec = 0 tv_usec = 500 Yes, the support for invalid timeval values was deprecated in 2.6.18 and removed in 2.6.22, as it was a POSIX violation. See http://rt.cpan.org/Public/Bug/Display.html?id=34655 for some details. I agree it is 448965 and the diff from there should probably be considered for as a bugfix for stable. I'll take this up with the stable release team. The fix is as simple as adding -Ud_ualarm to debian/config.debian. This activates the ualarm() emulation code in ext/Time/HiRes.xs that uses setitimer() with valid timeval values. -- Niko Tyni [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#502435: perl: Time::HiRes alarm is broken for etchnhalf kernels
On Thu, Oct 16, 2008 at 01:56:54PM +0100, Anton Ivanov wrote: Package: perl Version: 5.8.8-7etch3 Severity: important Time::HiRes alarm implementation which is used by quite a few bits and pieces written in perl is completely broken on etchnhalf kernels. Any alarms set this way are never triggered. This sounds #448965 revisited, is the kernel returning EINVAL here? # strace -e setitimer perl -MTime::HiRes=alarm -e 'alarm 2; sleep 4' -- Niko Tyni [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#502435: perl: Time::HiRes alarm is broken for etchnhalf kernels
This sounds #448965 revisited, is the kernel returning EINVAL here? Just read 448965. It actually worked with 2.6.18. 2.6.18 complained: media-server kernel: setitimer: processor .pl (pid = 2675) provided invalid timeval it_value: tv_sec = 0 tv_usec = 500 However, it still worked despite the complaint. I agree it is 448965 and the diff from there should probably be considered for as a bugfix for stable. -- Understanding is a three-edged sword: your side, their side, and the truth. --Kosh Naranek A. R. Ivanov E-mail: [EMAIL PROTECTED] WWW: http://www.sigsegv.cx/ pub 1024D/DDE5E715 2002-03-03 Anton R. Ivanov [EMAIL PROTECTED] Fingerprint: C824 CBD7 EE4B D7F8 5331 89D5 FCDA 572E DDE5 E715 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#502435: perl: Time::HiRes alarm is broken for etchnhalf kernels
Indeed it does: media-server:~# strace -e setitimer perl -MTime::HiRes=alarm -e 'alarm 2; sleep 4' setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 200}}, 0xbfd3fff8) = -1 EINVAL (Invalid argument) Process 2743 detached media-server:~# On Fri, 2008-10-17 at 09:57 +0300, Niko Tyni wrote: On Thu, Oct 16, 2008 at 01:56:54PM +0100, Anton Ivanov wrote: Package: perl Version: 5.8.8-7etch3 Severity: important Time::HiRes alarm implementation which is used by quite a few bits and pieces written in perl is completely broken on etchnhalf kernels. Any alarms set this way are never triggered. This sounds #448965 revisited, is the kernel returning EINVAL here? # strace -e setitimer perl -MTime::HiRes=alarm -e 'alarm 2; sleep 4' -- Understanding is a three-edged sword: your side, their side, and the truth. --Kosh Naranek A. R. Ivanov E-mail: [EMAIL PROTECTED] WWW: http://www.sigsegv.cx/ pub 1024D/DDE5E715 2002-03-03 Anton R. Ivanov [EMAIL PROTECTED] Fingerprint: C824 CBD7 EE4B D7F8 5331 89D5 FCDA 572E DDE5 E715 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#502435: perl: Time::HiRes alarm is broken for etchnhalf kernels
Package: perl Version: 5.8.8-7etch3 Severity: important Time::HiRes alarm implementation which is used by quite a few bits and pieces written in perl is completely broken on etchnhalf kernels. Any alarms set this way are never triggered. -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.24-etchnhalf.1-686 Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) Versions of packages perl depends on: ii libc6 2.3.6.ds1-13etch7 GNU C Library: Shared libraries ii libdb4.4 4.4.20-8 Berkeley v4.4 Database Libraries [ ii libgdbm3 1.8.3-3 GNU dbm database routines (runtime ii perl-base 5.8.8-7etch3 The Pathologically Eclectic Rubbis ii perl-modules 5.8.8-7etch3 Core Perl modules Versions of packages perl recommends: pn perl-doc none (no description available) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]