warden icon indicating copy to clipboard operation
warden copied to clipboard

runtime: failed to create new OS thread

Open michielgerritsen opened this issue 3 years ago • 7 comments

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?

michielgerritsen avatar Jun 23 '22 11:06 michielgerritsen

That's quite interesting, as I encountered that yesterday for the first time.

lbajsarowicz avatar Jun 23 '22 12:06 lbajsarowicz

Are you using the Warden M1 Fork?

JesKingDev avatar Jul 05 '22 18:07 JesKingDev

No.

lbajsarowicz avatar Jul 05 '22 22:07 lbajsarowicz

Me neither.

michielgerritsen avatar Jul 06 '22 07:07 michielgerritsen

Experiencing the same issue since today on Ubuntu 22.04

jankovandeventer avatar Jul 14 '22 12:07 jankovandeventer

I have M1 MacBook now, and the issue is persistent now.

lbajsarowicz avatar Aug 02 '22 16:08 lbajsarowicz

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

ihor-sviziev avatar Aug 03 '22 07:08 ihor-sviziev

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.

stale[bot] avatar Nov 01 '22 12:11 stale[bot]

has this been resolved ?

magneto0007 avatar Feb 21 '23 15:02 magneto0007

@magneto0007 I'm not sure. I've been using Den for a while now and there this issue doesn't exists.

michielgerritsen avatar Feb 22 '23 08:02 michielgerritsen

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?

Instructions on how to upgrade to Beta

navarr avatar Mar 08 '23 18:03 navarr