{"action":"closed","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/1741","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/1741/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/1741/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/1741/events","html_url":"https://github.com/influxdb/influxdb/issues/1741","id":58961420,"number":1741,"title":"`SELECT * FROM $YOUR_MEASUREMENT WHERE time > now()` should return an empty result set, panics with a nil dereference","user":{"login":"mark-rushakoff","id":290647,"avatar_url":"https://avatars.githubusercontent.com/u/290647?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-rushakoff","html_url":"https://github.com/mark-rushakoff","followers_url":"https://api.github.com/users/mark-rushakoff/followers","following_url":"https://api.github.com/users/mark-rushakoff/following{/other_user}","gists_url":"https://api.github.com/users/mark-rushakoff/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-rushakoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-rushakoff/subscriptions","organizations_url":"https://api.github.com/users/mark-rushakoff/orgs","repos_url":"https://api.github.com/users/mark-rushakoff/repos","events_url":"https://api.github.com/users/mark-rushakoff/events{/privacy}","received_events_url":"https://api.github.com/users/mark-rushakoff/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/influxdb/influxdb/labels/review","name":"review","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"dgnorton","id":209347,"avatar_url":"https://avatars.githubusercontent.com/u/209347?v=3","gravatar_id":"","url":"https://api.github.com/users/dgnorton","html_url":"https://github.com/dgnorton","followers_url":"https://api.github.com/users/dgnorton/followers","following_url":"https://api.github.com/users/dgnorton/following{/other_user}","gists_url":"https://api.github.com/users/dgnorton/gists{/gist_id}","starred_url":"https://api.github.com/users/dgnorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgnorton/subscriptions","organizations_url":"https://api.github.com/users/dgnorton/orgs","repos_url":"https://api.github.com/users/dgnorton/repos","events_url":"https://api.github.com/users/dgnorton/events{/privacy}","received_events_url":"https://api.github.com/users/dgnorton/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-02-25T20:07:42Z","updated_at":"2015-02-26T23:26:08Z","closed_at":"2015-02-26T23:26:08Z","body":"When I run this query (substituting a real measurement), the server panics (but continues to run) with:\r\n\r\n```\r\n[srvr] 2015/02/25 14:49:50 http: panic serving 127.0.0.1:40451: runtime error: invalid memory address or nil pointer dereference\r\ngoroutine 3102 [running]:\r\nnet/http.func·011()\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1130 +0xbb\r\ngithub.com/influxdb/influxdb.(*Measurement).FieldByName(0x0, 0xc2080de110, 0x5, 0xc2080c3dc8)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/database.go:179 +0x10f\r\ngithub.com/influxdb/influxdb.(*tx).FieldIDs(0xc20811fe00, 0xc208039c90, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/tx.go:233 +0x199\r\ngithub.com/influxdb/influxdb/influxql.(*Planner).planRawQuery(0xc2080e7c60, 0xc20802e9b0, 0xc2080c3ec0, 0x0, 0x0, 0x0, 0x0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/influxql/engine.go:157 +0x163\r\ngithub.com/influxdb/influxdb/influxql.(*Planner).Plan(0xc2080e7c60, 0xc20811a2d0, 0xc208032dd0, 0x0, 0x0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/influxql/engine.go:99 +0x4ab\r\ngithub.com/influxdb/influxdb.(*Server).planSelectStatement(0xc208032dd0, 0xc20811a240, 0x0, 0x0, 0x0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/server.go:1850 +0x13a\r\ngithub.com/influxdb/influxdb.(*Server).executeSelectStatement(0xc208032dd0, 0xc20811a240, 0xc208136e7e, 0xc, 0x0, 0x0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/server.go:1788 +0xf2\r\ngithub.com/influxdb/influxdb.(*Server).ExecuteQuery(0xc208032dd0, 0xc2080e7a80, 0xc208136e7e, 0xc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/server.go:1715 +0x9da\r\ngithub.com/influxdb/influxdb/httpd.(*Handler).serveQuery(0xc2080ab560, 0x7fccbcdfa608, 0xc2080e79e0, 0xc2081189c0, 0x0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/httpd/handler.go:162 +0x36e\r\ngithub.com/influxdb/influxdb/httpd.*Handler.(github.com/influxdb/influxdb/httpd.serveQuery)·fm(0x7fccbcdfa608, 0xc2080e79e0, 0xc2081189c0, 0x0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/httpd/handler.go:61 +0x4f\r\ngithub.com/influxdb/influxdb/httpd.func·003(0x7fccbcdfa608, 0xc2080e79e0, 0xc2081189c0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/httpd/handler.go:483 +0x77\r\nnet/http.HandlerFunc.ServeHTTP(0xc20801f300, 0x7fccbcdfa608, 0xc2080e79e0, 0xc2081189c0)\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x41\r\ngithub.com/influxdb/influxdb/httpd.func·004(0x7fccbcdf9db8, 0xc2080e78e0, 0xc2081189c0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/httpd/handler.go:530 +0x288\r\nnet/http.HandlerFunc.ServeHTTP(0xc2080c2dd0, 0x7fccbcdf9db8, 0xc2080e78e0, 0xc2081189c0)\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x41\r\ngithub.com/influxdb/influxdb/httpd.func·005(0x7fccbcdf9db8, 0xc2080e78e0, 0xc2081189c0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/httpd/handler.go:539 +0xb0\r\nnet/http.HandlerFunc.ServeHTTP(0xc20801f320, 0x7fccbcdf9db8, 0xc2080e78e0, 0xc2081189c0)\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x41\r\ngithub.com/influxdb/influxdb/httpd.func·006(0x7fccbcdf9db8, 0xc2080e78e0, 0xc2081189c0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/httpd/handler.go:572 +0x31a\r\nnet/http.HandlerFunc.ServeHTTP(0xc2080c2e10, 0x7fccbcdf9db8, 0xc2080e78e0, 0xc2081189c0)\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x41\r\ngithub.com/influxdb/influxdb/httpd.func·007(0x7fccbcdf9db8, 0xc2080e78e0, 0xc2081189c0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/httpd/handler.go:582 +0x164\r\nnet/http.HandlerFunc.ServeHTTP(0xc2080c2e30, 0x7fccbcdf9db8, 0xc2080e78e0, 0xc2081189c0)\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x41\r\ngithub.com/influxdb/influxdb/httpd.func·008(0x7fccbcdf9db8, 0xc2080e78c0, 0xc2081189c0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/httpd/handler.go:590 +0x123\r\nnet/http.HandlerFunc.ServeHTTP(0xc20801f360, 0x7fccbcdf9db8, 0xc2080e78c0, 0xc2081189c0)\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x41\r\ngithub.com/influxdb/influxdb/httpd.func·009(0x7fccbcdf97b0, 0xc208044dc0, 0xc2081189c0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/httpd/handler.go:600 +0x12c\r\nnet/http.HandlerFunc.ServeHTTP(0xc20801f380, 0x7fccbcdf97b0, 0xc208044dc0, 0xc2081189c0)\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x41\r\ngithub.com/bmizerany/pat.(*PatternServeMux).ServeHTTP(0xc208038170, 0x7fccbcdf97b0, 0xc208044dc0, 0xc2081189c0)\r\n        /home/mark/go/src/github.com/bmizerany/pat/mux.go:109 +0x21c\r\ngithub.com/influxdb/influxdb/httpd.(*Handler).ServeHTTP(0xc2080ab560, 0x7fccbcdf97b0, 0xc208044dc0, 0xc2081189c0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/httpd/handler.go:144 +0x4a\r\nmain.(*Handler).ServeHTTP(0xc20801f1e0, 0x7fccbcdf97b0, 0xc208044dc0, 0xc2081189c0)\r\n        /home/mark/go/src/github.com/influxdb/influxdb/cmd/influxd/handler.go:41 +0x1f5\r\nnet/http.serverHandler.ServeHTTP(0xc20802c600, 0x7fccbcdf97b0, 0xc208044dc0, 0xc2081189c0)\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1703 +0x19a\r\nnet/http.(*conn).serve(0xc208044d20)\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1204 +0xb57\r\ncreated by net/http.(*Server).Serve\r\n        /home/mark/.gvm/gos/go1.4/src/net/http/server.go:1751 +0x35e\r\n```\r\n\r\nI observed this behavior on both v0.9.0-rc4 and the more recent  241a514fbbef7ff2b2267eaea58d0291b469e301."}}