❯ cabal new-run
Up to date
create
... connection used
destroy
resource-pool-error(61409,0x70000394e000) malloc: *** error for object 0xc000000000000000: pointer being freed was not allocated
resource-pool-error(61409,0x70000394e000) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort cabal new-run
on macOS
disconnect を一度しか呼ばなくても、gc で回収されるのとかぶれば起こりうる
https://github.com/hdbc/hdbc-postgresql/blob/master/Database/HDBC/PostgreSQL/Connection.hsc#L68