<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 3 Oct 2017, at 19:15, Geordie Jay via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">2017-10-03 20:10 GMT+02:00 Georgios Moschovitis via swift-users<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word; line-break: after-white-space;" class="">I implemented a simple RSS feed aggregator. I used code like...<div class=""><br class=""><div class="">let data = try! Data(contentsOf: feedURL)</div></div><div class=""><br class=""></div><div class="">or</div><div class=""><br class=""></div><div class="">let session = URLSession(configuration: URLSessionConfiguration.<wbr class="">default)</div><div class="">let task = session.dataTask(with: url, completionHandler: completionHandler)<br class="">task.resume()</div><div class=""><br class=""></div><div class="">...to fetch the data.</div><div class=""><br class=""></div><div class="">While my application worked perfectly when running on macOS, when I tried to run</div><div class="">it on Ubuntu it started crashing<span class="Apple-converted-space"> </span><i class="">randomly</i><span class="Apple-converted-space"> </span>with errors like...</div><div class=""><br class=""></div><div class="">*** Error in `bin/….': double free or corruption (fasttop): 0x00007f3880000ff0 ***<br class="">Aborted</div></div></blockquote></div></div></div></div></blockquote><div><br class=""></div><div>There were some issues which were fixed on the swift-4 branch but which didn't make it in before the swift 4.0 release was cut. These fixes will be in the next point release of Swift.</div><div><br class=""></div><div>Have you tried the code with the latest nightly build to verify whether that has fixed the issue you're seeing?</div><div><br class=""></div><blockquote type="cite" class=""><div dir="ltr" style="font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word; line-break: after-white-space;" class=""><div class="">Are there any issues with the implementation of Foundation for Linux?</div></div></blockquote><div class=""><br class=""></div><div class="">tldr; Pretty sure, yes.</div></div></div></div></blockquote><br class=""></div><div>There has been a reasonable amount of work put in recently, particularly with Data and URLSession. </div><div><br class=""></div><div>You can have a look at the list of open issues for Foundation on Linux:</div><div><br class=""></div><div><a href="https://bugs.swift.org/issues/?jql=status%20in%20(Open%2C%20%22In%20Progress%22%2C%20Reopened)%20AND%20component%20%3D%20Foundation" class="">https://bugs.swift.org/issues/?jql=status%20in%20(Open%2C%20%22In%20Progress%22%2C%20Reopened)%20AND%20component%20%3D%20Foundation</a></div><div><br class=""></div><div>Note that some of the issues may have been recently closed but not made it into a release.</div><div><br class=""></div><div>One of my colleagues recently fixed an issue with concurrent data races, which has a similar effect to the one you're describing but may not be the same:</div><div><br class=""></div><div><a href="https://bugs.swift.org/browse/SR-5936" class="">https://bugs.swift.org/browse/SR-5936</a></div><div><br class=""></div><div>Alex</div></body></html>