-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic: runtime error: invalid memory address or nil pointer dereference #872
Comments
This has been fixed in the 1.0.0 version See #510 |
@nathanielc , I have upgraded to v1.0.0, but still panic! |
@nathanielc , I have added debug code to kapacitor:
When panic, the output is following:
e.emitter.prev is nil, so in influxdb/influxql/functions.gen.go line 72~75:
executing *r.prev will panic. |
@geekard Thanks for the detailed write up. Can you also share the dataset your are using with the TICKscript to cause the panic? I have been unable to reproduce the panic locally. I see that the panic happens because of the nil |
Hi 18-11-01T08%3A37%3A00Z%27+AND+time+%3C+%272018-11-08T08%3A37%3A00Z%27 HTTP/1.1" 200 40526 "-" "KapacitorInfluxDBClient" 758f027a-e331-11e8-8531-000000000000 82350 |
kapacitor RPM info:
Name : kapacitor
Arch : x86_64
Version : 0.13.1
Release : 1
Size : 41 M
Repo : installed
From repo : /kapacitor-0.13.1.x86_64
Summary : Time series data processing engine
URL : github.com/influxdata/kapacitor
License : MIT
Description : Time series data processing engine
TICKscript
kapacitor log
[httpd] 2016/09/06 23:38:04 I! 10.160.109.152 - - [06/Sep/2016:23:38:04 +0800] GET /kapacitor/v1/tasks/alert_netbench HTTP/1.1 200 5974 - curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2 e7153ecb-7447-11e6-8014-000000000000 6.812757ms
[alert_netbench:last3] 2016/09/06 23:39:03 E! failed to aggregate batch: field avgLoss missing from point cannot aggregate
panic message:
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x5f5375]
goroutine 184 [running]:
panic(0xca0ec0, 0xc820010100)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
github.com/influxdata/kapacitor/vendor/github.com/influxdata/influxdb/influxql.(_FloatFuncReducer).Emit(0xc8202d5490, 0x0, 0x0, 0x0)
/root/go/src/github.com/influxdata/kapacitor/vendor/github.com/influxdata/influxdb/influxql/functions.gen.go:68 +0xa5
github.com/influxdata/kapacitor.(_floatPointEmitter).EmitPoint(0xc820b40510, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/root/go/src/github.com/influxdata/kapacitor/influxql.gen.go:166 +0x78
github.com/influxdata/kapacitor.(_InfluxQLNode).emit(0xc8200e5000, 0x7f3596286140, 0xc820b404e0, 0x0, 0x0)
/root/go/src/github.com/influxdata/kapacitor/influxql.go:185 +0x90
github.com/influxdata/kapacitor.(_InfluxQLNode).runBatchInfluxQL(0xc8200e5000, 0x0, 0x0)
/root/go/src/github.com/influxdata/kapacitor/influxql.go:162 +0x62c
github.com/influxdata/kapacitor.(_InfluxQLNode).runInfluxQLs(0xc8200e5000, 0x0, 0x0, 0x0, 0x0, 0x0)
/root/go/src/github.com/influxdata/kapacitor/influxql.go:42 +0x83
github.com/influxdata/kapacitor.(_InfluxQLNode).(github.com/influxdata/kapacitor.runInfluxQLs)-fm(0x0, 0x0, 0x0, 0x0, 0x0)
/root/go/src/github.com/influxdata/kapacitor/influxql.go:33 +0x4c
github.com/influxdata/kapacitor.(_node).start.func1(0xc8200e5000, 0x0, 0x0, 0x0)
/root/go/src/github.com/influxdata/kapacitor/node.go:128 +0x7f
created by github.com/influxdata/kapacitor.(_node).start
/root/go/src/github.com/influxdata/kapacitor/node.go:129 +0x53
The text was updated successfully, but these errors were encountered: