[swift-corelibs-dev] Encountering "Constant strings cannot be deallocated"

2017-11-16 Thread Brandon Williams via swift-corelibs-dev
Hello! I have a test case that when run on Linux somehow encounters the "Constant strings cannot be deallocated” fatal error thrown in NSCFString.swift, as seen here: https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/NSCFString.swift#L118 The test that does it is here: ht

Re: [swift-corelibs-dev] Encountering "Constant strings cannot be deallocated"

2017-11-16 Thread Brandon Williams via swift-corelibs-dev
n what is going > on here. > > On Nov 16, 2017, at 2:41 PM, Brandon Williams via swift-corelibs-dev < > swift-corelibs-dev@swift.org> wrote: > > Hello! I have a test case that when run on Linux somehow encounters > the "Constant strings cannot be deallocated” fatal

Re: [swift-corelibs-dev] Encountering "Constant strings cannot be deallocated"

2017-11-16 Thread Brandon Williams via swift-corelibs-dev
with a recent build? Do you know what commit the >> swift-corelibs-foundation is from? That might help nail down what is going >> on here. >> >> On Nov 16, 2017, at 2:41 PM, Brandon Williams via swift-corelibs-dev < >> swift-corelibs-dev@swift.org> wrote: >

Re: [swift-corelibs-dev] Encountering "Constant strings cannot be deallocated"

2017-11-17 Thread Brandon Williams via swift-corelibs-dev
n run the test under LLDB and put a breakpoint in that function, > and get a backtrace (with 'bt') then it might be interesting to see where > the deinit is being triggered, and give some kind of clue as to what is > happening. > > Alex > > > On 16 Nov 2017, at 22

[swift-corelibs-dev] Encountering "Constant strings cannot be deallocated" in Linux foundation

2017-11-29 Thread Brandon Williams via swift-corelibs-dev
Hello all! We’ve been encountering this runtime error quite a bit recently, and we have no idea why. We’ve filed a bug and there’s one other on JIRA related to this, but both without any comments: https://bugs.swift.org/browse/SR-6422 https://bugs.swift.org/browse/SR-6398 We’re curious if others

Re: [swift-corelibs-dev] Encountering "Constant strings cannot be deallocated" in Linux foundation

2017-11-29 Thread Brandon Williams via swift-corelibs-dev
> On Nov 29, 2017, at 1:34 PM, Brandon Williams via swift-corelibs-dev < > swift-corelibs-dev@swift.org> wrote: > > Hello all! > > We’ve been encountering this runtime error quite a bit recently, and we > have no idea why. We’ve filed a bug and there’s one other o

Re: [swift-corelibs-dev] Encountering "Constant strings cannot be deallocated" in Linux foundation

2017-11-29 Thread Brandon Williams via swift-corelibs-dev
e the >> CFSTR(“”) macro produce a CFStringRef that cannot be overreleased. Probably >> there is a constant string returned from CF function, then the Swift >> runtime assumes it can release it, and bam we wind up with an overrelease. >> >> We’ll have to track do

[swift-corelibs-dev] Linux: Empty `URLComponents` does not generate valid URL

2017-12-05 Thread Brandon Williams via swift-corelibs-dev
Hello all! I filed this bug yesterday: https://bugs.swift.org/browse/SR-6527 And just wanted to see if that makes sense. This bit us in the butt yesterday in our router: https://github.com/pointfreeco/swift-web/pull/86 Thanks! ___ swift-corelibs-dev m

Re: [swift-corelibs-dev] Linux: Empty `URLComponents` does not generate valid URL

2017-12-05 Thread Brandon Williams via swift-corelibs-dev
Oops! I updated the bug report. I’m using Xcode 9.2 beta 9C34b, Swift 4.0.3 Thanks! On Tue, Dec 5, 2017 at 7:55 AM Brandon Williams wrote: > Hello all! > > I filed this bug yesterday: > > https://bugs.swift.org/browse/SR-6527 > > And just wanted to see if that makes sense. This bit us in the

[swift-corelibs-dev] URLRequest body clears when modifying unrelated fields

2018-01-01 Thread Brandon Williams via swift-corelibs-dev
Hello all and happy new year! I just came across this bug on Linux Foundation: https://bugs.swift.org/browse/SR-6687 It’s very strange. Does that report make sense? ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.or