Bug #2992 - Collectinfo.pl segfaults

This bug is same as Bug #2992
I couldn't reopen a task so here is a new one. The re-open request only takes to main page.

I now frequently get these. Not every day but a few times a week.

Cron /etc/webmin/virtual-server/collectinfo.pl
sh: line 1: 2187 Segmentation fault su postgres -c \\\/usr\\\/bin\\\/psql\ \-U\ postgres\ \-c\ \'\'\ \ template1 2>&1

or

Cron /etc/webmin/status/monitor.pl
sh: line 1: 19540 Segmentation fault su postgres -c \\\/usr\\\/bin\\\/psql\ \-U\ postgres\ \-c\ \'\'\ \ template1 2>&1

Status: 
Closed (fixed)