[Dune] dunecontrol crash

Aleksejs Fomins aleksejs.fomins at lspr.ch
Tue May 12 10:53:13 CEST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Christoph,

Yes, you are right, it is CMake.

I found the bug. It does not like filename FindBoost.cmake. renaming the file to whatever name like FindMyBoost.cmake solves the problem

It is probably already defined somewhere and there is a name clash.

Thanks for the support
Aleksejs


On 12/05/15 10:49, Christoph Grüninger wrote:
> Hi Aleksejs,
> so, dunecontrol does not crash, but CMake, right? Have you tried the
> latest version 3.2.2? Does it still crash? If yes, try to make a minimal
> example that does reproducibly crash. That might be of interest for the
> CMake devs.
> 
> Bye
> Christoph
> 
> Am 12.05.2015 um 10:26 schrieb Aleksejs Fomins:
>> Dear All,
>>
>> I think I have narrowed the problem as much as I could, but I still can not solve it.
>>
>> So here is the problem:
>>
>> I have a file in my project called cmake/modules/FindBoost.cmake
>> This file has exactly 1 uncommented line
>>   find_package(Boost)
>>
>> Currently this line crashes dune-control (see crash log below)
>>
>> However, if I comment this line, and write the line
>>   find_package(Boost)
>> explicitly in the root CMakeLists.txt file of my project, the code does not crash.
>>
>>
>> Could you please tell me what is the problem. I really have the feeling it is something stupid
>>
>> Regards,
>> Aleksejs
>>
>>
>>
>> ---------------------------------------------------------------
>> -- Performing tests specific to dune-curvilineargeometry from file /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry/cmake/modules/DuneCurvilineargeometryMacros.cmake.
>> -- Setting dune-curvilineargeometry_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry
>> -- Performing tests specific to dune-curvilineargrid from file /home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/cmake/modules/DuneCurvilineargridMacros.cmake.
>> ./dune-common/bin/dunecontrol: line 723: 146086 Segmentation fault      CXX=mpicxx CC=mpicc cmake -DCMAKE_MODULE_PATH="" "-Ddune-common_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-common/build-cmake" "-Ddune-geometry_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/build-cmake" -DENABLE_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE "-Ddune-grid_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-grid/build-cmake" "-Ddune-istl_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-istl/build-cmake" "-Ddune-localfunctions_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-localfunctions/build-cmake" "-Ddune-alugrid_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid/build-cmake" "-Ddune-curvilineargeometry_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargeometry/build-cmake" "-Ddune-curvilineargrid_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-curvilineargrid/build-cmake" -DHADES_FLAGS="-DHAVE_DEBUG" -DCMAKE_CXXFLAGS="-Wall -pedantic -O0 -g3 -I/opt/ex
 t
l
> i
>>  b
>> /parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0 -I/opt/extlib/metis/5.1.0/gcc/4.9.0/include -I/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0/SRC " -DMETIS_ROOT="/opt/extlib/metis/5.1.0/gcc/4.9.0" -DPARMETIS_ROOT="/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0" -DSUPERLUDIST_ROOT="/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0" -DCMAKE_LIBRARY_PATH:RELEASE="/opt/extlib/boost/1.58.0/gcc/4.9.0/lib" -DCMAKE_LIBRARY_PATH:DEBUG="/opt/extlib/boost/1.58.0/gcc/4.9.0/lib" -DCMAKE_STANDARD_LIBRARIES:RELEASE="-lboost_system -lprogram_options" -DCMAKE_STANDARD_LIBRARIES:DEBUG="-lboost_system -lprogram_options" -DCMAKE_PREFIX_PATH="/opt/extlib/boost/1.58.0/gcc/4.9.0;/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;/opt/extlib/metis/5.1.0/gcc/4.9.0;/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0;/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0/SRC;/opt/extlib/superludist/3.3/openmpi/1.8.1/gcc/4.9.0/lib;" -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE -DCMAKE_SHARED_LINKER_FLAG
 S
