This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/21276] gettimeofday() segfaults when called before libc init() and before calling _dl_vdso_vsym()
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 20 Mar 2017 18:20:57 +0000
- Subject: [Bug libc/21276] gettimeofday() segfaults when called before libc init() and before calling _dl_vdso_vsym()
- Auto-submitted: auto-generated
- References: <bug-21276-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21276
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Vinitha Vijayan from comment #2)
> I am tracing pthread library using Pthread Trace Tool
> (http://nptltracetool.sourceforge.net/). The initialization of ptt tracing,
> is done after pthread_initialization in the _init section. Here to get the
> timestamp, gettimeofday() is called. HP-TIMING cannot be used here as ARM
> doesn't support that.
>
> For earlier version of glibc, this was working fine.
> Since the vdso support was enabled for gettimeofday, this SEGV is observed.
What ptt is doing is undefined. You cannot poke at such library internals and
expect things are going to work. One of the issues you might encounter could
still be fixed along with bug 21041, though.
--
You are receiving this mail because:
You are on the CC list for the bug.