Skip to content

Commit 6ae6160

Browse files
committed
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
1 parent b27c709 commit 6ae6160

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,27 +35,42 @@ 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
RUST_CHECK_TARGET=check
4352
RUST_CONFIGURE_ARGS=--build=i686-apple-darwin
4453
SRC=.
4554
os: osx
55+
before_script: *osx_before_script
4656
install: *osx_install_sccache
57+
after_failure: *osx_after_failure
4758
- env: >
4859
RUST_CHECK_TARGET=check
4960
RUST_CONFIGURE_ARGS=--build=x86_64-apple-darwin --disable-rustbuild
5061
SRC=.
5162
os: osx
63+
before_script: *osx_before_script
5264
install: *osx_install_sccache
65+
after_failure: *osx_after_failure
5366
- env: >
5467
RUST_CHECK_TARGET=
5568
RUST_CONFIGURE_ARGS=--target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios
5669
SRC=.
5770
os: osx
71+
before_script: *osx_before_script
5872
install: *osx_install_sccache
73+
after_failure: *osx_after_failure
5974
6075
env:
6176
global:

0 commit comments

Comments
 (0)