=
> "
>>  -
>> lzlib" "/home/fomins/gitwork/hades-github-lspr-ag/hades"
>> --- Failed to build hades ---
>> Terminating dunecontrol due to previous errors!
>> ---------------------------------------------------------------
>>
>>
>> On 11/05/15 17:44, Aleksejs Fomins wrote:
>>> Dear Jö,
>>>
>>> I have taken a look at that line, and there was nothing special there, just a bunch of libraries.
>>> Anyway, I moved the CMake script initializing SuperLUDist away without modifying the job file, and this particular error went away.
>>> So I am almost certain that the bug is not with the wrong parameters.
>>>
>>> My conclusion is that CMake came across some sort of bug in the script I just wrote and simply crashed. I will try to re-read the script
>>>
>>> Kind regards,
>>> Aleksejs
>>>
>>>
>>>
>>> On 11/05/15 17:04, Jö Fahlke wrote:
>>>> Am Mon, 11. May 2015, 13:58:15 +0200 schrieb Aleksejs Fomins:
>>>>> Date: Mon, 11 May 2015 13:58:15 +0200
>>>>> From: Aleksejs Fomins <aleksejs.fomins at lspr.ch>
>>>>> To: Dune <dune at dune-project.org>
>>>>> Subject: [Dune] dunecontrol crash
>>>>> X-No-Auth: unauthenticated sender
>>>>> X-No-Relay: not in my network
>>>>> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101
>>>>>  Icedove/31.5.0
>>>>> X-Envelope-From: <aleksejs.fomins at lspr.ch>
>>>>>
>>>>> Dear All,
>>>>>
>>>>> I wrote a little CMake script to locate SuperLUDist, so I tried to compile my project with it.
>>>>> So, the only things that were changed was the .opts file and the extra CMake routines. 
>>>>>
>>>>> The compilation went well for all libraries, except our code Hades3d, which crashed 
>>>>> ./dune-common/bin/dunecontrol: line 723: 84478 Segmentation fault 
>>>
>>>> line 723 of dunecontrol (current master) is
>>>
>>>>       eval $PREPARAMS $CMAKE "-DCMAKE_MODULE_PATH=\"$CMAKE_MODULE_PATH\" $CMAKE_PARAMS $CMAKE_FLAGS \"$SRCDIR\"" || exit 1
>>>
>>>> <https://cgit.dune-project.org/repositories/dune-common/tree/bin/dunecontrol?id=87b0e08a4f0f8369906fd9a79d2678461ecf04b7#n723>
>>>
>>>> This probably means that it is cmake that is segfaulting.  Could you give us
>>>> the output emitted by dunecontrol and cmake leading up to the segfault?  in
>>>> particular, in the line before the one above dunecontrol prints the command it
>>>> is going to run.
>>>
>>>> Regards,
>>>> Jö.
>>>
>>>
>>>
>>> _______________________________________________
>>> Dune mailing list
>>> Dune at dune-project.org
>>> http://lists.dune-project.org/mailman/listinfo/dune
>>>
>>>
>>>
>>> _______________________________________________
>>> Dune mailing list
>>> Dune at dune-project.org
>>> http://lists.dune-project.org/mailman/listinfo/dune
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJVUb95AAoJEDkNM7UOEwMZTsgP/2211HRO6sJLe7YUMFeq5A08
9iIG+hY39eKFkHS7GQ9ntiiby3/zaomi29RpBNb4IyenDQ7JMT06kFu9ZTWAcqOl
CoEwhzrArUVZGdrN4I0YWAEiR/0CkhJ3OzdYn83FREU9GQacPlLKcIlSbhb5bmeZ
m6gq0OMjUTsOXVG4xBTx9c1M55JUDmqU4fPn0DNqcY94fupLz4OkOQHdvQCYAo0T
u+lf/I2ZHTybdbH/Yx3h1ds1DoPO7tWPsZpmqjIS85Ni3bgarNYBz7GX0a2zu0ZH
XWXP6MFOKE2UZiyHP0Gc2jGk9frPXhtmEQp/Dw0ZvHDejjXRaOpVy1yPLTbnW4/K
cRRczjogFebTFM3Hoa2G6XqJ7RDdgauTg41T2t6O1xfixFjRlVWzj6D9iMOzB0zN
HR0vZnMtKnFCgwx4b/FAqsft+5l+eRw2lMTEJxrjXObwKF6mqbPITIbJo4EeZCAJ
Ba4EcwUs4Vvuxry9/JkpVvMv3lEPG0Bj22W7DpfPiiFxFs4rRlCTAtg3SrttCeQB
VDZ3Up1AvPTjz+/Iwq06yNrSU4kKbebI9hG1bXnnT4nhFf6xRzcXPVToDyQZ1c+7
fkLB8snX9L2uT5yn/nwta/+VKuEZvMFOCzZweMKy/9RryJrK0fk7QDra4VAFo/jp
MDSqbJW7d3FJISCIuib5
=7btl
-----END PGP SIGNATURE-----




More information about the Dune mailing list