[cmake-developers] Test unsuccessful for cmake version 2.8.10.20121108-gc31e1

2012-11-08 Thread Kornel Benko
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
...

The system in ubuntu 12.04, 64-bit.
Are there any log-files I should provide?
This one ./Tests/SystemInformation/CMakeFiles/CMakeOutput.log is 149568 bytes 
long
and contains 12 entries
The output was:
0

The last lines (1355 to 1604) end with
...
  remove lib [gcc_s]
  remove lib [gcc]
  remove lib [gcc_s]
  remove lib [gcc]
  collapse dir [/usr/lib/gcc/x86_64-linux-gnu/4.6] == 
[/usr/lib/gcc/x86_64-linux-gnu/4.6]
  collapse dir [/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu] 
== [/usr/lib/x86_64-linux-gnu]
  collapse dir [/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib] == 
[/usr/lib]
  collapse dir [/lib/x86_64-linux-gnu] == [/lib/x86_64-linux-gnu]
  collapse dir [/lib/../lib] == [/lib]
  collapse dir [/usr/lib/x86_64-linux-gnu] == [/usr/lib/x86_64-linux-gnu]
  collapse dir [/usr/lib/../lib] == [/usr/lib]
  collapse dir [/usr/lib/gcc/x86_64-linux-gnu/4.6/../../..] == [/usr/lib]
  implicit libs: [stdc++;m;c]
  implicit dirs: 
[/usr/lib/gcc/x86_64-linux-gnu/4.6;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib]

...

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

Re: [cmake-developers] Test unsuccessful for cmake version 2.8.10.20121108-gc31e1

2012-11-08 Thread Kornel Benko
Am Donnerstag, 8. November 2012 um 09:47:55, schrieb Kornel Benko 
kor...@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


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

Re: [cmake-developers] Test unsuccessful for cmake version 2.8.10.20121108-gc31e1

2012-11-08 Thread Brad King
On 11/08/2012 06:27 AM, Kornel Benko wrote:
  13/272 Test  #12: kwsys.testSystemInformation 
 ..***Exception: SegFault  0.13 sec
 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.

Thanks for tracking it down.

That was introduced in upstream KWSys here:

 http://public.kitware.com/gitweb?p=KWSys.git;a=commitdiff;h=857bda17

We just updated CMake to use a version of KWSys including this change
so it didn't affect us until now.

I've proposed a fix upstream:

 http://review.source.kitware.com/8412

which should make it through to us soon.

Thanks,
-Brad
--

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