Skip to content

Commit b13cc05

Browse files
committed
Auto merge of #39021 - alexcrichton:try-debug-travis, r=brson
travis: Attempt to debug OSX linker segfaults This commit attempts to debug the segfaults that we've been seeing on OSX on Travis. I have no idea what's going on here mostly, but let's try to look at core dumps and get backtraces to see what's going on. This commit itself is mostly a complete shot in the dark, I'm not sure if this even works... cc #38878
2 parents d70cd49 + 6ae6160 commit b13cc05

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,44 @@ matrix:
3535
RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin
3636
SRC=.
3737
os: osx
38+
before_script: &osx_before_script >
39+
ulimit -c unlimited
3840
install: &osx_install_sccache >
3941
curl -L https://api.pub.build.mozilla.org/tooltool/sha512/d0025b286468cc5ada83b23d3fafbc936b9f190eaa7d4a981715b18e8e3bf720a7bcee7bfe758cfdeb8268857f6098fd52dcdd8818232692a30ce91039936596 |
4042
tar xJf - -C /usr/local/bin --strip-components=1
43+
after_failure: &osx_after_failure >
44+
echo 'bt all' > cmds;
45+
for file in $(ls /cores); do
46+
echo core file $file;
47+
lldb -c $file `which ld` -b -s cmds;
48+
done
49+
4150
- env: >
4251
SCRIPT="./x.py test && ./x.py dist"
4352
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
4453
SRC=.
4554
DEPLOY=1
4655
os: osx
56+
before_script: *osx_before_script
4757
install: *osx_install_sccache
58+
after_failure: *osx_after_failure
4859
- env: >
4960
RUST_CHECK_TARGET=check
5061
RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin --disable-rustbuild
5162
SRC=.
5263
os: osx
64+
before_script: *osx_before_script
5365
install: *osx_install_sccache
66+
after_failure: *osx_after_failure
5467
- env: >
5568
RUST_CHECK_TARGET=dist
5669
RUST_CONFIGURE_ARGS=--target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios
5770
SRC=.
5871
DEPLOY=1
5972
os: osx
73+
before_script: *osx_before_script
6074
install: *osx_install_sccache
75+
after_failure: *osx_after_failure
6176
6277
env:
6378
global:

0 commit comments

Comments
 (0)