PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> pg_dump command :
> pg_dump host=server.postgres.database.azure.com -p 5432
> username=admin1(at)server -w -F c -dbname=demo -v -f /root/out.dump
Both of the stack traces you show are blocked trying to write
debug messages to the terminal. Maybe you should drop "-v".
regards, tom lane