This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/13567] New: overflow in emulated timer_settime() on Linux/HPPA at least


http://sourceware.org/bugzilla/show_bug.cgi?id=13567

             Bug #: 13567
           Summary: overflow in emulated timer_settime() on Linux/HPPA at
                    least
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: P@draigBrady.com
    Classification: Unclassified


Created attachment 6150
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6150
An strace of the problematic timeout run

When testing recent coreutils releases on parisc linux, it was noticed
that timer_settime($large_num) would cause the timer
to immediately fire when $large_num spanned the 2038 boundary.
This function is used by the `timeout` utility.

Seems to me that time_t is overflowing,
and being interpreted as a negative number.
Note time_t is signed 32-bit on this platform.

$ uname -srm
Linux 2.6.22.19 parisc

$ /lib/libc.so.6 GNU C Library stable release version 2.7, by Roland McGrath et
al.
Copyright (C) 2007 Free Software Foundation, Inc.
...
Compiled by GNU CC version 4.3.2.
Compiled on a Linux >>2.6.32-5-parisc<< system on 2011-01-07.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        linuxthreads-0.10 by Xavier Leroy
        libthread_db work sponsored by Alpha Processor Inc
        Support for some architectures added on, not maintained in glibc core.
        BIND-8.2.3-T5B

$ grep HAVE_TIMER_SETTIME ../lib/config.h
#define HAVE_TIMER_SETTIME 1

$ nm timeout|grep ' U timer'
         U timer_create@@GLIBC_2.2
         U timer_delete@@GLIBC_2.2
         U timer_settime@@GLIBC_2.2

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]