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 parser #2

Closed
magiconair opened this issue Nov 15, 2014 · 1 comment
Closed

Goroutine leak in parser #2

magiconair opened this issue Nov 15, 2014 · 1 comment
Milestone

Comments

@magiconair
Copy link
Owner

After parsing some input there is still a goroutine with a lexer around which will never be cleaned up. Parsing a lot of inputs leaks a goroutine per input.

You'll notice it in the goroutine dump as something similar to this:

goroutine 21 [chan send]:
github.com/magiconair/properties.(*lexer).emit(0xc208004240, 0x2)
    /Users/frschroeder/gopath/src/github.com/magiconair/properties/lex.go:99 +0xb9
github.com/magiconair/properties.lexKey(0xc208004240, 0x414148)
    /Users/frschroeder/gopath/src/github.com/magiconair/properties/lex.go:250 +0x132
github.com/magiconair/properties.(*lexer).run(0xc208004240)
    /Users/frschroeder/gopath/src/github.com/magiconair/properties/lex.go:177 +0x4e
created by github.com/magiconair/properties.lex
    /Users/frschroeder/gopath/src/github.com/magiconair/properties/lex.go:170 +0xce
magiconair added a commit that referenced this issue Nov 15, 2014
@magiconair
Copy link
Owner Author

Fixed in v1.4.2

@magiconair magiconair added this to the 1.4.2 milestone Oct 31, 2017
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