Filebeat intermittently crashes during start up

(Sai Birada) #1

I am using filebeat-1.2.3 binary, built with go-1.7.1 in my freebsd box. When I am starting this binary in my freebsd boxes I am facing the error mentioned below. I am not facing this issue every time I start filebeat but, I could consistently reproduce this by continuous stop and start filebeat.

fatal error: concurrent map read and map write

goroutine 23 [running]:
runtime.throw(0x86ef00, 0x21)
	/root/go/src/runtime/panic.go:566 +0x95 fp=0xc42043b868 sp=0xc42043b848
runtime.mapaccess2_faststr(0x7e9680, 0xc4202bd6e0, 0xc42036b9e0, 0x12, 0x3, 0x300000002)
	/root/go/src/runtime/hashmap_fast.go:306 +0x52b fp=0xc42043b8c8 sp=0xc42043b868*Registrar).getState(0xc420384600, 0xc42036b9e0, 0x12, 0x0, 0x0)
	/root/src/ +0xa0 fp=0xc42043b910 sp=0xc42043b8c8*Registrar).GetFileState(0xc420384600, 0xc42036b9e0, 0x12, 0x20, 0x20)
	/root/src/ +0x3f fp=0xc42043b948 sp=0xc42043b910*Registrar).fetchState(0xc420384600, 0xc42036b9e0, 0x12, 0xa43380, 0xc420291130, 0x1, 0x1)
	/root/src/ +0x5a fp=0xc42043ba28 sp=0xc42043b948*Prospector).scan(0xc4200d4e00, 0xc42036b9e0, 0x12, 0xc42039d260)
	/root/src/ +0x7fc fp=0xc42043be18 sp=0xc42043ba28*Prospector).logRun(0xc4200d4e00, 0xc42039d260)
	/root/src/ +0x277 fp=0xc42043bf38 sp=0xc42043be18*Prospector).Run(0xc4200d4e00, 0xc42039d260)
	/root/src/ +0x1bc fp=0xc42043bf90 sp=0xc42043bf38
	/root/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc42043bf98 sp=0xc42043bf90
created by*Crawler).Start
	/root/src/ +0x272

(Tudor Golubenco) #2

That looks like a bug. Any reason for not using a newer version? There have been lots of changes since 1.2.3, so I'd recommend trying 5.1, or at least 1.3.1.

(Sai Birada) #3

Hi tudor,
Updated to latest 5.1.2 version and now its working fine.

(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.