Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 254f879

Browse files
committedJul 13, 2018
Auto merge of #52352 - kennytm:rollup, r=kennytm
Rollup of 17 pull requests Successful merges: - #51962 (Provide llvm-strip in llvm-tools component) - #52003 (Implement `Option::replace` in the core library) - #52156 (Update std::ascii::ASCIIExt deprecation notes) - #52280 (llvm-tools-preview: fix build-manifest) - #52290 (Deny bare trait objects in src/librustc_save_analysis) - #52293 (Deny bare trait objects in librustc_typeck) - #52299 (Deny bare trait objects in src/libserialize) - #52300 (Deny bare trait objects in librustc_target and libtest) - #52302 (Deny bare trait objects in the rest of rust) - #52310 (Backport 1.27.1 release notes to master) - #52315 (Resolve FIXME(#27942)) - #52316 (task: remove wrong comments about non-existent LocalWake trait) - #52322 (Update llvm-rebuild-trigger in light of LLVM 7 upgrade) - #52330 (Don't silently ignore invalid data in target spec) - #52333 (CI: Enable core dump on Linux, and print their stack trace on segfault. ) - #52346 (Fix typo in improper_ctypes suggestion) - #52350 (Bump bootstrap compiler to 1.28.0-beta.10) Failed merges: r? @ghost
2 parents fe29a4c + ea9b8dd commit 254f879

File tree

58 files changed

+239
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+239
-88
lines changed
 

‎.travis.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ sudo: required
33
dist: trusty
44
services:
55
- docker
6+
addons:
7+
apt:
8+
packages:
9+
- gdb
610

711
git:
812
depth: 2
@@ -249,6 +253,8 @@ before_script:
249253
export RUN_SCRIPT="$RUN_SCRIPT && src/ci/run.sh";
250254
else
251255
export RUN_SCRIPT="$RUN_SCRIPT && src/ci/docker/run.sh $IMAGE";
256+
# Enable core dump on Linux.
257+
sudo sh -c 'echo "/checkout/obj/cores/core.%p.%E" > /proc/sys/kernel/core_pattern';
252258
fi
253259
254260
# Log time information from this machine and an external machine for insight into possible
@@ -274,6 +280,8 @@ after_failure:
274280
275281
# Random attempt at debugging currently. Just poking around in here to see if
276282
# anything shows up.
283+
284+
# Dump backtrace for macOS
277285
- ls -lat $HOME/Library/Logs/DiagnosticReports/
278286
- find $HOME/Library/Logs/DiagnosticReports
279287
-type f
@@ -284,8 +292,24 @@ after_failure:
284292
-exec head -750 {} \;
285293
-exec echo travis_fold":"end:crashlog \; || true
286294

295+
# Dump backtrace for Linux
296+
- ln -s . checkout &&
297+
for CORE in obj/cores/core.*; do
298+
EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|');
299+
if [ -f "$EXE" ]; then
300+
printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE";
301+
gdb -q -c "$CORE" "$EXE"
302+
-iex 'set auto-load off'
303+
-iex 'dir src/'
304+
-iex 'set sysroot .'
305+
-ex bt
306+
-ex q;
307+
echo travis_fold":"end:crashlog;
308+
fi;
309+
done || true
310+
287311
# see #50887
288-
- head -30 ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
312+
- cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
289313

290314
# attempt to debug anything killed by the oom killer on linux, just to see if
291315
# it happened

‎RELEASES.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,29 @@ Compatibility Notes
140140
[`{Any + Send + Sync}::downcast_ref`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_ref-2
141141
[`{Any + Send + Sync}::is`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.is-2
142142

143+
Version 1.27.1 (2018-07-10)
144+
===========================
145+
146+
Security Notes
147+
--------------
148+
149+
- rustdoc would execute plugins in the /tmp/rustdoc/plugins directory
150+
when running, which enabled executing code as some other user on a
151+
given machine. This release fixes that vulnerability; you can read
152+
more about this on the [blog][rustdoc-sec]. The associated CVE is [CVE-2018-1000622].
153+
154+
Thank you to Red Hat for responsibily disclosing this vulnerability to us.
155+
156+
Compatibility Notes
157+
-------------------
158+
159+
- The borrow checker was fixed to avoid an additional potential unsoundness when using
160+
match ergonomics: [#51415][51415], [#49534][49534].
161+
162+
[51415]: https://github.com/rust-lang/rust/issues/51415
163+
[49534]: https://github.com/rust-lang/rust/issues/49534
164+
[rustdoc-sec]: https://blog.rust-lang.org/2018/07/06/security-advisory-for-rustdoc.html
165+
[CVE-2018-1000622]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=%20CVE-2018-1000622
143166

144167
Version 1.27.0 (2018-06-21)
145168
==========================

0 commit comments

Comments
 (0)
Please sign in to comment.