<div dir="ltr">I had some code work great on Mac and seg fault on Linux, bug demo[1] and bug report[2]. It took me some time to narrow it down using print()&#39;s, essentially running a binary search to identify the point at which program election halts, leading to a seg fault.<div><br></div><div>My method, though effective is probably barbaric. It&#39;s been years since I&#39;ve touched code that can actually seg fault, and I&#39;m rusty on how you approach debugging such cases, I&#39;m wondering both Mac and Linux, even though my case is Linux only.</div><div><br></div><div>I&#39;d appreciate any links and discussions of how to tackle this issue, as it seems that the days of segmentation faulting code are big time coming back! So let&#39;s get into shape. </div><div><br></div><div>Assuming the discussion turns into a valuable resource I&#39;ll work to summarize it into some form of a blog post for the benefit of the community.</div><div><div><div><br></div><div>[1]  <a href="https://github.com/maximveksler/thank-you/tree/master/swift/DateFormatter" style="color:rgb(126,87,194)">https://github.com/maximveksler/thank-you/tree/master/swift/DateFormatter</a></div><div>[2]  <a href="https://bugs.swift.org/browse/SR-3828" style="color:rgb(126,87,194)">https://bugs.swift.org/browse/SR-3828</a></div><div><br></div></div></div></div>