Bytes field exceeds size limit; 1974056347 > 64

I get this panic message when I try to start syncthing in Debian. I had this before and had to completely remove syncthing from the system to get it to work, but now I have the same problem again. What is causing this?

make sure that all devices in your network use the same Syncthing version, e.g. 0.12.x

1 Like

I’ve been seeing a similar error randomly since the upgrade to v12.x and only on my debian box…If I delete the database syncthing will start fine (but have to rebuild the db of course which is a fun wait).

panic: xdr read: bytes field exceeds size limit; 1338205133 > 64

That sounds odd - corrupt database, but why… What’s the full panic trace?

I am pretty sure you manage to connect to some node that has 0.11 and it crashes.

We shouldn’t panic from that though. The only panic: xdr read: ... I know of off hand are when reading stuff from the database which is supposed to be correctly formatted and we’re in very deep water if it isn’t…

[A4MQV] 15:15:17 INFO: syncthing v0.12.6 "Beryllium Bedbug" (go1.5.1 linux-amd64 default) jenkins@build2.syncthing.net 2015-12-01 10:24:30 UTC
[A4MQV] 15:15:17 INFO: My ID: A4MQVYF-P2PBPSI-NAFICCV-VYGOZOF-5KBWVOQ-XZ4Y7YQ-AUZCRXR-ERX3XAX
[A4MQV] 15:15:17 INFO: Single thread hash performance is ~142 MB/s
...
Panic at 2015-12-04T15:15:17+01:00
panic: xdr read: bytes field exceeds size limit; 1974056347 > 64

goroutine 1 [running]:
github.com/syncthing/syncthing/lib/db.getFile(0x7f4a231244f0, 0xc820221060, 0xc82036e510, 0x87, 0x87, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/db/leveldb.go:104 +0x1d6
github.com/syncthing/syncthing/lib/db.readOnlyTransaction.getFile(0xc820b04ab0, 0xc82002a108, 0xc820ffe170, 0xb, 0x10, 0xc820369260, 0x20, 0x20, 0xc8203d0041, 0x26, ...)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/db/leveldb_transactions.go:38 +0x175
github.com/syncthing/syncthing/lib/db.(*Instance).checkGlobals(0xc82002a108, 0xc820ffe170, 0xb, 0x10, 0xc820202158)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/db/leveldb_dbinstance.go:583 +0x9a3
github.com/syncthing/syncthing/lib/db.NewFileSet(0xc820221e00, 0xb, 0xc82002a108, 0xc82021dd18)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/db/set.go:104 +0x299
github.com/syncthing/syncthing/lib/model.(*Model).AddFolder(0xc820158120, 0xc820221e00, 0xb, 0xc820211310, 0x42, 0xc820203800, 0x2, 0x4, 0x1, 0x3c, ...)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/model/model.go:1159 +0x148
main.syncthingMain()
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:672 +0x2705
main.main()
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:353 +0x1275

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1

goroutine 6 [sleep]:
time.Sleep(0x1dcd6500)
	/usr/local/go/src/runtime/time.go:59 +0xf9
github.com/syncthing/syncthing/lib/dialer.init.1.func2()
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/dialer/internal.go:47 +0x24
created by github.com/syncthing/syncthing/lib/dialer.init.1
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/dialer/internal.go:49 +0x28c

goroutine 8 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc82018edc0)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:69 +0x54a
created by github.com/syndtr/goleveldb/leveldb.openDB
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:139 +0x77f

goroutine 18 [syscall]:
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
	/usr/local/go/src/os/signal/signal_unix.go:28 +0x37

goroutine 19 [chan receive]:
main.trackCPUUsage()
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/cmd/syncthing/gui_unix.go:24 +0xe6
created by main.init.3
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/cmd/syncthing/gui_unix.go:17 +0x2b

goroutine 20 [select]:
github.com/thejerf/suture.(*Supervisor).Serve(0xc8201505b0)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:441 +0x1066
created by github.com/thejerf/suture.(*Supervisor).ServeBackground
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:400 +0x39

