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

html/template: block inside title causes memory leak #17019

Closed
ghost opened this issue Sep 7, 2016 · 1 comment
Closed

html/template: block inside title causes memory leak #17019

ghost opened this issue Sep 7, 2016 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@ghost
Copy link

ghost commented Sep 7, 2016

What version of Go are you using?

go1.7

What operating system and processor architecture are you using?

linux/amd64

What did you do?

Defining a block between <title>-tags defines new templates when Executing the template.
See:
https://play.golang.org/p/mDvyONhj6A

What did you expect to see?

What did you see instead?

Added templates with names like titletext$htmltemplate_stateRCDATA_elementTitle$htmltemplate_stateRCDATA_elementTitle
Slowly fill up system memory

@ghost ghost changed the title template/html: defining additional templates on Execute() template/html: Executeing block templates locks up memory Sep 7, 2016
@quentinmit quentinmit added this to the Go1.8Maybe milestone Sep 7, 2016
@quentinmit quentinmit added the NeedsFix The path to resolution is known, but the work has not been done. label Oct 10, 2016
@quentinmit quentinmit changed the title template/html: Executeing block templates locks up memory html/template: Executeing block templates locks up memory Oct 10, 2016
@quentinmit quentinmit changed the title html/template: Executeing block templates locks up memory html/template: block inside title causes memory leak Oct 10, 2016
@rsc rsc modified the milestones: Go1.8, Go1.8Maybe Oct 19, 2016
@rsc rsc self-assigned this Oct 19, 2016
@gopherbot
Copy link

CL https://golang.org/cl/31466 mentions this issue.

@golang golang locked and limited conversation to collaborators Oct 24, 2017
@rsc rsc removed their assignment Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants