Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Memory Panic #2

Open
edperry opened this issue Mar 5, 2021 · 0 comments
Open

Memory Panic #2

edperry opened this issue Mar 5, 2021 · 0 comments

Comments

@edperry
Copy link

edperry commented Mar 5, 2021

I did a quick compile of this and seems to be failing with a Pointer error

I am using a slightly modified version of the example. Any idea's?

2021-03-05T13:28:58.466-0500	INFO	instance/beat.go:610	Home path: [/home/eperry/dev/dnsbeat] Config path: [/home/eperry/dev/dnsbeat] Data path: [/home/eperry/dev/dnsbeat/data] Logs path: [/home/eperry/d
ev/dnsbeat/logs]
2021-03-05T13:28:58.466-0500	DEBUG	[beat]	instance/beat.go:662	Beat metadata path: /home/eperry/dev/dnsbeat/data/meta.json
2021-03-05T13:28:58.466-0500	INFO	instance/beat.go:618	Beat ID: 0f746033-7b67-4068-b6ef-31cc82a96ea5
2021-03-05T13:28:58.466-0500	DEBUG	[docker]	docker/client.go:48	Docker client will negotiate the API version on the first request.
2021-03-05T13:28:58.467-0500	DEBUG	[filters]	add_cloud_metadata/providers.go:126	add_cloud_metadata: starting to fetch metadata, timeout=3s
2021-03-05T13:28:58.488-0500	DEBUG	[add_docker_metadata]	add_docker_metadata/add_docker_metadata.go:91	add_docker_metadata: docker environment detected
2021-03-05T13:28:58.488-0500	DEBUG	[docker]	docker/watcher.go:198	Start docker containers scanner
2021-03-05T13:28:58.488-0500	DEBUG	[docker]	docker/watcher.go:333	List containers
2021-03-05T13:28:58.491-0500	DEBUG	[docker]	docker/watcher.go:357	Inspect container 8c89da22576250832c33d81bd8a5a718da309699c8fbfbd38fff39147b788196
2021-03-05T13:28:58.494-0500	DEBUG	[docker]	docker/watcher.go:357	Inspect container ef5d3b5ba5f011b553ad4386a43801b0f239fbcfcfe35ef007195e7ac5293cbc
2021-03-05T13:28:58.495-0500	DEBUG	[bus]	bus/bus.go:83	docker: map[container:0xc0005de000 start:true]
2021-03-05T13:28:58.495-0500	DEBUG	[bus]	bus/bus.go:83	docker: map[container:0xc00055a0e0 start:true]
2021-03-05T13:28:58.495-0500	DEBUG	[docker]	docker/watcher.go:246	Fetching events since 1614968938
2021-03-05T13:29:01.467-0500	DEBUG	[filters]	add_cloud_metadata/providers.go:162	add_cloud_metadata: received disposition for digitalocean after 3.000286743s. result=[provider:digitalocean, error=
failed requesting digitalocean metadata: Get http://169.254.169.254/metadata/v1.json: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers), metadata={}]
2021-03-05T13:29:01.467-0500	DEBUG	[filters]	add_cloud_metadata/providers.go:169	add_cloud_metadata: timed-out waiting for all responses
2021-03-05T13:29:01.467-0500	DEBUG	[filters]	add_cloud_metadata/providers.go:129	add_cloud_metadata: fetchMetadata ran for 3.000393847s
2021-03-05T13:29:01.467-0500	INFO	add_cloud_metadata/add_cloud_metadata.go:89	add_cloud_metadata: hosting provider type not detected.
2021-03-05T13:29:01.467-0500	DEBUG	[processors]	processors/processor.go:101	Generated new processors: add_host_metadata=[netinfo.enabled=[false], cache.ttl=[5m0s]], add_cloud_metadata=null, add_docke
r_metadata=[match_fields=[] match_pids=[process.pid, process.ppid]]
2021-03-05T13:29:01.467-0500	DEBUG	[seccomp]	seccomp/seccomp.go:117	Loading syscall filter	{"seccomp_filter": {"no_new_privs":true,"flag":"tsync","policy":{"default_action":"errno","syscalls":[{"nam
es":["accept","accept4","access","arch_prctl","bind","brk","chmod","clock_gettime","clone","close","connect","dup","dup2","epoll_create","epoll_create1","epoll_ctl","epoll_pwait","epoll_wait","exit","exit_group"
,"fchdir","fchmod","fchown","fcntl","fdatasync","flock","fstat","fstatfs","fsync","ftruncate","futex","getcwd","getdents","getdents64","geteuid","getgid","getpeername","getpid","getppid","getrandom","getrlimit",
"getrusage","getsockname","getsockopt","gettid","gettimeofday","getuid","inotify_add_watch","inotify_init1","inotify_rm_watch","ioctl","kill","listen","lseek","lstat","madvise","mincore","mkdirat","mmap","mprote
ct","munmap","nanosleep","newfstatat","open","openat","pipe","pipe2","poll","ppoll","pread64","pselect6","pwrite64","read","readlink","readlinkat","recvfrom","recvmmsg","recvmsg","rename","renameat","rt_sigactio
n","rt_sigprocmask","rt_sigreturn","sched_getaffinity","sched_yield","sendfile","sendmmsg","sendmsg","sendto","set_robust_list","setitimer","setsockopt","shutdown","sigaltstack","socket","splice","stat","statfs"
,"sysinfo","tgkill","time","tkill","uname","unlink","unlinkat","wait4","waitid","write","writev"],"action":"allow"}]}}}
2021-03-05T13:29:01.467-0500	INFO	[seccomp]	seccomp/seccomp.go:124	Syscall filter successfully installed
2021-03-05T13:29:01.467-0500	INFO	[beat]	instance/beat.go:941	Beat info	{"system_info": {"beat": {"path": {"config": "/home/eperry/dev/dnsbeat", "data": "/home/eperry/dev/dnsbeat/data", "home": "
/home/eperry/dev/dnsbeat", "logs": "/home/eperry/dev/dnsbeat/logs"}, "type": "dnsbeat", "uuid": "0f746033-7b67-4068-b6ef-31cc82a96ea5"}}}
2021-03-05T13:29:01.467-0500	INFO	[beat]	instance/beat.go:950	Build info	{"system_info": {"build": {"commit": "b3dcc128e643792533cb65ee722201233dc93140", "libbeat": "7.5.1", "time": "2021-03-05T18
:06:58.000Z", "version": "7.5.1"}}}
2021-03-05T13:29:01.467-0500	INFO	[beat]	instance/beat.go:953	Go runtime info	{"system_info": {"go": {"os":"linux","arch":"amd64","max_procs":4,"version":"go1.13.8"}}}
2021-03-05T13:29:01.468-0500	INFO	[beat]	instance/beat.go:957	Host info	{"system_info": {"host": {"architecture":"x86_64","boot_time":"2021-03-02T14:24:56-05:00","containerized":false,"name":"pha
ntomdragon","ip":["127.0.0.1/8","::1/128","172.20.169.223/20","fe80::5bb8:d03e:d953:2608/64","172.18.0.1/16","172.17.0.1/16","fe80::42:9dff:fe3f:e215/64","10.64.145.216/24","fe80::32b8:751a:f287:21fa/64"],"kerne
l_version":"5.8.0-44-generic","mac":["00:15:5d:01:ec:01","02:42:13:4b:99:a7","02:42:9d:3f:e2:15"],"os":{"family":"debian","platform":"ubuntu","name":"Ubuntu","version":"20.04.2 LTS (Focal Fossa)","major":20,"min
or":4,"patch":2,"codename":"focal"},"timezone":"EST","timezone_offset_sec":-18000,"id":"e1949fe3a03843089467b2aa42bebe01"}}}
2021-03-05T13:29:01.468-0500	INFO	[beat]	instance/beat.go:986	Process info	{"system_info": {"process": {"capabilities": {"inheritable":null,"permitted":null,"effective":null,"bounding":["chown","dac
_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_c
hroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alar
m","block_suspend","audit_read","38","39"],"ambient":null}, "cwd": "/home/eperry/OneDrive/ubuntu-eperry-home/dnsbeat", "exe": "/home/eperry/OneDrive/ubuntu-eperry-home/dnsbeat/dnsbeat", "name": "dnsbeat", "pid":
 235434, "ppid": 46144, "seccomp": {"mode":"filter","no_new_privs":true}, "start_time": "2021-03-05T13:28:57.980-0500"}}}
2021-03-05T13:29:01.468-0500	INFO	instance/beat.go:297	Setup Beat: dnsbeat; Version: 7.5.1
2021-03-05T13:29:01.468-0500	DEBUG	[beat]	instance/beat.go:323	Initializing output plugins
2021-03-05T13:29:01.468-0500	DEBUG	[publisher]	pipeline/consumer.go:137	start pipeline event consumer
2021-03-05T13:29:01.468-0500	INFO	[publisher]	pipeline/module.go:97	Beat name: phantomdragon
2021-03-05T13:29:01.469-0500	INFO	[monitoring]	log/log.go:118	Starting metrics logging every 30s
2021-03-05T13:29:01.469-0500	INFO	instance/beat.go:429	dnsbeat start running.
2021-03-05T13:29:01.469-0500	INFO	[dnsbeat]	beater/dnsbeat.go:39	dnsbeat is running! Hit CTRL-C to stop it.
2021-03-05T13:29:01.469-0500	INFO	[collector-digital.hbc.com.]	collector/collector.go:55	Collecting digital.hbc.com.
2021-03-05T13:29:01.469-0500	DEBUG	[collector-digital.hbc.com.]	collector/collector.go:243	Using the desired 10.95.16.85 outbound IP
2021-03-05T13:29:01.470-0500	INFO	[monitoring]	log/log.go:153	Total non-zero metrics	{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":20,"time":{"ms":26}},"total":{"ticks":40,"time":{"ms":
55},"value":0},"user":{"ticks":20,"time":{"ms":29}}},"handles":{"limit":{"hard":1048576,"soft":1024},"open":7},"info":{"ephemeral_id":"8d17a069-fb40-403f-aba6-92fa0dff311e","uptime":{"ms":3023}},"memstats":{"gc_
next":4456080,"memory_alloc":3095280,"memory_total":5953840,"rss":36073472},"runtime":{"goroutines":15}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"console"},"pipeline":{"clients":1,"events":
{"active":0}}},"system":{"cpu":{"cores":4},"load":{"1":0.54,"15":0.46,"5":0.56,"norm":{"1":0.135,"15":0.115,"5":0.14}}}}}}
2021-03-05T13:29:01.470-0500	INFO	[monitoring]	log/log.go:154	Uptime: 3.023718826s
2021-03-05T13:29:01.470-0500	INFO	[monitoring]	log/log.go:131	Stopping metrics logging.
2021-03-05T13:29:01.470-0500	INFO	runtime/panic.go:679	dnsbeat stopped.
2021-03-05T13:29:01.477-0500	FATAL	[dnsbeat]	instance/beat.go:162	Failed due to panic.	{"panic": "runtime error: invalid memory address or nil pointer dereference", "stack": "github.com/0xThieba
ut/dnsbeat/vendor/github.com/elastic/beats/libbeat/cmd/instance.Run.func1.1\n\t/home/eperry/go/src/github.com/0xThiebaut/dnsbeat/vendor/github.com/elastic/beats/libbeat/cmd/instance/beat.go:163\nruntime.gopanic\
n\t/usr/lib/go-1.13/src/runtime/panic.go:679\nruntime.panicmem\n\t/usr/lib/go-1.13/src/runtime/panic.go:199\nruntime.sigpanic\n\t/usr/lib/go-1.13/src/runtime/signal_unix.go:394\ngithub.heygears.com/0xThiebaut/dnsbeat/lib
/collector.(*collector).transfer\n\t/home/eperry/go/src/github.com/0xThiebaut/dnsbeat/lib/collector/collector.go:249\ngithub.heygears.com/0xThiebaut/dnsbeat/lib/collector.(*collector).collectDns\n\t/home/eperry/go/src/gi
thub.com/0xThiebaut/dnsbeat/lib/collector/collector.go:143\ngithub.heygears.com/0xThiebaut/dnsbeat/lib/collector.(*collector).collect\n\t/home/eperry/go/src/github.com/0xThiebaut/dnsbeat/lib/collector/collector.go:119\ng
ithub.com/0xThiebaut/dnsbeat/lib/collector.(*collector).Start\n\t/home/eperry/go/src/github.com/0xThiebaut/dnsbeat/lib/collector/collector.go:56\ngithub.heygears.com/0xThiebaut/dnsbeat/beater.(*Dnsbeat).Run\n\t/home/eper
ry/go/src/github.com/0xThiebaut/dnsbeat/beater/dnsbeat.go:50\ngithub.heygears.com/0xThiebaut/dnsbeat/vendor/github.com/elastic/beats/libbeat/cmd/instance.(*Beat).launch\n\t/home/eperry/go/src/github.com/0xThiebaut/dnsbea
t/vendor/github.com/elastic/beats/libbeat/cmd/instance/beat.go:435\ngithub.heygears.com/0xThiebaut/dnsbeat/vendor/github.com/elastic/beats/libbeat/cmd/instance.Run.func1\n\t/home/eperry/go/src/github.com/0xThiebaut/dnsbe
at/vendor/github.com/elastic/beats/libbeat/cmd/instance/beat.go:187\ngithub.heygears.com/0xThiebaut/dnsbeat/vendor/github.com/elastic/beats/libbeat/cmd/instance.Run\n\t/home/eperry/go/src/github.com/0xThiebaut/dnsbeat/ve
ndor/github.com/elastic/beats/libbeat/cmd/instance/beat.go:188\ngithub.heygears.com/0xThiebaut/dnsbeat/vendor/github.com/elastic/beats/libbeat/cmd.genRunCmd.func1\n\t/home/eperry/go/src/github.com/0xThiebaut/dnsbeat/vend
or/github.com/elastic/beats/libbeat/cmd/run.go:36\ngithub.heygears.com/0xThiebaut/dnsbeat/vendor/github.com/elastic/beats/vendor/github.com/spf13/cobra.(*Command).execute\n\t/home/eperry/go/src/github.com/0xThiebaut/dnsb
eat/vendor/github.com/elastic/beats/vendor/github.com/spf13/cobra/command.go:704\ngithub.heygears.com/0xThiebaut/dnsbeat/vendor/github.com/elastic/beats/vendor/github.com/spf13/cobra.(*Command).ExecuteC\n\t/home/eperry/g
o/src/github.com/0xThiebaut/dnsbeat/vendor/github.com/elastic/beats/vendor/github.com/spf13/cobra/command.go:785\ngithub.heygears.com/0xThiebaut/dnsbeat/vendor/github.com/elastic/beats/vendor/github.com/spf13/cobra.(*Com
mand).Execute\n\t/home/eperry/go/src/github.com/0xThiebaut/dnsbeat/vendor/github.com/elastic/beats/vendor/github.com/spf13/cobra/command.go:738\nmain.main\n\t/home/eperry/dev/dnsbeat/main.go:12\nruntime.main\n\t
/usr/lib/go-1.13/src/runtime/proc.go:203"}

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant