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/21276] gettimeofday() segfaults when called before libc init() and before calling _dl_vdso_vsym()


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.

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