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

Goroutine leak in glog consider switching to klog #6316

Closed
janisz opened this issue May 25, 2023 · 2 comments
Closed

Goroutine leak in glog consider switching to klog #6316

janisz opened this issue May 25, 2023 · 2 comments

Comments

@janisz
Copy link

janisz commented May 25, 2023

NOTE: if you are reporting is a potential security vulnerability or a crash,
please follow our CVE process at
https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md instead of
filing an issue here.

Please see the FAQ in our main README.md, then answer the questions below
before submitting your issue.

What version of gRPC are you using?

1.55.0

What version of Go are you using (go version)?

1.20.3

What operating system (Linux, Windows, …) and version?

Linux

What did you do?

After udpating grpp from 1.54 to 1.55 leak tests started to fail due to leaking gorutine in glog.

What did you expect to see?

No gorutines leak.

What did you see instead?

Leak

I think the best option will be to switch from glog to klog (it has a fix for this kind of errors)

@dfawley
Copy link
Member

dfawley commented May 31, 2023

Can you provide more info & a repro case for the leak you're seeing with glog?

@janisz
Copy link
Author

janisz commented Jun 1, 2023

It happens in tests as there is no way to stop this gorutine

common/compliance: 2023/05/24 10:35:44.514084 auditlog_manager_impl.go:171: Info: Adding node `new-node` as an eligible compliance node for audit log collection
    node_inventory_handler_test.go:53: found unexpected goroutines:
        [Goroutine 22 in state select, with github.com/golang/glog.(*fileSink).flushDaemon on top of the stack:
        goroutine 22 [select]:
        github.com/golang/glog.(*fileSink).flushDaemon(0x5b0a478)
        	/go/pkg/mod/github.com/golang/glog@v1.1.0/glog_file.go:345 +0x170
        created by github.com/golang/glog.init.1
        	/go/pkg/mod/github.com/golang/glog@v1.1.0/glog_file.go:163 +0x29d

I've whitelisted this example so I think we can close it

@janisz janisz closed this as completed Jun 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants