Skip to content

Instantly share code, notes, and snippets.

panic: deadlock detected at fmut
goroutine 58 [running]:
github.com/syncthing/syncthing/lib/model.(*deadlockDetector).Watch.func1(0x12c60ff0, 0x32f86fd8, 0x12baa720, 0xd961dc, 0x4)
github.com/syncthing/syncthing/lib/model/util.go:61 +0x2b4
created by github.com/syncthing/syncthing/lib/model.(*deadlockDetector).Watch
github.com/syncthing/syncthing/lib/model/util.go:37 +0x93
goroutine 1 [chan receive, 55 minutes]:
github.com/syncthing/syncthing/lib/syncthing.(*App).Wait(...)
diff --git a/lib/db/keyer.go b/lib/db/keyer.go
index bbd2efa29..591d02230 100644
--- a/lib/db/keyer.go
+++ b/lib/db/keyer.go
@@ -325,6 +325,11 @@ func (k defaultKeyer) GenerateFolderMetaKey(key, folder []byte) (folderMetaKey,
return key, nil
}
+type hashKey interface {
+ // Hash returns whatever hash is stored in the particular key implementing this.
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.915318 walk.go:188: DEBUG: real to hash: git/projectA/smsgw/info-failover.txt
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.915479 walk.go:188: DEBUG: real to hash: git/projectA/testmachine/credentials-simcard-tech.md
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.915503 walk.go:188: DEBUG: real to hash: git/projectA/testmachine/credentials-simcard-tech.old.txt
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.915718 walk.go:188: DEBUG: real to hash: git/projectA/testmachine/howto-reset.txt
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.915837 walk.go:188: DEBUG: real to hash: git/projectA/testmachine/tech-sms-test-documentation.odt
Oct 17 23:11:09 hyena syncthing[15805]: [2WOFS] 2019/10/17 23:11:09.916104 walk.go:166: DEBUG: Walk progress done workfolder [git/projectA/smsgw/info-failover.txt git/projectA/testmachine/credentials-simcard-tech.md git/projectA/test
@imsodin
imsodin / gist:8a40073de6f3192dd1e7c15842b15b7c
Created June 17, 2019 12:10
Output of ./gradlew --info publishReleaseListing
Initialized native services in: /home/simon/.gradle/native
The client will now receive all logging from the daemon (pid: 4634). The daemon log file: /home/simon/.gradle/daemon/5.4.1/daemon-4634.out.log
Starting 3rd build in daemon [uptime: 8 mins 52.3 secs, performance: 99%, non-heap usage: 24% of 268.4 MB]
Using 4 worker leases.
Starting Build
Settings evaluated using settings file '/media/ext4_data/Coding/syncthing-android/settings.gradle'.
Projects loaded. Root project using build file '/media/ext4_data/Coding/syncthing-android/build.gradle'.
Included projects: [root project 'syncthing-android', project ':app', project ':syncthing']
> Configure project :
package main
import (
"path/filepath"
)
var root = `C:\parent\child`
func main() {
fmt.Println(filepath.EvalSymlinks(root))
package main
import (
"fmt"
"strings"
"github.com/syncthing/notify"
)
var drive = "C"
package main
import (
"errors"
"fmt"
"os"
"path/filepath"
"runtime"
"strings"
)
package main
import (
"errors"
"fmt"
"os"
"path/filepath"
"runtime"
"strings"
)
@imsodin
imsodin / build
Last active June 27, 2018 07:15
digikam build dependency metapackage
#!/bin/sh
set -e
equivs-build $1
rm repo/$1_* || :
mv $1*.deb -t repo/
dpkg-scanpackages repo | gzip > repo/Packages.gz
FROM openjdk:8
ENV ANDROID_HOME="/media/android-sdk"
ENV ANDROID_NDK_HOME="/media/android-ndk"
ENV GOROOT="/media/go"
RUN mkdir -p $ANDROID_HOME
RUN mkdir -p $ANDROID_NDK_HOME
RUN mkdir -p $GOROOT