Bug 180256 - alarm() not returning correct value
Summary: alarm() not returning correct value
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Keywords:
: 180257 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-06 20:20 UTC by Jonathan Kamens
Modified: 2007-11-30 22:11 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2006-02-06 21:18:09 UTC


Attachments (Terms of Use)

Description Jonathan Kamens 2006-02-06 20:20:04 UTC
With glibc-2.3.90-30.i686.rpm installed February 1 along with about 1,000 
other FC devel packages, including kernel-smp-2.6.15-1.1884_FC5smp and gcc-
4.1.0-0.18, this C program:

#include <unistd.h>
#include <stdio.h>

main()
{
  alarm(5);
  printf("alarm returned %d\n", alarm(0));
}

prints "alarmed return 0'.  It *should* print "alarm returned 5" or 
perhaps "alarm returned 4".

Comment 1 Jonathan Kamens 2006-02-06 20:21:49 UTC
*** Bug 180257 has been marked as a duplicate of this bug. ***

Comment 2 Jakub Jelinek 2006-02-06 21:18:09 UTC
Sorry, can't reproduce this.  On all arches I have tried (which includes
i686), with glibc-2.3.90-36 the program prints 5.

Comment 3 Jonathan Kamens 2006-02-06 21:54:09 UTC
It was a kernel bug.  It's gone in the current Raw Hide kernel.



Note You need to log in before you can comment on or make changes to this bug.