Am Donnerstag, 8. November 2012 um 09:47:55, schrieb Kornel Benko <[email protected]> > Hi, > running "make test" on the latest available cmake yields to the following > ... > Start 12: kwsys.testSystemInformation > 13/272 Test #12: kwsys.testSystemInformation > ......................***Exception: SegFault 0.13 sec > ... > 99% tests passed, 1 tests failed out of 272 > > Label Time Summary: > Label1 = 0.04 sec > Label2 = 0.04 sec > > Total Test time (real) = 721.84 sec > > The following tests FAILED: > 12 - kwsys.testSystemInformation (SEGFAULT) > Errors while running CTest > make: *** [test] Fehler 8 > Exit 2 > ...
I traced it down to Source/kwsys/SystemInformation.cxx:1327
int fam=ifa->ifa_addr->sa_family;
In my case, ifa->ifa_addr happens to be NULL.
Changing this line to
int fam=-1;
if (ifa->ifa_addr) fam=ifa->ifa_addr->sa_family;
cures it.
Regards
Kornel
signature.asc
Description: This is a digitally signed message part.
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
