pcraster icon indicating copy to clipboard operation
pcraster copied to clipboard

The test `modflow_calc_DemoTest` fails with crash on Mac ARM

Open nilason opened this issue 2 years ago • 0 comments

The test modflow_calc_DemoTest (with PCRaster version 4.4.1) fails on Mac ARM with a crash.

Extract from test log file:

239/275 Testing: modflow_calc_DemoTest
239/275 Test: modflow_calc_DemoTest
Command: "/opt/local/var/macports/build/_Users_nilason_ports_gis_pcraster/pcraster/work/build/bin/modflow_calc_DemoTest" "--catch_system_errors=no"
Directory: /opt/local/var/macports/build/_Users_nilason_ports_gis_pcraster/pcraster/work/build/source/modflow/calc
"modflow_calc_DemoTest" start time: Jan 17 14:41 CET
Output:
----------------------------------------------------------
Running 2 test cases...

[1;32;49m*** No errors detected
[0;39;49mlibc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
<end of output>
Test time =   3.29 sec
----------------------------------------------------------
Test Failed.
"modflow_calc_DemoTest" end time: Jan 17 14:41 CET
"modflow_calc_DemoTest" time elapsed: 00:00:03
----------------------------------------------------------

The crash log:

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   modflow_calc_DemoTest [4553]

Application Specific Information:
abort() called


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x1854b60dc __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1854edcc0 pthread_kill + 288
2   libsystem_c.dylib             	       0x1853f9a40 abort + 180
3   libc++abi.dylib               	       0x1854a5070 abort_message + 132
4   libc++abi.dylib               	       0x185495110 demangling_terminate_handler() + 320
5   libobjc.A.dylib               	       0x18513b99c _objc_terminate() + 160
6   libc++abi.dylib               	       0x1854a4434 std::__terminate(void (*)()) + 16
7   libc++abi.dylib               	       0x1854a43d8 std::terminate() + 108
8   libgdal.34.3.8.3.dylib        	       0x108013650 GDALDriverManager::~GDALDriverManager() + 480
9   libgdal.34.3.8.3.dylib        	       0x108013dd8 GDALDriverManager::~GDALDriverManager() + 12
10  libgdal.34.3.8.3.dylib        	       0x108017ba4 GDALDestroyDriverManager + 36
11  libpcraster_model_engine.4.4.1.dylib	       0x1052b4b1c dev::GDalClient::~GDalClient() + 104 (dev_GDalClient.cc:75)
12  libpcraster_model_engine.4.4.1.dylib	       0x1051e6198 calc::LibraryClassNoQt::~LibraryClassNoQt() + 24 (calc_LibraryClass.h:35) [inlined]
13  libpcraster_model_engine.4.4.1.dylib	       0x1051e6198 ClientHolder::~ClientHolder() + 24 (calc_globallibdefs.cc:73) [inlined]
14  libpcraster_model_engine.4.4.1.dylib	       0x1051e6198 ClientHolder::~ClientHolder() + 24 (calc_globallibdefs.cc:73) [inlined]
15  libpcraster_model_engine.4.4.1.dylib	       0x1051e6198 ClientHolder::~ClientHolder() + 40 (calc_globallibdefs.cc:73)
16  libpcraster_model_engine.4.4.1.dylib	       0x1051e5d0c std::__1::default_delete<ClientHolder>::operator()[abi:v160006](ClientHolder*) const + 12 (unique_ptr.h:65) [inlined]
17  libpcraster_model_engine.4.4.1.dylib	       0x1051e5d0c std::__1::unique_ptr<ClientHolder, std::__1::default_delete<ClientHolder>>::reset[abi:v160006](ClientHolder*) + 24 (unique_ptr.h:297) [inlined]
18  libpcraster_model_engine.4.4.1.dylib	       0x1051e5d0c std::__1::unique_ptr<ClientHolder, std::__1::default_delete<ClientHolder>>::~unique_ptr[abi:v160006]() + 24 (unique_ptr.h:263) [inlined]
19  libpcraster_model_engine.4.4.1.dylib	       0x1051e5d0c std::__1::unique_ptr<ClientHolder, std::__1::default_delete<ClientHolder>>::~unique_ptr[abi:v160006]() + 40 (unique_ptr.h:263)
20  libsystem_c.dylib             	       0x1853a9f98 __cxa_finalize_ranges + 476
21  libsystem_c.dylib             	       0x1853a9d20 exit + 44
22  libdyld.dylib                 	       0x185506b80 dyld4::LibSystemHelpers::exit(int) const + 20
23  dyld                          	       0x18516d12c start + 2436

See the details on the configuration:

--->  Configuring pcraster
Executing:  cd "/opt/local/var/macports/build/_Users_nicklas_ports_gis_pcraster/pcraster/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DPCRASTER_BUILD_MLDD=ON -DPCRASTER_BUILD_MOC=ON -DPCRASTER_BUILD_MULTICORE=OFF -DPCRASTER_WITH_FLAGS_IPO=OFF -DPython3_EXECUTABLE=/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -DPCRASTER_PYTHON_INSTALL_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages -DPCRASTER_BUILD_TEST=ON -DBOOST_ROOT=/opt/local/libexec/boost/1.76 -DBOOSTROOT=/opt/local/libexec/boost/1.76 -DBOOST_INCLUDEDIR=/opt/local/libexec/boost/1.76/include -DBOOST_LIBRARYDIR=/opt/local/libexec/boost/1.76/lib -DBOOST_INCLUDE_DIR=/opt/local/libexec/boost/1.76/include -DBOOST_LIBRARY_DIR=/opt/local/libexec/boost/1.76/lib -DBOOST_LIB_DIR=/opt/local/libexec/boost/1.76/lib -DBoost_NO_SYSTEM_PATHS=ON -DBoost_INCLUDE_DIR=/opt/local/libexec/boost/1.76/include -DBoost_DIR=/opt/local/libexec/boost/1.76 -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="14.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk" -DCMAKE_STRIP:FILEPATH=/bin/echo /opt/local/var/macports/build/_Users_nicklas_ports_gis_pcraster/pcraster/work/pcraster-4.4.1 
-- The C compiler identification is AppleClang 15.0.0.15000100
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /opt/local/libexec/boost/1.76/include (found suitable version "1.76.0", minimum required is "1.71") found components: date_time unit_test_framework 
-- CPM: adding package xsd@0 (538fb327e13c3c9d3e7ae4a7dd06098d12667f2a)
--   Applying fix for XSD serialization-header.txx
-- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework   
-- Found Qt5: 
--   version:   5.15.12
-- Found XercesC: /opt/local/lib/libxerces-c.dylib (found version "3.2.4") 
-- Found GDAL: /opt/local/lib/libgdal.dylib (found suitable version "3.8.3", minimum required is "2.4") 
-- Found GDAL: 
--   version:   3.8.3
--   libraries: /opt/local/lib/libgdal.dylib
--   includes:  /opt/local/include
-- Found Python3: /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 (found version "3.11.7") found components: Interpreter Development NumPy Development.Module Development.Embed 
-- Found Python3:
--   Interpreter ID: Python
--     version:      3.11.7
--     executable:   /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
--     site-lib:     /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
--     includes:     /opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
--   NumPy:
--     version:      1.26.2
--     includes:     /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/core/include
-- Looking for wsyncup in /opt/local/lib/libcurses.dylib
-- Looking for wsyncup in /opt/local/lib/libcurses.dylib - found
-- Looking for cbreak in /opt/local/lib/libncursesw.dylib
-- Looking for cbreak in /opt/local/lib/libncursesw.dylib - found
-- Looking for nodelay in /opt/local/lib/libncursesw.dylib
-- Looking for nodelay in /opt/local/lib/libncursesw.dylib - found
-- Found Curses: /opt/local/lib/libncursesw.dylib  
-- Found ncurses: 
--   libraries: /opt/local/lib/libncursesw.dylib/opt/local/lib/libformw.dylib
--   includes : /opt/local/include
-- Found PYTHON_MODULE_PSUTIL: /opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/psutil  
-- Found SQLite3: /opt/local/include (found version "3.44.2") 
-- Looking for C++ include pybind11/pybind11.h
-- Looking for C++ include pybind11/pybind11.h - found
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
-- Found pybind11: /opt/local/include (found version "2.10.3")
-- CPM: adding package rasterformat@0 (d5d1c5199607b5ef9a12472eec5b018d5e18693f)
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- -----------------------------------------------------------
-- PCRaster configuration summary:
--   Version:                4.4.1
--   Installation directories:
--     Binaries:             /opt/local/bin
--     Libraries:            /opt/local/lib
--     Python:               /opt/local//opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages
--   Build options:
--     Aguila:               ON
--       OpenGL support:     ON
--     Multicore:            OFF
--     Modflow:              ON
--       Build mf2005:       OFF
--     Oldcalc:              ON
--     Tests:                ON
--     Documentation:        OFF
--   Experimental features:
--     BlockPython:          ON
--     Moc:                  ON
--     Mldd:                 ON
--   Build configuration:
--     Type(s):              MacPorts
--     Flags:                
--       Native:             ON
--       IPO:                OFF
-- -----------------------------------------------------------
-- Configuring done
-- Generating done

nilason avatar Jan 17 '24 11:01 nilason