[cmake-developers] Test unsuccessful for cmake version 2.8.10.20121108-gc31e1
Kornel Benko
kornel at lyx.org
Thu Nov 8 06:27:45 EST 2012
Am Donnerstag, 8. November 2012 um 09:47:55, schrieb Kornel Benko <kornel at lyx.org>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20121108/be6e6170/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20121108/be6e6170/attachment.sig>
More information about the cmake-developers
mailing list