[swift-dev] large dictionary literal overflows swiftc stack

Rafkind, Jon jon.rafkind at hpe.com
Tue Mar 22 19:24:23 CDT 2016


The root cause seems to be the program's stack was simply too small, and not an infinite loop in the type checker. On Linux the default stack size is 8192kb, but at least on my system, I needed to use a minimum of 11884kb.

On 03/22/2016 03:35 PM, Rafkind, Jon wrote:
FWIW when I compile the swift/llvm 2.2 codebase with RelWithDebInfo there is no crash, but in Debug mode there is a crash. I can live with this for now since I will release my tool in RelWithDebInfo anyway. If I have time I will try to find the root cause behind the crash with Debug.

On 03/22/2016 12:56 PM, Dmitri Gribenko wrote:

On Tue, Mar 22, 2016 at 12:17 PM, Rafkind, Jon via swift-dev
<swift-dev at swift.org><mailto:swift-dev at swift.org> wrote:


I have to support swift 2.2 for the time being because I have to support the current release of xcode. I will upgrade to swift 3 when it is released.


I understand your motivation, but I would still recommend trying to
update your code (on a branch) to Swift 3.  This way you will get a
preview of the changes, would be able to provide feedback, and maybe
even find issues with the changes that we are making before Swift 3 is
finalized in a release.  There is benefit for both your library and
the Swift community.

Dmitri



--

--


More information about the swift-dev mailing list