Server crashing with SIGSEGV on page load