Using libc's implementation of case-insensitive string comparison (str[n][case]cmp) is possible to have the segmentation violation because NULL pointers aren't checked and *p++ is used blindly. Any occasional call to these functions with one of string pointers is equal to NULL may catch signal 11 and cause program to die. Fix: Apply patch below, rebuild and reinstall libc. Don't use str[n][case]cmp from libc until it's fixed unless you want your projects to die unexpectedly. How-To-Repeat: create the simplest test: #include <string.h> int main() { char *s1 = NULL, *s2 = NULL; return strcmp(s1, s2); } > gcc -o test test.c > ./test Segmentation fault (core dumped)
State Changed From-To: open->closed The bug is in the application that passes NULL to strcmp.