runtime: failed to create new OS thread
Recently I switched to a new MacBook M1, and since then I can't seem to send emails any more when using Warden. I've reduced it to this:
$ warden shell
$ php -r 'mail("[email protected]", "test","test");'
runtime: failed to create new OS thread (have 2 already; errno=22)
fatal error: newosproc
runtime stack:
runtime.throw(0x6b2000, 0x9)
/usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:530 +0x90
runtime.newosproc(0xc82002a000, 0xc820039fc0)
/usr/local/Cellar/go/1.6/libexec/src/runtime/os1_linux.go:149 +0x18c
runtime.newm(0x715c28, 0x0)
/usr/local/Cellar/go/1.6/libexec/src/runtime/proc.go:1513 +0x135
runtime.main.func1()
/usr/local/Cellar/go/1.6/libexec/src/runtime/proc.go:125 +0x2c
runtime.systemstack(0x7f3300)
/usr/local/Cellar/go/1.6/libexec/src/runtime/asm_amd64.s:291 +0x79
runtime.mstart()
/usr/local/Cellar/go/1.6/libexec/src/runtime/proc.go:1048
goroutine 1 [running]:
runtime.systemstack_switch()
/usr/local/Cellar/go/1.6/libexec/src/runtime/asm_amd64.s:245 fp=0xc820024770 sp=0xc820024768
runtime.main()
/usr/local/Cellar/go/1.6/libexec/src/runtime/proc.go:126 +0x62 fp=0xc8200247c0 sp=0xc820024770
runtime.goexit()
/usr/local/Cellar/go/1.6/libexec/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc8200247c8 sp=0xc8200247c0
I already tried updating the images (warden env pull, warden env down -v, warden env up), but that does not seem to help resolve the issue.
Anyone got any ideas on how to resolve this?
That's quite interesting, as I encountered that yesterday for the first time.
Are you using the Warden M1 Fork?
No.
Me neither.
Experiencing the same issue since today on Ubuntu 22.04
I have M1 MacBook now, and the issue is persistent now.
Hi @michielgerritsen and @lbajsarowicz, If you're using an m1 processor, it's better to use arm-optimized php-fpm images. It's pretty easy, described in https://github.com/davidalger/warden/issues/341#issuecomment-1102495267 PS: just checked on these images - mail sending works fine
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
has this been resolved ?
@magneto0007 I'm not sure. I've been using Den for a while now and there this issue doesn't exists.
I encountered this issue when building out the new indev images. Could you please upgrade to the current beta and verify you do not experience this anymore?