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:
Now there’s a lot to unravel here and I haven’t been able to quite isolate
it, but I thought perhaps someone here might know how that could path could
even be executed.
Is this 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:
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:
Now there’s a lot to unravel here and I haven’t been able to quite isolate it, but I thought perhaps someone here might know how that could path could even be executed.
So the docker file that I am using to run the tests can be see here:
···
On Thu, Nov 16, 2017 at 5:43 PM Philippe Hausler <phausler@apple.com> wrote:
Is this 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:
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:
Now there’s a lot to unravel here and I haven’t been able to quite isolate
it, but I thought perhaps someone here might know how that could path could
even be executed.
On Thu, Nov 16, 2017 at 5:45 PM Brandon Williams <mbw234@gmail.com> wrote:
Ah, sorry for now providing more info!
So the docker file that I am using to run the tests can be see here:
On Thu, Nov 16, 2017 at 5:43 PM Philippe Hausler <phausler@apple.com> > wrote:
Is this 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:
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:
Now there’s a lot to unravel here and I haven’t been able to quite
isolate it, but I thought perhaps someone here might know how that could
path could even be executed.
Can you file a bug at bugs.swift.org <Issues · apple/swift · GitHub; with a minimal test case? It certainly sounds like a bug, and from the looks of the docker files, you're using the swift 4.0.2 release on Ubuntu 16.04.
If you can 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:46, Brandon Williams via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:
On Thu, Nov 16, 2017 at 5:45 PM Brandon Williams <mbw234@gmail.com <mailto:mbw234@gmail.com>> wrote:
Ah, sorry for now providing more info!
So the docker file that I am using to run the tests can be see here:
On Thu, Nov 16, 2017 at 5:43 PM Philippe Hausler <phausler@apple.com <mailto:phausler@apple.com>> wrote:
Is this 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 <mailto: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 error thrown in NSCFString.swift, as seen here:
Now there’s a lot to unravel here and I haven’t been able to quite isolate it, but I thought perhaps someone here might know how that could path could even be executed.
On Fri, Nov 17, 2017 at 4:48 AM Alex Blewitt <alblue@apple.com> wrote:
Can you file a bug at bugs.swift.org with a minimal test case? It
certainly sounds like a bug, and from the looks of the docker files, you're
using the swift 4.0.2 release on Ubuntu 16.04.
If you can 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:46, Brandon Williams via swift-corelibs-dev < > swift-corelibs-dev@swift.org> wrote:
On Thu, Nov 16, 2017 at 5:45 PM Brandon Williams <mbw234@gmail.com> wrote:
Ah, sorry for now providing more info!
So the docker file that I am using to run the tests can be see here:
On Thu, Nov 16, 2017 at 5:43 PM Philippe Hausler <phausler@apple.com> >> wrote:
Is this 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:
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:
Now there’s a lot to unravel here and I haven’t been able to quite
isolate it, but I thought perhaps someone here might know how that could
path could even be executed.
If you can 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:46, Brandon Williams via swift-corelibs-dev <swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>> wrote:
On Thu, Nov 16, 2017 at 5:45 PM Brandon Williams <mbw234@gmail.com <mailto:mbw234@gmail.com>> wrote:
Ah, sorry for now providing more info!
So the docker file that I am using to run the tests can be see here:
On Thu, Nov 16, 2017 at 5:43 PM Philippe Hausler <phausler@apple.com <mailto:phausler@apple.com>> wrote:
Is this 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 <mailto: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 error thrown in NSCFString.swift, as seen here:
Now there’s a lot to unravel here and I haven’t been able to quite isolate it, but I thought perhaps someone here might know how that could path could even be executed.