goroutine 21 [select]:
github.com/syncthing/syncthing/lib/events.(*Subscription).Poll(0xc820146400, 0xdf8475800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/events/events.go:210 +0x4dc
github.com/syncthing/syncthing/lib/events.(*BufferedSubscription).pollingLoop(0xc820148280)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/events/events.go:252 +0x45
created by github.com/syncthing/syncthing/lib/events.NewBufferedSubscription
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/events/events.go:246 +0x261

goroutine 22 [select]:
github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc8201d10a0)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x29d
created by github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x26b

goroutine 9 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc82018edc0)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_state.go:82 +0x14b
created by github.com/syndtr/goleveldb/leveldb.openDB
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:140 +0x7a1

goroutine 10 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc82018edc0)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:768 +0x7c8
created by github.com/syndtr/goleveldb/leveldb.openDB
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:146 +0x9a5

goroutine 11 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc82018edc0)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:715 +0x253
created by github.com/syndtr/goleveldb/leveldb.openDB
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:147 +0x9c7

goroutine 12 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc82018edc0)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:37 +0x1a2
created by github.com/syndtr/goleveldb/leveldb.openDB
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:148 +0x9e9

goroutine 13 [select]:
github.com/syncthing/syncthing/lib/model.(*ProgressEmitter).Serve(0xc820016400)
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/model/progressemitter.go:52 +0x97f
created by github.com/syncthing/syncthing/lib/model.NewModel
	/home/jenkins/workspace/syncthing-release-debian/src/github.com/syncthing/syncthing/lib/model/model.go:137 +0xb22

Yeah, something bad there. I’d suspect disk corruption (bad disk or bad memory), but normally I’d expect that to be a checksum failure. Maybe leveldb only checksums the metadata.

Pretty much the same here…only 2 devices running syncthing and both are running v12…no problems before v12 but obviously that could be a coincidence

[DMKNG] 05:26:39 INFO: syncthing v0.12.6 "Beryllium Bedbug" (go1.5.1 linux-amd64 default) jenkins@build2.syncthing.net 2015-12-01 10:24:30 UTC
[DMKNG] 05:26:39 INFO: My ID: DMKNGIC-4XMXM5V-YBLZOXQ-KPVNJ2U-YHWFDHU-BPO3RL7-MWC7CGG-JKBN6Q2
[DMKNG] 05:26:39 INFO: Single thread hash performance is ~125 MB/s
[DMKNG] 05:26:40 OK: Ready to synchronize BTSync (read-write)
[DMKNG] 05:26:40 OK: Ready to synchronize BTTest (read-write)
...
Panic at 2015-12-04T05:26:41-06:00
panic: xdr read: bytes field exceeds size limit; 1338205133 > 64

goroutine 1 [running]:
github.com/syncthing/syncthing/lib/db.getFile(0x7fe864a80db8, 0xc82067e0a0, 0xc82042f860, 0x92, 0x92, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/db/leveldb.go:104 +0x1d6
github.com/syncthing/syncthing/lib/db.readOnlyTransaction.getFile(0xc821fc48d0, 0xc82002a068, 0xc82067f4f0, 0x4, 0x8, 0xc8203838a0, 0x20, 0x20, 0xc8221a76c1, 0x31, ...)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/db/leveldb_transactions.go:38 +0x175
github.com/syncthing/syncthing/lib/db.(*Instance).checkGlobals(0xc82002a068, 0xc82067f4f0, 0x4, 0x8, 0xc82009f4d8)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/db/leveldb_dbinstance.go:583 +0x9a3
github.com/syncthing/syncthing/lib/db.NewFileSet(0xc8202434e0, 0x4, 0xc82002a068, 0xc8201d1db8)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/db/set.go:104 +0x299
github.com/syncthing/syncthing/lib/model.(*Model).AddFolder(0xc820062900, 0xc8202434e0, 0x4, 0xc820264e20, 0x16, 0xc820200280, 0x2, 0x4, 0x0, 0x15180, ...)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/model/model.go:1159 +0x148
main.syncthingMain()
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:672 +0x2705
main.main()
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:353 +0x1275

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
	/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1

goroutine 23 [select]:
github.com/syncthing/syncthing/lib/model.(*ProgressEmitter).Serve(0xc8201c8a40)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/model/progressemitter.go:52 +0x97f
created by github.com/syncthing/syncthing/lib/model.NewModel
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/model/model.go:137 +0xb22

goroutine 10 [select]:
github.com/thejerf/suture.(*Supervisor).Serve(0xc82012e410)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:441 +0x1066
created by github.com/thejerf/suture.(*Supervisor).ServeBackground
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:400 +0x39

goroutine 8 [syscall]:
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
	/usr/local/go/src/os/signal/signal_unix.go:28 +0x37

goroutine 9 [chan receive]:
main.trackCPUUsage()
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/cmd/syncthing/gui_unix.go:24 +0xe6
created by main.init.3
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/cmd/syncthing/gui_unix.go:17 +0x2b

goroutine 11 [select]:
github.com/syncthing/syncthing/lib/events.(*Subscription).Poll(0xc82000f000, 0xdf8475800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/events/events.go:210 +0x4dc
github.com/syncthing/syncthing/lib/events.(*BufferedSubscription).pollingLoop(0xc820019950)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/events/events.go:252 +0x45
created by github.com/syncthing/syncthing/lib/events.NewBufferedSubscription
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/events/events.go:246 +0x261

goroutine 12 [select]:
github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc820188e00)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x29d
created by github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x26b

goroutine 15 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc820077600)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:69 +0x54a
created by github.com/syndtr/goleveldb/leveldb.openDB
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:139 +0x77f

