Some log for those finding the bug:
There is nothing in the system log on OSX.
This is the log output from the device immediately after hitting the "Sync" button on itunes:
Jan 25 23:43:49 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:49 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:49 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:49 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:49 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:49 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:50 Pavels-iPad4 lockdownd[26] <Error>: CFStringGetCString error in locklog
Jan 25 23:43:50 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:50 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:50 Pavels-iPad4 installd[2195] <Notice>: 0x603000 -[MIClientConnection lookupUninstalledWithOptions:completion:]: Lookup uninstalled requested by atc (pid 2343) with options (null)
Jan 25 23:43:50 Pavels-iPad4 MobileStorageMounter[2347] <Error>: 0x3bc089dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
Jan 25 23:43:50 Pavels-iPad4 MobileStorageMounter[2347] <Error>: 0x3bc089dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jan 25 23:43:50 Pavels-iPad4 MobileStorageMounter[2347] <Error>: 0x3bc089dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jan 25 23:43:50 Pavels-iPad4 MobileStorageMounter[2347] <Error>: 0x3bc089dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jan 25 23:43:51 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:51 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:51 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:51 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:43:52 Pavels-iPad4 lockdownd[26] <Error>: CFStringGetCString error in locklog
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 CacheDeleteGeoTileLoader[2209] <Error>: 0x503000 diskUsage: Failed to open directory /var/mobile/Library/Caches/MapTiles/MapTiles.sqlitedb : Not a directory
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 mobileassetd[2141] <Error>: mobileassetd - _ASAssetDeletionPriorityAtDate: Unexpected value for keys __LastAccessDate, __InstallDate
Jan 25 23:43:53 Pavels-iPad4 librariand[2211] <Error>: ubiquity account is not configured (or is disabled for this client), not creating collection
Jan 25 23:43:53 Pavels-iPad4 librariand[2211] <Error>: error in _handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
Jan 25 23:43:53 Pavels-iPad4 bird[2187] <Error>: unable to determine evictable space: Error Domain=LibrarianErrorDomain Code=10 "The operation couldn’t be completed. (LibrarianErrorDomain error 10 - Unable to configure the collection.)" UserInfo=0x145345b0 {NSDescription=Unable to configure the collection.}
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:43:53 Pavels-iPad4 profiled[2159] <Notice>: (Note ) MC: Provisioning profiles changed
Jan 25 23:44:10 Pavels-iPad4 locationd[1833] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
This is the output while sync runs:
Jan 25 23:47:06 Pavels-iPad4 ReportCrash[2350] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Jan 25 23:47:06 Pavels-iPad4 ReportCrash[2350] <Notice>: ReportCrash acting against PID 2343
Jan 25 23:47:07 Pavels-iPad4 ReportCrash[2350] <Notice>: Formulating crash report for process atc[2343]
And this is the log output immediately after copying stops:
Jan 25 23:48:30 Pavels-iPad4 locationd[1833] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0
Jan 25 23:48:41 Pavels-iPad4 UserEventAgent[17] <Notice>: jetsam: kernel termination snapshot being created
Jan 25 23:48:41 Pavels-iPad4 ReportCrash[2351] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)
Jan 25 23:48:41 Pavels-iPad4 ReportCrash[2351] <Notice>: Saved report to /Library/Logs/CrashReporter/JetsamEvent-2015-01-25-234841.ips
Jan 25 23:48:42 Pavels-iPad4 kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Jan 25 23:48:42 Pavels-iPad4 lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Jan 25 23:48:42 Pavels-iPad4 atc[2352] <Warning>: [Warning] Services all disappeared, removing all dependent devices
Jan 25 23:48:42 Pavels-iPad4 installd[2195] <Notice>: 0x603000 -[MIClientConnection lookupUninstalledWithOptions:completion:]: Lookup uninstalled requested by atc (pid 2352) with options (null)
Jan 25 23:48:42 Pavels-iPad4 MobileStorageMounter[2354] <Error>: 0x3bc089dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
Jan 25 23:48:42 Pavels-iPad4 MobileStorageMounter[2354] <Error>: 0x3bc089dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jan 25 23:48:42 Pavels-iPad4 MobileStorageMounter[2354] <Error>: 0x3bc089dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jan 25 23:48:42 Pavels-iPad4 MobileStorageMounter[2354] <Error>: 0x3bc089dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Jan 25 23:48:43 Pavels-iPad4 mobile_assertion_agent[2193] <Notice>: service_one_connection: Connection closed for client iTunes.
Jan 25 23:48:46 Pavels-iPad4 atc[2352] <Warning>: [PLLogging] ***** Error: logging directory does not exist /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/
Jan 25 23:48:46 Pavels-iPad4 atc[2352] <Warning>: [PLLogging] ***** Error: logging directory does not exist /var/mobile/Library/Logs/CrashReporter/DiagnosticLogs/
Jan 25 23:48:46 Pavels-iPad4 CacheDeleteGeoTileLoader[2209] <Error>: 0x481000 diskUsage: Failed to open directory /var/mobile/Library/Caches/MapTiles/MapTiles.sqlitedb : Not a directory
Jan 25 23:48:46 Pavels-iPad4 geod[2210] <Warning>: Can't get bundle identifier for process 2209
Jan 25 23:48:46 Pavels-iPad4 mobileassetd[2141] <Error>: mobileassetd - _ASAssetDeletionPriorityAtDate: Unexpected value for keys __LastAccessDate, __InstallDate
Jan 25 23:48:46 Pavels-iPad4 librariand[2211] <Error>: ubiquity account is not configured (or is disabled for this client), not creating collection
Jan 25 23:48:46 Pavels-iPad4 librariand[2211] <Error>: error in _handle_client_request: LibrarianErrorDomain/10/Unable to configure the collection.
Jan 25 23:48:46 Pavels-iPad4 bird[2187] <Error>: unable to determine evictable space: Error Domain=LibrarianErrorDomain Code=10 "The operation couldn’t be completed. (LibrarianErrorDomain error 10 - Unable to configure the collection.)" UserInfo=0x14534560 {NSDescription=Unable to configure the collection.}