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

Segmentation Violation when connecting to Kafka #7657

Open
shravan88k opened this issue Aug 21, 2024 · 0 comments
Open

Segmentation Violation when connecting to Kafka #7657

shravan88k opened this issue Aug 21, 2024 · 0 comments

Comments

@shravan88k
Copy link

I am trying to create a Kafka Producer instance so I can send some of the 'Alerts' into Messagebus.

`_, err := kafka.NewProducer(&kafka.ConfigMap{"bootstrap.servers": "brokers-names-here"})

if err != nil {
level.Error(logger).Log("msg", "kafka producer could not be created:", "err", err)
}
level.Info(logger).Log("msg", "kafka Producer created successfully")
`
Just introducing this one line of code in https://github.com/thanos-io/thanos/blob/main/cmd/thanos/rule.go#L665 causes:

`fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xe5 pc=0x7fc3ac4c2bf3]

runtime stack:
runtime.throw({0x22495fb?, 0x0?})
/tmp/var/go-compiler/go/src/runtime/panic.go:992 +0x71
runtime.sigpanic()
/tmp/var/go-compiler/go/src/runtime/signal_unix.go:802 +0x389`

If I comment out this 1 line it works fine.

Thanos, Prometheus and Golang version used:
thanos, version 0.24.0-rc.2
go1.18.5

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

1 participant