[llvm-commits] [llvm] r149365 - in /llvm/trunk: include/llvm/Constants.h lib/AsmParser/LLParser.cpp lib/Transforms/Instrumentation/AddressSanitizer.cpp lib/VMCore/Constants.cpp lib/VMCore/Core.cpp lib/VMCore/IRBuilder.cpp tools/bugpoint/Miscompil

Alexander Potapenko glider at google.com
Tue Jan 31 04:22:41 PST 2012


On Tue, Jan 31, 2012 at 3:56 PM, Chris Lattner <sabre at nondot.org> wrote:
>
> On Jan 31, 2012, at 12:27 AM, Alexander Potapenko wrote:
>
>> On Tue, Jan 31, 2012 at 10:18 AM, Chris Lattner <sabre at nondot.org> wrote:
>>> Author: lattner
>>> Date: Tue Jan 31 00:18:43 2012
>>> New Revision: 149365
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=149365&view=rev
>>> Log:
>>> eliminate the "string" form of ConstantArray::get, using
>>> ConstantDataArray::getString instead.
>> Chris,
>>
>> our internal (for the moment) ASan buildbot is reporting test failures
>> starting at the range of r149363 to r149365 on Linux x64 and Mac x64
>> Namely they are:
>
> That sounds bad, and I'd definitely like to fix these.  Can you give me more information about how they are failing?  What command line is failing, and with what stack trace?
>
> -Chris
Attached is the log of `make check-all` on my Snow Leopard machine.
Feel free to ask for more information.
-------------- next part --------------
llvm[0]: Running test suite
make[1]: Entering directory `/usr/local/google/asan/asan-llvm-trunk/llvm/build/test'
Making a new site.exp file...
Making LLVM 'lit.site.cfg' file...
Making LLVM unittest 'lit.site.cfg' file...
make -C /usr/local/google/asan/asan-llvm-trunk/llvm/build/test/../tools/clang/test lit.site.cfg Unit/lit.site.cfg
make[2]: Entering directory `/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test'
Making Clang 'lit.site.cfg' file...
Making Clang 'Unit/lit.site.cfg' file...
make[2]: Leaving directory `/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test'
( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v 1024000 ; \
	  /usr/local/google/asan/asan-llvm-trunk/llvm/utils/lit/lit.py -s -v . /usr/local/google/asan/asan-llvm-trunk/llvm/build/test/../tools/clang/test )
lit.py: lit.cfg:146: note: using clang: '/usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/clang'
-- Testing: 9969 tests, 12 threads --
Testing: 0 .. 10.
FAIL: Clang :: CodeGenObjC/arc-ivar-layout.m (1742 of 9969)
******************** TEST 'Clang :: CodeGenObjC/arc-ivar-layout.m' FAILED ********************
Script:
--
/usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/clang -cc1 -internal-isystem /usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/../lib/clang/3.1/include -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -O0 -S /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/arc-ivar-layout.m -o /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/arc-ivar-layout.m.tmp-64.s
FileCheck -check-prefix LP64 --input-file=/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/arc-ivar-layout.m.tmp-64.s /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/arc-ivar-layout.m
--
Exit Code: 1
Command Output (stderr):
--
/usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/arc-ivar-layout.m:20:21: error: expected string not found in input
// CHECK-LP64-NEXT: .asciz "\003"
                    ^
/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/arc-ivar-layout.m.tmp-64.s:126:2: note: scanning from here
 .asciz "\003\000"
 ^
--

********************
Testing: 0 .. 10.
FAIL: Clang :: CodeGenObjC/arc-block-ivar-layout.m (1757 of 9969)
******************** TEST 'Clang :: CodeGenObjC/arc-block-ivar-layout.m' FAILED ********************
Script:
--
/usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/clang -cc1 -internal-isystem /usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/../lib/clang/3.1/include -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -O0 -emit-llvm /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/arc-block-ivar-layout.m -o /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/arc-block-ivar-layout.m.tmp-64.s
FileCheck -check-prefix LP64 --input-file=/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/arc-block-ivar-layout.m.tmp-64.s /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/arc-block-ivar-layout.m
--
Exit Code: 1
Command Output (stderr):
--
/usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/arc-block-ivar-layout.m:37:16: error: expected string not found in input
// CHECK-LP64: @"\01L_OBJC_CLASS_NAME_{{.*}}" = internal global [4 x i8] c"\015\10\00"
               ^
/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/arc-block-ivar-layout.m.tmp-64.s:1:1: note: scanning from here
; ModuleID = '/usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/arc-block-ivar-layout.m'
^
/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/arc-block-ivar-layout.m.tmp-64.s:18:1: note: possible intended match here
@"\01L_OBJC_CLASS_NAME_" = internal global [5 x i8] c"\015\10\00\00", section "__TEXT,__objc_classname,cstring_literals", align 1
^
--

********************
Testing: 0 .. 10..
FAIL: Clang :: CodeGenObjC/block-var-layout.m (1796 of 9969)
******************** TEST 'Clang :: CodeGenObjC/block-var-layout.m' FAILED ********************
Script:
--
/usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/clang -cc1 -internal-isystem /usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/../lib/clang/3.1/include -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-fragile-abi -O0 -emit-llvm /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/block-var-layout.m -o /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/block-var-layout.m.tmp-64.s
FileCheck -check-prefix LP64 --input-file=/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/block-var-layout.m.tmp-64.s /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/block-var-layout.m
--
Exit Code: 1
Command Output (stderr):
--
/usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/block-var-layout.m:50:16: error: expected string not found in input
// CHECK-LP64: @"\01L_OBJC_CLASS_NAME_{{.*}}" = internal global [4 x i8] c"\015\10\00"
               ^
/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/block-var-layout.m.tmp-64.s:1:1: note: scanning from here
; ModuleID = '/usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/block-var-layout.m'
^
/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/block-var-layout.m.tmp-64.s:37:1: note: possible intended match here
@"\01L_OBJC_CLASS_NAME_12" = internal global [6 x i8] c"\01A\11\11\00\00", section "__TEXT,__cstring,cstring_literals", align 1
^
--

********************
Testing: 0 .. 10..
FAIL: Clang :: CodeGenObjC/ivar-layout-64.m (1835 of 9969)
******************** TEST 'Clang :: CodeGenObjC/ivar-layout-64.m' FAILED ********************
Script:
--
/usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/clang -cc1 -internal-isystem /usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/../lib/clang/3.1/include -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-64.m.tmp /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/ivar-layout-64.m
grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"A\\00"' /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-64.m.tmp
grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"\\11q\\10\\00"' /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-64.m.tmp
grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"!q\\00"' /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-64.m.tmp
grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"\\01\\14\\00"' /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-64.m.tmp
/usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/clang -cc1 -internal-isystem /usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/../lib/clang/3.1/include -x objective-c++ -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-64.m.tmp /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/ivar-layout-64.m
grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"A\\00"' /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-64.m.tmp
grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"\\11q\\10\\00"' /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-64.m.tmp
grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"!q\\00"' /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-64.m.tmp
grep '@"\\01L_OBJC_CLASS_NAME_.*" = internal global .* c"\\01\\14\\00"' /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-64.m.tmp
--
Exit Code: 1
Command Output (stdout):
--
@"\01L_OBJC_CLASS_NAME_8" = internal global [2 x i8] c"A\00", section "__TEXT,__objc_classname,cstring_literals", align 1
--

********************
Testing: 0 .. 10..
FAIL: Clang :: CodeGenObjC/ivar-layout-array0-struct.m (1838 of 9969)
******************** TEST 'Clang :: CodeGenObjC/ivar-layout-array0-struct.m' FAILED ********************
Script:
--
/usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/clang -cc1 -internal-isystem /usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/../lib/clang/3.1/include -fobjc-gc -triple x86_64-apple-darwin -fobjc-fragile-abi -O0 -S /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/ivar-layout-array0-struct.m -o /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-array0-struct.m.tmp-64.s
FileCheck -check-prefix LP64 --input-file=/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-array0-struct.m.tmp-64.s /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/ivar-layout-array0-struct.m
--
Exit Code: 1
Command Output (stderr):
--
/usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/ivar-layout-array0-struct.m:23:21: error: expected string not found in input
// CHECK-LP64-NEXT: .asciz "\001\020"
                    ^
/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-array0-struct.m.tmp-64.s:66:2: note: scanning from here
 .asciz "\001\020\000"
 ^
--

********************
Testing: 0 .. 10..
FAIL: Clang :: CodeGenObjC/ivar-layout-no-optimize.m (1839 of 9969)
******************** TEST 'Clang :: CodeGenObjC/ivar-layout-no-optimize.m' FAILED ********************
Script:
--
/usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/clang -cc1 -internal-isystem /usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/../lib/clang/3.1/include -fobjc-gc -triple x86_64-apple-darwin -fobjc-fragile-abi -O0 -S /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/ivar-layout-no-optimize.m -o /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-no-optimize.m.tmp-64.s
FileCheck -check-prefix LP64 --input-file=/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-no-optimize.m.tmp-64.s /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/ivar-layout-no-optimize.m
/usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/clang -cc1 -internal-isystem /usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/../lib/clang/3.1/include -x objective-c++ -fobjc-gc -triple x86_64-apple-darwin -fobjc-fragile-abi -O0 -S /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/ivar-layout-no-optimize.m -o /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-no-optimize.m.tmp-64.s
FileCheck -check-prefix LP64 --input-file=/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-no-optimize.m.tmp-64.s /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/ivar-layout-no-optimize.m
--
Exit Code: 1
Command Output (stderr):
--
/usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjC/ivar-layout-no-optimize.m:20:21: error: expected string not found in input
// CHECK-LP64-NEXT: .asciz "\004"
                    ^
/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjC/Output/ivar-layout-no-optimize.m.tmp-64.s:76:2: note: scanning from here
 .asciz "\004\000"
 ^
--

********************
Testing: 0 .. 10..
FAIL: Clang :: CodeGenObjCXX/block-var-layout.mm (1986 of 9969)
******************** TEST 'Clang :: CodeGenObjCXX/block-var-layout.mm' FAILED ********************
Script:
--
/usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/clang -cc1 -internal-isystem /usr/local/google/asan/asan-llvm-trunk/llvm/build/Release+Asserts/bin/../lib/clang/3.1/include -x objective-c++ -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-fragile-abi -emit-llvm /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjCXX/block-var-layout.mm -o /usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjCXX/Output/block-var-layout.mm.tmp-64.ll
FileCheck -check-prefix LP64 --input-file=/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjCXX/Output/block-var-layout.mm.tmp-64.ll /usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjCXX/block-var-layout.mm
--
Exit Code: 1
Command Output (stderr):
--
/usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjCXX/block-var-layout.mm:40:16: error: expected string not found in input
// CHECK-LP64: @"\01L_OBJC_CLASS_NAME_{{.*}}" = internal global [4 x i8] c"\015\10\00"
               ^
/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjCXX/Output/block-var-layout.mm.tmp-64.ll:1:1: note: scanning from here
; ModuleID = '/usr/local/google/asan/asan-llvm-trunk/llvm/tools/clang/test/CodeGenObjCXX/block-var-layout.mm'
^
/usr/local/google/asan/asan-llvm-trunk/llvm/build/tools/clang/test/CodeGenObjCXX/Output/block-var-layout.mm.tmp-64.ll:37:1: note: possible intended match here
@"\01L_OBJC_CLASS_NAME_12" = internal global [6 x i8] c"\01A\11\11\00\00", section "__TEXT,__cstring,cstring_literals", align 1
^
--

********************
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Testing Time: 33.96s
********************
Failing Tests (7):
    Clang :: CodeGenObjC/arc-block-ivar-layout.m
    Clang :: CodeGenObjC/arc-ivar-layout.m
    Clang :: CodeGenObjC/block-var-layout.m
    Clang :: CodeGenObjC/ivar-layout-64.m
    Clang :: CodeGenObjC/ivar-layout-array0-struct.m
    Clang :: CodeGenObjC/ivar-layout-no-optimize.m
    Clang :: CodeGenObjCXX/block-var-layout.mm

  Expected Passes    : 9876
  Expected Failures  : 73
  Unsupported Tests  : 13
  Unexpected Failures: 7
make[1]: *** [check-local-all] Error 1
make[1]: Leaving directory `/usr/local/google/asan/asan-llvm-trunk/llvm/build/test'
make: *** [check-all] Error 2


More information about the llvm-commits mailing list