samba icon indicating copy to clipboard operation
samba copied to clipboard

'INTERNAL ERROR: Signal 11' when macOS 10.14.6 connects

Open m4rc77 opened this issue 4 years ago • 12 comments

Hello,

I am running your docker container on a Raspberry Pi 4 with the following environment:

pi@raspi4:~ $ uname -a
Linux raspi4 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux
pi@raspi4:~ $ docker -v
Docker version 19.03.11, build 42e35e6
pi@raspi4:~ $ cat /sys/firmware/devicetree/base/model
Raspberry Pi 4 Model B Rev 1.1
pi@raspi4:~ $ docker images | grep dperson
dperson/samba       armhf               83e648c2573d        13 days ago         49MB

i ran into the problem, that samba crashes when a macOS 10.14.6 client connects. I then get the following log from the container:

Added user user.
smbd version 4.12.2 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
===============================================================
INTERNAL ERROR: Signal 11 in pid 46 (4.12.2)
If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting
===============================================================
PANIC (pid 46): internal error
unable to produce a stack trace on this platform
dumping core in /var/log/samba/cores/smbd

The problem can be reproduced by running

docker run --rm -it -p 139:139 -p 445:445 --name sambatest dperson/samba:armhf -p -u "user;user" -s "Public;/tmp/test;yes;no;no;user"

and let a macOS 10.14.6 client connect to smb://<server>/Public. The error occurs after the password was entered and the Connect button was clicked in macOS.

I tried several things on the mac like

  • Switch to SMB2
  • Disable packet signing

as the problem does not occur with my other PC (Ubunut 18.04). But with no luck :-(

See also attached file samba_log_level_2.txt which contains the full log output when log level 2 is activated.

Any Ideas? Thanks in advance for your help!

m4rc77 avatar Jun 12 '20 21:06 m4rc77

I have exactly the same problem on a Raspberry Pi 3 Model B Plus Rev 1.3 using OSX 10.14.6

aso595 avatar Jun 18 '20 17:06 aso595

This also happens with permission mask 777 on all files and folders behind the volume.

Hint: the crash possibly occurs only > 11.1.0.4, it could be best to rebuild image from an older version as this is a bug and will take months or more to fix.

Modify Dockerfile with this to install samba from oldest build

apk add samba=4.11.9-r0 --repository=http://dl-cdn.alpinelinux.org/alpine/v3.11/main

akasandra avatar Jul 04 '20 10:07 akasandra

I can confirm this resolves the problem.

akasandra avatar Jul 04 '20 11:07 akasandra

@matryoshkababushka thanks for your Inputs. I will try this.

m4rc77 avatar Jul 06 '20 08:07 m4rc77

had the same issue. Fixed with https://github.com/m4rc77/samba/commit/448518cb2a39c9fa56986e792d0aa5e683d8b437

I can confirm using samba=4.11.9-r0 as @matryoshkababushka described will work.

sglogger avatar Aug 04 '20 15:08 sglogger

I am currently testing the fix in my own environment. Until now it looks fine to me.

The fix m4rc77@448518c from my forked repo https://github.com/m4rc77/samba is available as Docker Image m4rc77/samba from DockerHub just in case someone else desperately needs this fix too. Details see https://hub.docker.com/r/m4rc77/samba and https://hub.docker.com/r/m4rc77/samba/dockerfile

@dperson: Should I create from m4rc77@448518c a pull-request. It would be great if this fix would be for example available as dperson/samba-4.11:armhf but i am not a multi-arch-manifest.yaml specialist and unsure how to do it in detail. And I also do not know how you would like to integrate this fix in your repo (e.g. new branch, ...). Thanks in advance for your inputs.

m4rc77 avatar Aug 04 '20 22:08 m4rc77

Can confirm that samba 4.12.6 which is now in alpine 3.12 repo fixes this issue for me https://pkgs.alpinelinux.org/packages?name=samba&branch=v3.12&arch=x86_64

Just rebuilding dperson/samba without cache was all that I needed to do

dnwe avatar Sep 19 '20 19:09 dnwe

just tried m4rc77s repo (m4rc77/samba) and samba works again on my macbook

RezzZ avatar Nov 12 '20 12:11 RezzZ

Same issue with latest image pulled form Dockerhub and macOS !

vdeville avatar Jan 05 '21 14:01 vdeville

Same issue running docker on an Ubuntu 20.04.3 LTS Server in my home lab. According to docker pull dperson/samba I am running the latest version.

k7faq avatar Sep 09 '21 18:09 k7faq

Same issue here as well.

marsavela avatar Nov 29 '22 12:11 marsavela

I fixed this in my fork https://github.com/morremeyer/samba which I intend to maintain as I use the image myself.

Caveat: I removed functionality that I don't want to maintain, namely multi-arch (it's x86 only) and the docker-compose file.

morremeyer avatar Jan 08 '23 12:01 morremeyer