This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13070] Illegal Instruction occurs while accessing time() from library
- From: "aj at suse dot de" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Wed, 10 Aug 2011 07:55:28 +0000
- Subject: [Bug libc/13070] Illegal Instruction occurs while accessing time() from library
- Auto-submitted: auto-generated
- References: <bug-13070-131@http.sourceware.org/bugzilla/>
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.