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/13070] Illegal Instruction occurs while accessing time() from library


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

Andreas Jaeger <aj at suse dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |aj at suse dot de

--- Comment #1 from Andreas Jaeger <aj at suse dot de> 2011-08-10 07:54:58 UTC ---
version 2.3.2 of glibc? That is ancient.

The address you get the illegal instruction in is outside of the mapped space
you show, so the reference to time looks wrong.

You're using libpthread - and should know that localtime is not reentrant, use
localtime_r instead.

Without a self-contained test case that shows the problem - and fails also
under current glibc versions, there's nothing we can do.

I suggest to:
* update your distro to a new glibc
* use localtime_r instead
* and if it still fails, create a small self-contained test case to figure out
what's wrong.

-- 
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]