docker icon indicating copy to clipboard operation
docker copied to clipboard

Crashing when running under rosetta

Open GioPan04 opened this issue 1 year ago • 0 comments

Kinda related to #9. Dovecot is crashing under docker with rosetta emulation. I tried under orbstack and docker desktop with and without rosetta. When you disable rosetta it works just fine (although it's running under a much heavy emulation layer).

Here it's the dovecot logs when running with docker desktop:

Sep 30 14:02:56 master: Info: Dovecot v2.3.21.1 (d492236fa0) starting up for imap, pop3, submission, sieve, lmtp (core dumps disabled)
rosetta error: unable to mmap ExecutableHeap: 12
 Sep 30 14:02:56 master: Error: service(managesieve-login): command startup failed, throttling for 2.000 secs
Sep 30 14:02:56 master: Error: service(submission-login): command startup failed, throttling for 2.000 secs
Sep 30 14:02:56 master: Error: service(pop3-login): command startup failed, throttling for 2.000 secs
Sep 30 14:02:56 master: Error: service(imap-login): command startup failed, throttling for 2.000 secs
Sep 30 14:02:56 master: Error: service(anvil): command startup failed, throttling for 2.000 secs
Sep 30 14:02:56 master: Error: service(log): child 14 killed with signal 5
Sep 30 14:02:56 master: Error: service(log): command startup failed, throttling for 2.000 secs

And here when running with orbstack:

assertion failed [!mmap_result.is_error && mmap_result.value == kSlabAllocatorInterval.left]: Could not mmap data for the VMTracker slab allocator: 12
(VMAllocationTracker.cpp:318 init)
 Sep 30 13:45:45 master: Error: service(managesieve-login): command startup failed, throttling for 2.000 secs
Sep 30 13:45:45 master: Error: service(submission-login): command startup failed, throttling for 2.000 secs
Sep 30 13:45:45 master: Error: service(pop3-login): command startup failed, throttling for 2.000 secs
Sep 30 13:45:45 master: Error: service(imap-login): command startup failed, throttling for 2.000 secs
Sep 30 13:45:45 master: Error: service(anvil): command startup failed, throttling for 2.000 secs
Sep 30 13:45:45 master: Error: service(log): child 14 killed with signal 5
Sep 30 13:45:45 master: Error: service(log): command startup failed, throttling for 2.000 secs

Completing #9 would close this because rosetta wouldn't be needed if a container runs natively on arm

GioPan04 avatar Sep 30 '24 14:09 GioPan04