[llvm-bugs] [Bug 50529] New: [lld/mac/arm64] Two of Chromium's base_unittests fail when linked with lld

via llvm-bugs llvm-bugs at lists.llvm.org
Sat May 29 12:53:33 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50529

            Bug ID: 50529
           Summary: [lld/mac/arm64] Two of Chromium's base_unittests fail
                    when linked with lld
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: gkm at fb.com, jezreel at gmail.com,
                    llvm-bugs at lists.llvm.org, smeenai at fb.com

repro:
https://drive.google.com/file/d/1YvyZxh_ItvL1hdVeaab-kU7zm-d1AokX/view?usp=sharing
(17M bzipped, 79M extracted -- not huge)

With ld64:

% ld @response.txt
% ./base_unittests '--gtest_filter=MessagePumpMacTest.*'
IMPORTANT DEBUGGING NOTE: batches of tests are run inside their
own process. For debugging a test inside a debugger, use the
--gtest_filter=<your_test_name> flag along with
--single-process-tests.
Using sharding settings from environment. This is shard 0/1
Using 1 parallel jobs.
[12105:259:ERROR:icu_util.cc(179)] icudtl.dat not found in bundle
[12105:259:ERROR:icu_util.cc(243)] Invalid file descriptor to ICU data
received.
Note: Google Test filter =
MessagePumpMacTest.ScopedPumpMessagesInPrivateModes:MessagePumpMacTest.ScopedPumpMessagesAttemptWithModalDialog:MessagePumpMacTest.QuitWithModalWindow
[==========] Running 3 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 3 tests from MessagePumpMacTest
[ RUN      ] MessagePumpMacTest.ScopedPumpMessagesInPrivateModes
[       OK ] MessagePumpMacTest.ScopedPumpMessagesInPrivateModes (42 ms)
[ RUN      ] MessagePumpMacTest.ScopedPumpMessagesAttemptWithModalDialog
[       OK ] MessagePumpMacTest.ScopedPumpMessagesAttemptWithModalDialog (41
ms)
[ RUN      ] MessagePumpMacTest.QuitWithModalWindow
[       OK ] MessagePumpMacTest.QuitWithModalWindow (30 ms)
[----------] 3 tests from MessagePumpMacTest (114 ms total)

[----------] Global test environment tear-down
[==========] 3 tests from 1 test suite ran. (114 ms total)
[  PASSED  ] 3 tests.
[1/3] MessagePumpMacTest.ScopedPumpMessagesInPrivateModes (42 ms)
[2/3] MessagePumpMacTest.ScopedPumpMessagesAttemptWithModalDialog (41 ms)
[3/3] MessagePumpMacTest.QuitWithModalWindow (30 ms)
SUCCESS: all tests passed.


But with lld:

% ./base_unittests '--gtest_filter=MessagePumpMacTest.*'
IMPORTANT DEBUGGING NOTE: batches of tests are run inside their
own process. For debugging a test inside a debugger, use the
--gtest_filter=<your_test_name> flag along with
--single-process-tests.
Using sharding settings from environment. This is shard 0/1
Using 1 parallel jobs.
[12111:259:ERROR:icu_util.cc(179)] icudtl.dat not found in bundle
[12111:259:ERROR:icu_util.cc(243)] Invalid file descriptor to ICU data
received.
Note: Google Test filter =
MessagePumpMacTest.ScopedPumpMessagesInPrivateModes:MessagePumpMacTest.ScopedPumpMessagesAttemptWithModalDialog:MessagePumpMacTest.QuitWithModalWindow
[==========] Running 3 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 3 tests from MessagePumpMacTest
[ RUN      ] MessagePumpMacTest.ScopedPumpMessagesInPrivateModes
[       OK ] MessagePumpMacTest.ScopedPumpMessagesInPrivateModes (36 ms)
[ RUN      ] MessagePumpMacTest.ScopedPumpMessagesAttemptWithModalDialog
[12110:259:ERROR:test_launcher.cc(1093)] no test result for
MessagePumpMacTest.QuitWithModalWindow
[1/3] MessagePumpMacTest.ScopedPumpMessagesInPrivateModes (36 ms)
[2/3] MessagePumpMacTest.ScopedPumpMessagesAttemptWithModalDialog (CRASHED)
[3/3] MessagePumpMacTest.QuitWithModalWindow (SKIPPED)
1 test crashed:
    MessagePumpMacTest.ScopedPumpMessagesAttemptWithModalDialog
(../../base/message_loop/message_pump_mac_unittest.mm:99)
1 test not run:
    MessagePumpMacTest.QuitWithModalWindow
(../../base/message_loop/message_pump_mac_unittest.mm:121)
Tests took 0 seconds.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210529/a4670685/attachment.html>


More information about the llvm-bugs mailing list