Hi, The complete source sample is at the end of this message. Please save the source to a file, for instance Sample.cpp. Then assuming you have libicu44 and libicu-dev installed compile Sample.cpp with the following command line: g++ -ggdb Sample.cpp -licutu -o Sample Run it without arguments: ./Sample
You should see segmentation fault. Regards. ----------------------- Sample goes after this line -------------------- // Sample start #include <unicode/regex.h> #include <unicode/unistr.h> int main() { UErrorCode status = U_ZERO_ERROR; RegexMatcher* const pMatcher = new RegexMatcher("\\Aboo\\z", UREGEX_DOTALL|UREGEX_CASE_INSENSITIVE, status); if (!U_FAILURE(status)) { UnicodeString str; str.setToBogus(); pMatcher->reset(str); status = U_ZERO_ERROR; pMatcher->matches(status); delete pMatcher; return 0; } else { return -1; } } // Sample end