From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31249 invoked by alias); 11 Nov 2013 07:47:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31188 invoked by uid 48); 11 Nov 2013 07:47:55 -0000 From: "eugeni.stepanov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/59063] [4.9 Regression] ASAN: segfault in __interceptor_clock_gettime Date: Mon, 11 Nov 2013 07:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eugeni.stepanov at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg01025.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063 --- Comment #11 from Evgeniy Stepanov --- (In reply to Yury Gribov from comment #4) > (In reply to Andrew Pinski from comment #3) > > I think in newer versions of glibc, clock_gettime is in libc.so now too. > > I think Andrew is right - clock_gettime is in libc nowadays. Should we > wontfix this bug? A trivial WAR for users would be to add -lrt to cmdline. > > (In reply to Evgeniy Stepanov from comment #2) > > We should link with libasan with librt. In Clang, we add -lrt to the linker > > flags when we see -fsanitize=(address|thread|memory). > > Evgeniy, what about a warning in GetRealFunctionAddress if real symbol is > NULL? Warning sounds like a good idea.