Tonight I spent two hours banging on an EC2 instance that suddenly went awry. I was adding SSL to a couple of internal applications we host on this instance when my “apache2ctl configtest” command hung. I tried all sorts of things and finally noticed there were tons of entries in /var/log/messages referencing “4gb seg fixup” like this:
kernel: printk: 16 messages suppressed.
kernel: 4gb seg fixup, process sh (pid 21236), cs:ip 73:00a7b240
last message repeated 8 times
kernel: printk: 353387 messages suppressed.
Google revealed that I’m not the first to run into this problem with an EC2 instance. Several posts said to install the Xen version of libc
apt-get install libc6-xen
and do this:
echo "hwcap 0 nosegneg" > /etc/ld.so.conf.d/libc6-xen.conf; ldconfig
And then reboot.
This seems to have fixed it, but I’m wondering why this was either not included in the Ubuntu AMI I’m using or somehow got undone.