[swift-dev] Current master is failing on 3 tests
Nadav Rotem
nrotem at apple.com
Thu Dec 31 17:32:22 CST 2015
Thanks for reverting. I fixed the issue in cd71f51 and verified that the tests pass with LLVM assertions enabled.
> On Dec 31, 2015, at 12:08 PM, Nadav Rotem via swift-dev <swift-dev at swift.org> wrote:
>
> Yes, I introduced the failing tests (and the bug) a few hours ago. Sorry. It looks like the bug is in the call to APInt::divrem() with mismatch bitwidth APInts. I am currently away from my computer. Feel free to comment out the tests and I'll fix the problem in a few hours.
>
>
>
> Sent from my iPhone
>
>> On Dec 31, 2015, at 11:34, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>>
>> +Nadav who committed these tests in 25832d39b22eb30370e7f1dc855e4919590f528f.
>>
>> On Thu, Dec 31, 2015 at 8:51 PM, Kevin Ballard via swift-dev
>> <swift-dev at swift.org> wrote:
>>> Running tests on current master fails on 3 tests every time. I already checked to make sure I'm fully up-to-date. They reproduce with just `build-script -t`.
>>>
>>> FAIL: Swift-Unit :: Basic/SwiftBasicTests/Compression.FlatEncoding (2266 of 2451)
>>> ******************** TEST 'Swift-Unit :: Basic/SwiftBasicTests/Compression.FlatEncoding' FAILED ********************
>>> Note: Google Test filter = Compression.FlatEncoding
>>> [==========] Running 1 test from 1 test case.
>>> [----------] Global test environment set-up.
>>> [----------] 1 test from Compression
>>> [ RUN ] Compression.FlatEncoding
>>> Assertion failed: (LHS.BitWidth == RHS.BitWidth && "Bit widths must be the same"), function udivrem, file /Users/kevin/Dev/Swift/Apple/llvm/lib/Support/APInt.cpp, line 1937.
>>> 0 SwiftBasicTests 0x000000010648094b llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
>>> 1 SwiftBasicTests 0x000000010647fba6 llvm::sys::RunSignalHandlers() + 70
>>> 2 SwiftBasicTests 0x000000010648116f SignalHandler(int) + 575
>>> 3 libsystem_platform.dylib 0x00007fff97a9feaa _sigtramp + 26
>>> 4 libsystem_platform.dylib 000000000000000000 _sigtramp + 1750466928
>>> 5 SwiftBasicTests 0x0000000106480e86 abort + 22
>>> 6 SwiftBasicTests 0x0000000106480e61 __assert_rtn + 81
>>> 7 SwiftBasicTests 0x000000010643e9f8 llvm::APInt::udivrem(llvm::APInt const&, llvm::APInt const&, llvm::APInt&, llvm::APInt&) + 2504
>>> 8 SwiftBasicTests 0x00000001065308e6 DecodeFixedWidth(llvm::APInt&) + 230
>>> 9 SwiftBasicTests 0x0000000106530795 swift::Compress::DecodeStringFromNumber(llvm::APInt const&, swift::Compress::EncodingKind) + 341
>>> 10 SwiftBasicTests 0x00000001063b77d7 Compression_FlatEncoding_Test::TestBody() + 167
>>> 11 SwiftBasicTests 0x0000000106415291 testing::Test::Run() + 801
>>> 12 SwiftBasicTests 0x0000000106416ac0 testing::TestInfo::Run() + 848
>>> 13 SwiftBasicTests 0x00000001064171e3 testing::TestCase::Run() + 483
>>> 14 SwiftBasicTests 0x0000000106420029 testing::internal::UnitTestImpl::RunAllTests() + 1353
>>> 15 SwiftBasicTests 0x000000010641faca testing::UnitTest::Run() + 106
>>> 16 SwiftBasicTests 0x0000000106436bc6 main + 70
>>> 17 libdyld.dylib 0x00007fff8ad685ad start + 1
>>> 18 libdyld.dylib 0x0000000000000002 start + 1965652566
>>>
>>> ********************
>>> FAIL: Swift-Unit :: Basic/SwiftBasicTests/Compression.FullCompression (2267 of 2451)
>>> ******************** TEST 'Swift-Unit :: Basic/SwiftBasicTests/Compression.FullCompression' FAILED ********************
>>> Note: Google Test filter = Compression.FullCompression
>>> [==========] Running 1 test from 1 test case.
>>> [----------] Global test environment set-up.
>>> [----------] 1 test from Compression
>>> [ RUN ] Compression.FullCompression
>>> Assertion failed: (LHS.BitWidth == RHS.BitWidth && "Bit widths must be the same"), function udivrem, file /Users/kevin/Dev/Swift/Apple/llvm/lib/Support/APInt.cpp, line 1937.
>>> 0 SwiftBasicTests 0x000000010296394b llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
>>> 1 SwiftBasicTests 0x0000000102962ba6 llvm::sys::RunSignalHandlers() + 70
>>> 2 SwiftBasicTests 0x000000010296416f SignalHandler(int) + 575
>>> 3 libsystem_platform.dylib 0x00007fff97a9feaa _sigtramp + 26
>>> 4 libsystem_platform.dylib 0x00007fb682c0f880 _sigtramp + 3944151536
>>> 5 SwiftBasicTests 0x0000000102963e86 abort + 22
>>> 6 SwiftBasicTests 0x0000000102963e61 __assert_rtn + 81
>>> 7 SwiftBasicTests 0x00000001029219f8 llvm::APInt::udivrem(llvm::APInt const&, llvm::APInt const&, llvm::APInt&, llvm::APInt&) + 2504
>>> 8 SwiftBasicTests 0x0000000102a138e6 DecodeFixedWidth(llvm::APInt&) + 230
>>> 9 SwiftBasicTests 0x0000000102a13795 swift::Compress::DecodeStringFromNumber(llvm::APInt const&, swift::Compress::EncodingKind) + 341
>>> 10 SwiftBasicTests 0x0000000102a13c0e swift::Compress::CompressName(llvm::StringRef) + 686
>>> 11 SwiftBasicTests 0x000000010289b69a Compression_FullCompression_Test::TestBody() + 138
>>> 12 SwiftBasicTests 0x00000001028f8291 testing::Test::Run() + 801
>>> 13 SwiftBasicTests 0x00000001028f9ac0 testing::TestInfo::Run() + 848
>>> 14 SwiftBasicTests 0x00000001028fa1e3 testing::TestCase::Run() + 483
>>> 15 SwiftBasicTests 0x0000000102903029 testing::internal::UnitTestImpl::RunAllTests() + 1353
>>> 16 SwiftBasicTests 0x0000000102902aca testing::UnitTest::Run() + 106
>>> 17 SwiftBasicTests 0x0000000102919bc6 main + 70
>>> 18 libdyld.dylib 0x00007fff8ad685ad start + 1
>>> 19 libdyld.dylib 0x0000000000000002 start + 1965652566
>>>
>>> ********************
>>> FAIL: Swift-Unit :: Basic/SwiftBasicTests/Compression.VariableLength (2270 of 2451)
>>> ******************** TEST 'Swift-Unit :: Basic/SwiftBasicTests/Compression.VariableLength' FAILED ********************
>>> Note: Google Test filter = Compression.VariableLength
>>> [==========] Running 1 test from 1 test case.
>>> [----------] Global test environment set-up.
>>> [----------] 1 test from Compression
>>> [ RUN ] Compression.VariableLength
>>> Assertion failed: (LHS.BitWidth == RHS.BitWidth && "Bit widths must be the same"), function udivrem, file /Users/kevin/Dev/Swift/Apple/llvm/lib/Support/APInt.cpp, line 1937.
>>> 0 SwiftBasicTests 0x0000000103f2c94b llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
>>> 1 SwiftBasicTests 0x0000000103f2bba6 llvm::sys::RunSignalHandlers() + 70
>>> 2 SwiftBasicTests 0x0000000103f2d16f SignalHandler(int) + 575
>>> 3 libsystem_platform.dylib 0x00007fff97a9feaa _sigtramp + 26
>>> 4 libsystem_platform.dylib 0x0000ffff00001f80 _sigtramp + 1750474992
>>> 5 SwiftBasicTests 0x0000000103f2ce86 abort + 22
>>> 6 SwiftBasicTests 0x0000000103f2ce61 __assert_rtn + 81
>>> 7 SwiftBasicTests 0x0000000103eea9f8 llvm::APInt::udivrem(llvm::APInt const&, llvm::APInt const&, llvm::APInt&, llvm::APInt&) + 2504
>>> 8 SwiftBasicTests 0x0000000103fdc8e6 DecodeFixedWidth(llvm::APInt&) + 230
>>> 9 SwiftBasicTests 0x0000000103fdc795 swift::Compress::DecodeStringFromNumber(llvm::APInt const&, swift::Compress::EncodingKind) + 341
>>> 10 SwiftBasicTests 0x0000000103e63e44 Compression_VariableLength_Test::TestBody() + 164
>>> 11 SwiftBasicTests 0x0000000103ec1291 testing::Test::Run() + 801
>>> 12 SwiftBasicTests 0x0000000103ec2ac0 testing::TestInfo::Run() + 848
>>> 13 SwiftBasicTests 0x0000000103ec31e3 testing::TestCase::Run() + 483
>>> 14 SwiftBasicTests 0x0000000103ecc029 testing::internal::UnitTestImpl::RunAllTests() + 1353
>>> 15 SwiftBasicTests 0x0000000103ecbaca testing::UnitTest::Run() + 106
>>> 16 SwiftBasicTests 0x0000000103ee2bc6 main + 70
>>> 17 libdyld.dylib 0x00007fff8ad685ad start + 1
>>> 18 libdyld.dylib 0x0000000000000002 start + 1965652566
>>>
>>> ********************
>>> Testing Time: 358.38s
>>> ********************
>>> Failing Tests (3):
>>> Swift-Unit :: Basic/SwiftBasicTests/Compression.FlatEncoding
>>> Swift-Unit :: Basic/SwiftBasicTests/Compression.FullCompression
>>> Swift-Unit :: Basic/SwiftBasicTests/Compression.VariableLength
>>>
>>> Expected Passes : 2408
>>> Expected Failures : 5
>>> Unsupported Tests : 35
>>> Unexpected Failures: 3
>>> *** Failed while running tests for swift (check-swift-macosx-x86_64)
>>>
>>> -Kevin Ballard
>>> _______________________________________________
>>> swift-dev mailing list
>>> swift-dev at swift.org
>>> https://lists.swift.org/mailman/listinfo/swift-dev
>>
>>
>>
>> --
>> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
>> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20151231/caf22ce4/attachment.html>
More information about the swift-dev
mailing list