Bug 244191 - net/netatalk3 afpd exits on signal 6 during TimeMachine backup
Summary: net/netatalk3 afpd exits on signal 6 during TimeMachine backup
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Joe Marcus Clarke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-17 14:03 UTC by feh
Modified: 2020-03-02 22:27 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (marcus)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description feh 2020-02-17 14:03:57 UTC
System information (AFPD server):

FreeBSD bigchief.fehnet.de 12.0-RELEASE-p9 FreeBSD 12.0-RELEASE-p9 GENERIC  amd64

System information (Timemachine client):

macOS Mojave 10.14.6 (18G3020)


Running FreeBSD in the given configuration (on ZFS) and using Netatalk for TimeMachine backup makes AFPD fail with

Feb 17 11:49:17 bigchief kernel: pid 16704 (afpd), uid 1001: exited on signal 6
Feb 17 12:14:27 bigchief kernel: pid 22525 (afpd), uid 1001: exited on signal 6
Feb 17 12:28:45 bigchief kernel: pid 22647 (afpd), uid 1001: exited on signal 6

The client reports following:

Feb 17 12:28:38 Mac-mini kcm[2533]: DEPRECATED USE in libdispatch client: Setting timer interval to 0 requests a 1ns timer, did you mean FOREVER (a one-shot timer)?; set a breakpoint on _dispatch_bug_deprecated to debug
Feb 17 12:28:38 Mac-mini BBDaemon[91]: [MassStorageDiskMatcher.cpp:303] IOBSDNameMatching returned a NULL dictionary.
Feb 17 12:28:38 --- last message repeated 5 times ---
Feb 17 12:28:38 Mac-mini com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Feb 17 12:28:38 Mac-mini com.apple.xpc.launchd[1] (com.apple.TMHelperAgent.SetupOffer): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Feb 17 12:28:38 Mac-mini BBDaemon[91]: [MassStorageDiskMatcher.cpp:303] IOBSDNameMatching returned a NULL dictionary.
Feb 17 12:28:48 --- last message repeated 11 times ---
Feb 17 12:28:48 Mac-mini com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Feb 17 12:28:59 --- last message repeated 4 times ---
Feb 17 12:28:59 Mac-mini kcm[2556]: DEPRECATED USE in libdispatch client: Setting timer interval to 0 requests a 1ns timer, did you mean FOREVER (a one-shot timer)?; set a breakpoint on _dispatch_bug_deprecated to debug
Feb 17 12:29:06 Mac-mini com.apple.xpc.launchd[1] (com.apple.mdworker.shared.03000000-0000-0000-0000-000000000000): Service only ran for 2 seconds. Pushing respawn out by 8 seconds.

...

Feb 17 12:30:41 Mac-mini com.apple.xpc.launchd[1] (com.apple.prefs.backup.remoteservice[2552]): Service did not exit 5 seconds after SIGTERM. Sending SIGKILL.
Feb 17 12:30:47 Mac-mini com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Feb 17 12:30:49 Mac-mini BBDaemon[91]: [MassStorageDiskMatcher.cpp:303] IOBSDNameMatching returned a NULL dictionary.
Feb 17 12:30:49 --- last message repeated 1 time ---


Using the same configuration with earlier MacOS versions (High Sierra) works however flawlessly (on a different TM mount point).

Also earlier versions of Mojave were ok as well. 

Regards.
--eh.
Comment 1 Joe Marcus Clarke freebsd_committer 2020-03-02 22:27:03 UTC
I'm not terribly optimistic about finding a solution to this given that netatalk looks to be unmaintained upstream for a while now.  But I'll need to at least see a full gdb backtrace with symbols.  This means you need to compile the netatalk3 port with full debugging symbols, reproduce the crash, and use gdb to give me a "bt full".

This wiki page shows how to compile with symbols: https://wiki.freebsd.org/BenWoods/DebuggingPorts