goroutine 16 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc820077600)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_state.go:82 +0x14b
created by github.com/syndtr/goleveldb/leveldb.openDB
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:140 +0x7a1

goroutine 18 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc820077600)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:768 +0x7c8
created by github.com/syndtr/goleveldb/leveldb.openDB
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:146 +0x9a5

goroutine 19 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc820077600)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go:715 +0x253
created by github.com/syndtr/goleveldb/leveldb.openDB
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:147 +0x9c7

goroutine 20 [select]:
github.com/syndtr/goleveldb/leveldb.(*DB).jWriter(0xc820077600)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_write.go:37 +0x1a2
created by github.com/syndtr/goleveldb/leveldb.openDB
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db.go:148 +0x9e9

goroutine 24 [select]:
github.com/syncthing/syncthing/lib/ignore.(*Matcher).clean(0xc82158d860, 0x68c61714000)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/ignore/ignore.go:161 +0x1ca
created by github.com/syncthing/syncthing/lib/ignore.New
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/ignore/ignore.go:53 +0x159

goroutine 25 [select]:
github.com/syncthing/syncthing/lib/ignore.(*Matcher).clean(0xc821ca4280, 0x68c61714000)
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/ignore/ignore.go:161 +0x1ca
created by github.com/syncthing/syncthing/lib/ignore.New
	/home/jenkins/workspace/syncthing-release/src/github.com/syncthing/syncthing/lib/ignore/ignore.go:53 +0x159

So the fact that you both have the exact same backtrace and likely error seems to point at a bug here. Just for fun, do you maybe have some quite long folder names?

No, that wouldn’t cause it anyway. I don’t know…

The longest top level folder I have in syncthing is only 7 characters…other folders and file obviously longer but nothing super long.

So that’s super weird. Can you guys please try the build from here once or twice:

http://build3.syncthing.net/job/syncthing-pr/1317/

It’ll act the same, but when this problem happens it’ll print “Woops, unmarshal error” followed by a bunch of hex data before crashing. That data may tell us what’s going on to cause this. It’ll include your file name and some hashes, so if that’s sensitive feel free to put it in a private message, but the data will be valuable if it can be shared…

I’ll give it a try. It doesn’t happen all the time, but seems like I’ve been resetting the db every few days so I’ll let you know when it happens again.

Thanks

I tried with the new build and got this log. Could it have something to do with the size of the share folder? Both versions are 0.12.X.

