Skip Menu |
 

This queue is for tickets about the Time-HiRes CPAN distribution.

Report information
The Basics
Id: 87160
Status: resolved
Priority: 0/
Queue: Time-HiRes

People
Owner: Nobody in particular
Requestors: galama [...] mailfish.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From galama [...] mailfish.de Mon Jul 22 12: 39:49 2013
MIME-Version: 1.0
X-Spam-Status: No, score=-6.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Spam-Flag: NO
X-Provags-ID: V02:K0:LFkOt5EmwTywq2y1ensA9XG1aGmJWYGoOl9GY1F3OZW gC6Byva5qzZZDDvN57tXg32IBd2Wjc8Q+QjWkqRN59+7ekFbl5 8TKTsz9WNOaKZtSPOZw0NUeYO2lTJLjYKNV5esaIL+cGY1LXbm uR/BJ+jG0EDC4dYGNMLfyM+vjRtpAkow46JicuoJw9TTOf6ybK QcwrzLAs53rablMjq042kESKhA81QFscwFG5I7/7akVyO+8Vrr ZzICO2V77whWSeE6WMQgCL1B1x6pRYaM5AjZQLwMYwDJ15Mowd 5fvgYSZhQsUvJ29+kxTPD/lA7hl7CY8VvWF1zOKTL2P9hql5SO 0DWc8pY18jHg8cH67YlA=
content-type: text/plain; charset="utf-8"
Message-ID: <51ED6048.3080206 [...] mailfish.de>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -6.9
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 416722403C5 for <cpan-bug+Time-HiRes [...] hipster.bestpractical.com>; Mon, 22 Jul 2013 12:39:49 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YD-nUBgg8yju for <cpan-bug+Time-HiRes [...] hipster.bestpractical.com>; Mon, 22 Jul 2013 12:39:48 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id C4BBB24025F for <bug-Time-HiRes [...] rt.cpan.org>; Mon, 22 Jul 2013 12:39:47 -0400 (EDT)
Received: (qmail 29669 invoked by alias); 22 Jul 2013 16:39:46 -0000
Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.17.10) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 22 Jul 2013 09:39:42 -0700
Received: from localhost (dslb-188-098-078-178.pools.arcor-ip.net [188.98.78.178]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MNvyt-1V3oO22xoZ-0070TO; Mon, 22 Jul 2013 18:39:37 +0200
Delivered-To: cpan-bug+Time-HiRes [...] hipster.bestpractical.com
Subject: Time::HiRes::alarm() ignores EINVAL from setitimer()
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20100101 Firefox/22.0 SeaMonkey/2.19
Return-Path: <galama [...] mailfish.de>
X-RT-Mail-Extension: time-hires
X-Original-To: cpan-bug+Time-HiRes [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Date: Mon, 22 Jul 2013 18:39:36 +0200
X-Spam-Level:
To: bug-Time-HiRes [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Anand Galama <galama [...] mailfish.de>
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 680
Download (untitled) / with headers
text/plain 680b
According to the docs, alarm() is supposed to return undef if an error occurred. This is not the case when setitimer() sets EINVAL: $ strace -e trace=setitimer,write perl -MTime::HiRes=alarm -E '$|=1; say $Time::HiRes::VERSION; say alarm(1); say alarm(3000);' >/dev/null write(1, "1.9725\n", 7) = 7 setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={1, 0}}, {it_interval={0, 0}, it_value={0, 0}}) = 0 write(1, "0\n", 2) = 2 setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={18446744073709550322, 18446744073708584320}}, 0x7fff4a0a6d90) = -1 EINVAL (Invalid argument) write(1, "0\n", 2) = 2 +++ exited with 0 +++ $
MIME-Version: 1.0
In-Reply-To: <51ED6048.3080206 [...] mailfish.de>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: API
References: <51ED6048.3080206 [...] mailfish.de>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.13-24989-1374675913-1768.0-0-0 [...] rt.cpan.org>
Message-ID: <rt-4.0.13-24989-1374675913-375.87160-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
From: galama [...] mailfish.de
Content-Length: 101
Download (untitled) / with headers
text/plain 101b
Moreover, the setitimer() arguments are completely messed up. it_value should actually be {3000, 0}.
MIME-Version: 1.0
In-Reply-To: <51ED6048.3080206 [...] mailfish.de>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <51ED6048.3080206 [...] mailfish.de>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.16-18265-1376780520-1001.87160-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 40
Fixed in Time-HiRes-1.9726, now on CPAN.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.