[swift-dev] Stack dump of the compiler?
rintaro ishizaki
fs.output at gmail.com
Tue Oct 25 22:51:50 CDT 2016
Hi all,
I've noticed recent build of swift compiler doesn't show the stack dump on
crash.
Here is the result with October 25, 2016 snapshot.
https://gist.github.com/rintaro/cb694898821fbbe8b02734862eb69534
On macOS, the dump completely doesn't show up.
On Linux, the dump shows up, but without symbols.
As for Linux, I figured out that it's because of recent change in
CMakeList.txt
cmake_minimum_required(VERSION 3.4.3)
Specifically, the policy change of CMP0065
https://cmake.org/cmake/help/v3.4/policy/CMP0065.html
backtrace_symbols_fd() needs symbols exported.
As for macOS, I'm not sure why.
I don't know what is the right way to fix this.
cmake_policy(SET CMP0065 OLD)
would fix the Linux build but ...
Any thought?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20161026/b8ee71c6/attachment.html>
More information about the swift-dev
mailing list