content_shell_crash_test fails on mac in component builds |
|||||
Issue descriptionI recently added content_shell_crash_test to the clang tot bots. It fails on ToTMac: https://ci.chromium.org/buildbot/chromium.clang/ToTMac/1649 https://chromium-swarm.appspot.com/task?id=3d9ef442783bbd10&refresh=10&show_raw=1 dyld: Library not loaded: @rpath/libbase.dylib Referenced from: /b/s/w/ir/out/Release/Content Shell.app/Contents/Frameworks/Content Shell Framework.framework/Helpers/crashpad_handler Reason: image not found Looks like we probably need something like if (is_component_build) { ldflags += [ # The helper is in Chromium.app/Contents/Versions/X/Chromium Helper.app/Conents/MacOS/ # so set rpath up to the base. "-rpath", "@loader_path/../../../../../../..", ] } for crashpad_helper?
,
May 22 2018
,
May 22 2018
Need to adjust rpath while copying over here: https://cs.chromium.org/chromium/src/content/shell/BUILD.gn?q=crashpad_handler+file:%5C.gn&sq=package:chromium&dr=C&l=626 This in the vicinity mentions install_name_tool and how it might not be the tool for the job and what to do instead: https://cs.chromium.org/chromium/src/content/shell/BUILD.gn?q=install_name_tool&sq=package:chromium&dr=C&l=748
,
Jun 1 2018
This attempts to make things work: https://cs.chromium.org/chromium/src/third_party/crashpad/crashpad/handler/BUILD.gn?l=140 I'll try and see why it doesn't seem to work.
,
Jun 1 2018
Via: https://cs.chromium.org/chromium/src/testing/scripts/content_shell_crash_test.py?q=content_shell_crash_test&sq=package:chromium&l=82&dr=C https://cs.chromium.org/chromium/src/content/shell/tools/breakpad_integration_test.py?q=breakpad_integration_test&sq=package:chromium&dr ...oh also a t the bottom of https://chromium-swarm.appspot.com/task?id=3d9ef442783bbd10&refresh=10&show_raw=1 : ./Content Shell.app/Contents/MacOS/Content Shell --run-web-tests chrome://crash --enable-crash-reporter --crash-dumps-dir=/b/s/w/it98oREX/tmpZflWJI hrmmm passes for me locally?
,
Jun 1 2018
Aha I can repro if I run it like so: content/shell/tools/breakpad_integration_test.py --verbose --build-dir out/gn --binary out/gn/Content\ Shell.app/Contents/MacOS/Content\ Shell
,
Jun 1 2018
Aha, I ran it with a space instead of a = after --crash-dumps-dir, this repros too: out/gn/Content\ Shell.app/Contents/MacOS/Content\ Shell --run-web-tests chrome://crash --enable-crash-reporter --crash-dumps-dir=chrome
,
Jun 1 2018
DYLD_PRINT_RPATHS=1 out/gn/Content\ Shell.app/Contents/MacOS/Content\ Shell --run-web-tests chrome://crash --enable-crash-reporter --crash-dumps-dir=chrome ... RPATH failed to expanding @rpath/libbase.dylib to: /Users/thakis/src/chrome/src/out/gn/Content Shell.app/Contents/Frameworks/Content Shell Framework.framework/Versions/C/Helpers/../../../../../../../../libbase.dylib RPATH failed to expanding @rpath/libbase.dylib to: /Users/thakis/src/chrome/src/out/gn/Content Shell.app/Contents/Frameworks/Content Shell Framework.framework/Versions/C/Helpers/../../../../../libbase.dylib RPATH failed to expanding @rpath/libbase.dylib to: /Users/thakis/src/chrome/src/out/gn/Content Shell.app/Contents/Frameworks/Content Shell Framework.framework/Versions/C/Helpers/./libbase.dylib RPATH failed to expanding @rpath/libbase.dylib to: /Users/thakis/src/chrome/src/out/gn/Content Shell.app/Contents/Frameworks/Content Shell Framework.framework/Versions/C/Helpers/../../../libbase.dylib
,
Jun 1 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/b9fc1f0e2535b5cd57527013d575ebcb99ce968b commit b9fc1f0e2535b5cd57527013d575ebcb99ce968b Author: Nico Weber <thakis@chromium.org> Date: Fri Jun 01 22:06:00 2018 mac: Make content_shell_crash_test work in component builds again. This regressed in https://chromium-review.googlesource.com/c/chromium/src/+/967155 Bug: 845451 Change-Id: I7b5f5fb1925c4c354d4796e154905b32909691df Reviewed-on: https://chromium-review.googlesource.com/1083251 Reviewed-by: Robert Sesek <rsesek@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#563821} [modify] https://crrev.com/b9fc1f0e2535b5cd57527013d575ebcb99ce968b/third_party/crashpad/crashpad/handler/BUILD.gn
,
Jun 4 2018
This issue is fixed. One of the tests in content_shell_crash_test still fails on that bot, but let's use a new bug for that.
,
Jun 4 2018
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by thakis@chromium.org
, May 22 2018