Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: concurrent (*Tx).Stmt calls may crash when Tx is canceled #23208
This is with go1.10beta1 / linux / amd64.
Repro code is at the bottom of the post.
You'll need to provide it with a postgres DB. I haven't had a chance to try with other drivers, but I'm 95% sure this is not driver-related.
I reliably get a crash after a few seconds:
If I run this with 1.9.2 I don't see a crash but it OOMs after a bit due to some leak (likely #22976). (The original code that my repro was reduced from sees other, different crashes on 1.9.2 which look like #21117.)
Tentatively marking as Go 1.10 since it seems to be a regression.