Closed burmecia closed 1 year ago
Hmm that's likely not good, but I'm not seeing it on Linux.
The actual bug, almost certainly, is that you're miscomputing the space needed for a variable-size palloc request.
https://www.postgresql.org/message-id/6178.1155825526%40sss.pgh.pa.us
I'll look further into this, thanks!
Hmm that's likely not good, but I'm not seeing it on Linux
How do you install PostgreSQL? Did you try to compile it with --enable-cassert
?
Quoting https://www.postgresql.org/message-id/6178.1155825526%40sss.pgh.pa.us :
The actual bug, almost certainly, is that you're miscomputing the space needed for a variable-size palloc request. But tracking that down will be hard until you find out which chunk it is.
As far as my tests are good, the varlena size allocated is indeed too small because pgsodium doesn't include its VARHDRSZ to the total size. See details here: https://github.com/michelp/pgsodium/issues/43
This is closed with michelp/pgsodium#43
Bug report
The warning message when insert secret data to
vault.secrets
is confusing, it saysproblem in alloc set ExprContext
, does that mean there is memory leaking?To Reproduce
Expected behavior
There should be no warning message.
Screenshots
N/A
System information
Additional context
N/A