Squid Web Cache wiki

Squid Web Cache documentation

πŸ”— Illegal Instruction errors on Squid 3.4 and later

πŸ”— Synopsis

Squid 3.4 and later, running on certain paravirtualized systems and even some claiming full virtualization (at least KVM, Xen, and Xen derivatives are confirmed so far) crashes with an illegal instruction error soon after startup.

πŸ”— Symptoms

πŸ”— Explanation

The Squid build system uses by default the ` -march=native ` gcc option to optimize the resulting binary. Unfortunately certain (para-)virtualization systems don’t support the whole instruction set they advertise. The compiler doesn’t know, and generates instructions which trigger this error.

πŸ”— Workaround

These optimizations are helpful but not necessary to have a fully functional squid, especially on ia64/amd64 platforms. The detected defaults can be overridden by supplying the --disable-arch-native option to the configure script.

Categories: KnowledgeBase

Navigation: Site Search, Site Pages, Categories, πŸ”Ό go up