[A4MQV] 10:55:11 INFO: syncthing v0.12.6+8-gdb267d5 "Beryllium Bedbug" (go1.5.2 linux-amd64 default) jenkins@build2.syncthing.net 2015-12-04 15:11:47 UTC
[A4MQV] 10:55:11 INFO: My ID: A4MQVYF-P2PBPSI-NAFICCV-VYGOZOF-5KBWVOQ-XZ4Y7YQ-AUZCRXR-ERX3XAX
[A4MQV] 10:55:11 INFO: Single thread hash performance is ~131 MB/s
[A4MQV] 10:55:11 INFO: Starting deadlock detector with 20m0s timeout
[A4MQV] 10:55:11 OK: Ready to synchronize default (read-write)
[A4MQV] 10:55:11 OK: Ready to synchronize xt1039-photos (read-write)
[A4MQV] 10:55:11 OK: Ready to synchronize Emils_arbetsansokningar_2015 (read-write)
[A4MQV] 10:55:12 OK: Ready to synchronize Emil (read-write)
[A4MQV] 10:55:12 INFO: Woops, unmarshal error!
[A4MQV] 10:55:12 INFO: 00000000  00 4c 6a 75 64 62 c3 b6  63 6b 65 72 00 00 00 00  |.Ljudb..cker....|
...
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 60 14 db fc f4 22 e6  dc d2 ee 6b 9d 4f 58 f1  |.`...."....k.OX.|
00000050  c8 ae c7 bb ed bb 4a 7e  1b 64 b5 31 cb 6e 74 e0  |......J~.d.1.nt.|
00000060  02 41 74 6c 61 73 20 53  68 72 75 67 67 65 64 20  |.Atlas Shrugged |
00000070  2d 41 79 6e 20 52 61 6e  64 2f 30 39 33 34 20 2d  |-Ayn Rand/0934 -|
00000080  33 39 74 2e 6d 70 33                              |39t.mp3|

[A4MQV] 10:55:12 INFO: 00000000  00 00 00 26 41 74 6c 61  73 20 53 68 72 75 67 67  |...&Atlas Shrugg|
00000010  65 64 20 2d 41 79 6e 20  52 61 6e 64 2f 30 39 33  |ed -Ayn Rand/093|
00000020  34 20 2d 33 39 74 2e 6d  70 33 00 00 00 00 01 a4  |4 -39t.mp3......|
00000030  00 00 00 00 56 07 01 65  00 00 00 01 07 19 0a e0  |....V..e........|
00000040  af d3 c2 f9 00 00 00 00  00 00 00 01 00 00 00 00  |................|
00000050  00 00 85 f9 00 00 00 19  00 02 00 00 00 00 00 20  |............... |
00000060  38 c2 72 0c a5 15 90 72  bc 2e 04 ee d6 f0 3f 0d  |8.r....r......?.|
00000070  84 b5 2b a6 18 f0 90 dd  f3 88 18 13 16 0b 4f 20  |..+...........O |
00000080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000c0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000000f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000100  b4 af 4d e6 75 a9 b5 9b  61 c4 1a 12 1c 6b 16 28  |..M.u...a....k.(|
00000110  6a 71 77 f5 3c 19 65 be  4c a8 54 ca 93 40 93 75  |jqw.<.e.L.T..@.u|
00000120  00 02 00 00 00 00 00 20  9e 06 69 0e 82 c8 57 0e  |....... ..i...W.|
00000130  f9 be b4 57 f1 82 f6 32  4d f1 a5 eb b3 38 a8 21  |...W...2M....8.!|
00000140  ad 71 ce b1 a6 38 24 06  00 02 00 00 00 00 00 20  |.q...8$........ |
00000150  e1 0e be 92 02 0b 30 25  67 e8 b4 00 dd ba 08 b4  |......0%g.......|
00000160  ae f4 88 da f3 e5 96 99  1a 2b db 0d c2 6d bb 08  |.........+...m..|
00000170  00 02 00 00 00 00 00 20  34 d5 b2 54 80 f1 32 55  |....... 4..T..2U|
00000180  eb bc 21 08 ad ab 96 8c  47 2c ca ee 55 b4 88 06  |..!.....G,..U...|
00000190  76 d0 ff ce 28 a4 1f ac  00 02 00 00 00 00 00 20  |v...(.......... |
000001a0  06 f0 a6 9f c0 2f 8f a6  71 89 00 27 30 b2 fe ad  |...../..q..'0...|
000001b0  54 19 ed 97 dc 00 18 51  ac 9c 44 35 95 ab d8 30  |T......Q..D5...0|
000001c0  00 02 00 00 00 00 00 20  7a 59 f9 86 4e d4 44 03  |....... zY..N.D.|
000001d0  c7 df fc dc a4 67 65 be  cc ec 95 c3 3e 94 46 25  |.....ge.....>.F%|
000001e0  57 e1 59 ed a5 83 58 be  00 02 00 00 00 00 00 20  |W.Y...X........ |
000001f0  20 ce 37 f3 9c 06 f2 88  7a 89 74 58 82 9d ed 02  | .7.....z.tX....|
00000200  1e 30 e6 9d 41 bd 0d 3f  ac 8e ed 83 76 93 17 90  |.0..A..?....v...|
00000210  00 02 00 00 00 00 00 20  26 1c 56 16 dc 6f 6d 0e  |....... &.V..om.|
00000220  d1 b1 ca 56 4c 14 8c 33  5b bf fa f2 00 e5 33 38  |...VL..3[.....38|
00000230  38 5c 12 e1 86 7d 3a a6  00 02 00 00 00 00 00 20  |8\...}:........ |
00000240  25 28 98 d3 4e 30 84 40  ef 06 38 74 d4 49 85 52  |%(..N0.@..8t.I.R|
00000250  a7 7d 00 ac 84 f2 4d e7  57 ed 01 1d c7 dc 8d 8a  |.}....M.W.......|
00000260  00 02 00 00 00 00 00 20  07 f2 c2 7f 79 1d 25 09  |....... ....y.%.|
00000270  8b 24 a2 c4 1a 09 e8 ff  7a d4 d6 99 6c cd b0 10  |.$......z...l...|

Panic at 2015-12-05T10:55:12+01:00
panic: xdr read: bytes field exceeds size limit; 1974056347 > 64

Thanks! Yeah, that’s broken allright. The record it’s trying to decode is

00000000 00 00 00 26 41 74 6c 61 73 20 53 68 72 75 67 67 |...&Atlas Shrugg|
00000010 65 64 20 2d 41 79 6e 20 52 61 6e 64 2f 30 39 33 |ed -Ayn Rand/093|
00000020 34 20 2d 33 39 74 2e 6d 70 33 00 00 00 00 01 a4 |4 -39t.mp3......|
00000030 00 00 00 00 56 07 01 65 00 00 00 01 07 19 0a e0 |....V..e........|
00000040 af d3 c2 f9 00 00 00 00 00 00 00 01 00 00 00 00 |................|
00000050 00 00 85 f9 00 00 00 19 00 02 00 00 00 00 00 20 |............... |
00000060 38 c2 72 0c a5 15 90 72 bc 2e 04 ee d6 f0 3f 0d |8.r....r......?.|
00000070 84 b5 2b a6 18 f0 90 dd f3 88 18 13 16 0b 4f 20 |..+...........O |
00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000100 b4 af 4d e6 75 a9 b5 9b 61 c4 1a 12 1c 6b 16 28 |..M.u...a....k.(|
00000110 6a 71 77 f5 3c 19 65 be 4c a8 54 ca 93 40 93 75 |jqw.<.e.L.T..@.u|
00000120 00 02 00 00 00 00 00 20 9e 06 69 0e 82 c8 57 0e |....... ..i...W.|
00000130 f9 be b4 57 f1 82 f6 32 4d f1 a5 eb b3 38 a8 21 |...W...2M....8.!|
00000140 ad 71 ce b1 a6 38 24 06 00 02 00 00 00 00 00 20 |.q...8$........ |
00000150 e1 0e be 92 02 0b 30 25 67 e8 b4 00 dd ba 08 b4 |......0%g.......|
...

which looks fine right up until offset 0x80, which is where the second out of 25 block hashes should start, but instead we get a large chunk of zeroes, 128 of them to be exact, after which the block list continues. So it looks like 128 bytes in the middle of the entry (128 bytes into it, in fact) has been overwritten by zeroes… I’m not sure how that would happen yet.

@jonitor, @SenorLoco When this happens next, could you save a copy of the database before blowing it away? So that we can check it for corruption and maybe try to see if something’s happened to it there…

Where is the database located? Do you mean the files I am sharing?

The database is typically located at ~/.config/syncthing/index-v0.11.0.db (there will be many files in there, which together constitute “the database”). If you’ve specified -home when starting Syncthing, then your database will be inside wherever you specified.

1 Like