NetBSD Problem Report #50982
From www@NetBSD.org Sun Mar 20 07:14:20 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 842B27A210
for <gnats-bugs@gnats.NetBSD.org>; Sun, 20 Mar 2016 07:14:20 +0000 (UTC)
Message-Id: <20160320071419.7C7DD7ACB6@mollari.NetBSD.org>
Date: Sun, 20 Mar 2016 07:14:19 +0000 (UTC)
From: noloader@gmail.com
Reply-To: noloader@gmail.com
To: gnats-bugs@NetBSD.org
Subject: AddressSanitizer CHECK failed
X-Send-Pr-Version: www-1.0
>Number: 50982
>Category: toolchain
>Synopsis: AddressSanitizer CHECK failed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: toolchain-manager
>State: closed
>Class: support
>Submitter-Id: net
>Arrival-Date: Sun Mar 20 07:15:00 +0000 2016
>Closed-Date: Sun Aug 18 05:30:18 +0000 2019
>Last-Modified: Sun Aug 18 05:30:18 +0000 2019
>Originator: Jeffrey Walton
>Release: 7.0, x86_64
>Organization:
Crypto++ Project
>Environment:
$ uname -a
NetBSD netbsd-7 7.0 NetBSD 7.0 (GENERIC.201509250726Z) amd64
$ gcc --version
gcc (nb2 20150115) 4.8.4
...
>Description:
Encountered during routine testing of Crypto++ on NetBSD platform. This particular test exercises a "release build" of the library under C++11 and Address Sanitizer (ASAN).
$ ./cryptst.sh
...
g++ -o cryptest.exe -DNDEBUG -g2 -O2 -std=c++11 -Wno-deprecated-declarations -fPIC -m64 -pipe -fsanitize=address -fno-omit-frame-pointer bench.o bench2.o test.o validat1.o validat2.o validat3.o adhoc.o datatest.o regtest.o fipsalgt.o dlltest.o ./libcryptopp.a
==9548== AddressSanitizer CHECK failed: /usr/src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_netbsd.cc:352 "((*current_++)) == ((' '))" (0x0, 0x20)
#0 0x7f7ff4416a49 (/usr/lib/libasan.so.0.0+0x16a49)
#1 0x7f7ff4422c5a (/usr/lib/libasan.so.0.0+0x22c5a)
#2 0x7f7ff4410a49 (/usr/lib/libasan.so.0.0+0x10a49)
#3 0x7f7ff4410b58 (/usr/lib/libasan.so.0.0+0x10b58)
#4 0x7f7ff4411649 (/usr/lib/libasan.so.0.0+0x11649)
#5 0x7f7ff441178a (/usr/lib/libasan.so.0.0+0x1178a)
#6 0x7f7ff44118f1 (/usr/lib/libasan.so.0.0+0x118f1)
#7 0x7f7ff441735c (/usr/lib/libasan.so.0.0+0x1735c)
#8 0x6aafa2 (/home/jwalton/cryptopp/cryptest.exe+0x6aafa2)
#9 0x4669c5 (/home/jwalton/cryptopp/cryptest.exe+0x4669c5)
>How-To-Repeat:
The issue can be duplicated with a reduced test case:
$ cat test.cxx
#include <iostream>
int main (int argc, char* argv[])
{
return 0;
}
$ g++ -DNDEBUG -g2 -O2 -std=c++11 -fPIC -m64 -pipe -fsanitize=address -fno-omit-frame-pointer test.cxx -o test.exe
$ ./test.exe
==9548== AddressSanitizer CHECK failed: /usr/src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_netbsd.cc:352 "((*current_++)) == ((' '))" (0x0, 0x20)
#0 0x7f7ff4416a49 (/usr/lib/libasan.so.0.0+0x16a49)
#1 0x7f7ff4422c5a (/usr/lib/libasan.so.0.0+0x22c5a)
#2 0x7f7ff4410a49 (/usr/lib/libasan.so.0.0+0x10a49)
#3 0x7f7ff4410b58 (/usr/lib/libasan.so.0.0+0x10b58)
#4 0x7f7ff4411649 (/usr/lib/libasan.so.0.0+0x11649)
#5 0x7f7ff441178a (/usr/lib/libasan.so.0.0+0x1178a)
#6 0x7f7ff44118f1 (/usr/lib/libasan.so.0.0+0x118f1)
#7 0x7f7ff441735c (/usr/lib/libasan.so.0.0+0x1735c)
#8 0x400b9e (/home/jwalton/test.exe+0x400b9e)
#9 0x400b05 (/home/jwalton/test.exe+0x400b05)
>Fix:
>Release-Note:
>Audit-Trail:
From: Jeffrey Walton <noloader@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: toolchain/50982: AddressSanitizer CHECK failed
Date: Thu, 24 Mar 2016 23:49:40 -0400
>>Category: toolchain
>>Responsible: toolchain-manager
>>Synopsis: AddressSanitizer CHECK failed
>>Arrival-Date: Sun Mar 20 07:15:00 +0000 2016
This may have something to do with "GCC5 and the C++11 ABI",
http://developerblog.redhat.com/2015/02/05/gcc5-and-the-c11-abi/.
From: Maya Rashish <maya@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: toolchain/50982: AddressSanitizer CHECK failed
Date: Mon, 12 Dec 2016 09:46:33 +0000
This seems no longer reproducible in current, fix possibly from
http://mail-index.netbsd.org/tech-userlevel/2016/11/30/msg010386.html
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 18 Aug 2019 05:30:18 +0000
State-Changed-Why:
ttest case now works, and address sanitizer has seen a lot of improvements in general, assuming fixed. thanks for the report!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.