So now I’ve completely nuked the database, deleted the installation, reinstalled from official download tar.gz except for the .htaccess and wp-config.php. The only plugin installed and active is BuddyPress, and I am still having the same problem.
I’m now going through php.ini to see if there is anything there that might be causing this.