News for hackers. Stuff that matters.
Re:Hunting down a C memory leak in a Go program by richardfey on Saturday October 16, 2021 @02:58AM (#28886086)
So the root cause was...not reading librdkafka documentation?
Re:Hunting down a C memory leak in a Go program by masklinn on Saturday October 16, 2021 @03:37AM (#28886223)
The root cause was bad library design, either incorrect defaults or a bad interface.

You should not have to read the documentation of features you do not need to discover they’ll take down your system if you forget to configure them.

Either the feature should default to a safe innocuous state, or you should not be able to skip its configuration.

Re:Hunting down a C memory leak in a Go program by richardfey on Saturday October 16, 2021 @10:04AM (#28887962)
> You should not have to read the documentation of features you do not need to discover they’ll take down your system if you forget to configure them.

Yes, you should totally read the documentation before using a library and then blaming it for a memory leak bug.

At the very least you could read it before launching such an expensive troubleshooting operation.

Re:Hunting down a C memory leak in a Go program by Taniwha on Saturday October 16, 2021 @06:54AM (#28886982)
Yeah, it's also a little unfair blaming C for a bug in the go program