NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/50982: AddressSanitizer CHECK failed



>Number:         50982
>Category:       toolchain
>Synopsis:       AddressSanitizer CHECK failed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 20 07:15:00 +0000 2016
>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:



Home | Main Index | Thread Index | Old Index