Fixing nginx random segfaults – safari can’t access

[164173.883226] nginx[26281]: segfault at 8 ip 000000000044b2c5 sp 00007fff263caf60 error 4 in nginx[400000+db3000]
[164175.763092] nginx[26292]: segfault at 8 ip 000000000044b2c5 sp 00007fff263caf60 error 4 in nginx[400000+db3000]
[164177.975501] nginx[26298]: segfault at 8 ip 000000000044b2c5 sp 00007fff263caf60 error 4 in nginx[400000+db3000]
[164179.999358] nginx[26312]: segfault at 8 ip 000000000044b2c5 sp 00007fff263caf60 error 4 in nginx[400000+db3000]
[164182.542379] nginx[26305]: segfault at 8 ip 000000000044b2c5 sp 00007fff263caf60 error 4 in nginx[400000+db3000]

Recently one of our client complaining about their web can’t be accessed from safari, logs on server show :

If you have more than one virtual host and you are using SSL on all of them, you may have incurred in this bug. A workaround is to specify the SSL session cache inside the http block instead than in each server’s block.