toolbox
toolbox copied to clipboard
exec function crash on WSL
Hi!
I'm sorry if it's not supposed to work at all, just playing around with stuff :)
I have ubuntu bash installed (18.04) and Swift 5.2.1-RELEASE running in it. The toolbox builds just fine, I can create a new project with it, but when I hit build, it gives me the following:
Building project... Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file /home/kennyevo/toolbox/Sources/VaporToolbox/exec.swift, line 13 Current stack trace: 0 libswiftCore.so 0x00007f8ee1062f90 swift_reportError + 50 1 libswiftCore.so 0x00007f8ee10d4a60 _swift_stdlib_reportFatalErrorInFile + 115 2 libswiftCore.so 0x00007f8ee0de9735 <unavailable> + 1382197 3 libswiftCore.so 0x00007f8ee0de9257 <unavailable> + 1380951 4 libswiftCore.so 0x00007f8ee0de8f23 <unavailable> + 1380131 5 libswiftCore.so 0x00007f8ee0de8890 _assertionFailure(_:_:file:line:flags:) + 525 6 0x00007f8ee1f0fe26 <unavailable> + 2891302 7 0x00007f8ee1ed9006 <unavailable> + 2666502 8 0x00007f8ee1ed9277 <unavailable> + 2667127 9 0x00007f8ee1ced3b5 <unavailable> + 652213 10 0x00007f8ee1f0f714 <unavailable> + 2889492 11 0x00007f8ee1d04dde <unavailable> + 749022 12 0x00007f8ee1d049c6 <unavailable> + 747974 13 0x00007f8ee1f0f8e1 <unavailable> + 2889953 14 0x00007f8ee1d20804 <unavailable> + 862212 15 libc.so.6 0x00007f8edfa61ab0 __libc_start_main + 231 16 0x00007f8ee1ca74fa <unavailable> + 365818 Illegal instruction (core dumped)
Thanks for any input!
EDIT
swift build completes without error (only the missing LinuxMain.swift test file)
running with .build/debug/Run also works, I can reach the server, so on the swift side everything is working as expected
If I had to guess this is an error when shelling out to execute a process due to a difference in the way it works on WSL. My recommendation would be to try debugging it where it says it crashes
Closing due to inactivity - feel free to reopen if it's still an issue