Skip to content
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 #411

Open
xiaohaozifeifeifei opened this issue Feb 6, 2024 · 4 comments

Comments

@xiaohaozifeifeifei
Copy link

After running for a period of time, the following error always occurs, causing the program to exit abnormally.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x9a825c]

goroutine 46190 [running]:
github.com/iamseth/oracledb_exporter/collector.(*Exporter).scrape.func2()
/home/runner/work/oracledb_exporter/oracledb_exporter/collector/collector.go:315 +0xffc
created by github.com/iamseth/oracledb_exporter/collector.(*Exporter).scrape
/home/runner/work/oracledb_exporter/oracledb_exporter/collector/collector.go:321 +0x94e

@DanielGUO123
Copy link

I had the same problem using Oracle exporter 0.5.1 or 0.5.2 with OS version centos7.9

@biernatt
Copy link

Same here:

Oracle exporter 0.6.0
OS: "Red Hat Enterprise Linux 9.3 (Plow)"
Platform: OCP

53panic: runtime error: invalid memory address or nil pointer dereference 54[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x9faf69] 55 56goroutine 4544 [running]: 57github.com/iamseth/oracledb_exporter/collector.(*Exporter).scrape.func2() 58/home/runner/work/oracledb_exporter/oracledb_exporter/collector/collector.go:316 +0x13e9 59created by github.com/iamseth/oracledb_exporter/collector.(*Exporter).scrape in goroutine 36 60/home/runner/work/oracledb_exporter/oracledb_exporter/collector/collector.go:322 +0x776

@kellanfan
Copy link

I have the same problem, too.
docker: Oracle exporter 0.6.0
OS: CentOS Linux release 7.8.2003

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x9fb0e9]

goroutine 43866 [running]:
github.com/iamseth/oracledb_exporter/collector.(*Exporter).scrape.func2()
        /go/src/oracledb_exporter/collector/collector.go:316 +0x13e9
created by github.com/iamseth/oracledb_exporter/collector.(*Exporter).scrape in goroutine 43855
        /go/src/oracledb_exporter/collector/collector.go:322 +0x776

@HansK-p
Copy link
Contributor

HansK-p commented Jul 14, 2024

Seems this one might be solved by #460

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants