FrictionalContactLibrary / fclib

Frictional Contact Library of problems
https://frictionalcontactlibrary.github.io/index.html
12 stars 4 forks source link

Change of SOVERSION caused a CI failure #17

Closed radarsat1 closed 6 years ago

radarsat1 commented 6 years ago

On launchpad. Looking into it..


Test project /<<PKGBUILDDIR>>/obj-i686-linux-gnu
    Start 1: fctest1
1/2 Test #1: fctest1 ..........................***Failed    0.00 sec
/<<PKGBUILDDIR>>/obj-i686-linux-gnu/fctest1: error while loading shared libraries: libfclib.so.0: cannot open shared object file: No such file or directory

    Start 2: fctest_merit
2/2 Test #2: fctest_merit .....................***Failed    0.00 sec
/<<PKGBUILDDIR>>/obj-i686-linux-gnu/fctest_merit: error while loading shared libraries: libfclib.so.0: cannot open shared object file: No such file or directory

0% tests passed, 2 tests failed out of 2```
radarsat1 commented 6 years ago

I think it's because the launchpad build disables RPATH (normal for package) but then ctest fails as the executables cannot find the library. Possibly something that should just be fixed in the build configuration with LD_LIBRARY_PATH for example? @xhub

radarsat1 commented 6 years ago

Link to build log

radarsat1 commented 6 years ago

Hopefully fixed in b44282b97200fcf33fbb0f8fbb6920303b9d6848

xhub commented 6 years ago

Thanks for looking at it.

radarsat1 commented 6 years ago

Actually just received a new build log report that contained a segfault, which I have seen occasionally but not been able to repeat. Maybe related to #4? It does not seem to happen consistently.

xhub commented 6 years ago

do we have access to the build log and/or artefacts?

Having a valgrind run could help. Or build it locally with ASAN/MSAN.

radarsat1 commented 6 years ago

Sure it's here

Does not contain much info though. Just,


Running tests...
/usr/bin/ctest --force-new-ctest-process -j1
Test project /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
    Start 1: fctest1
1/2 Test #1: fctest1 ..........................***Exception: SegFault  0.27 sec

    Start 2: fctest_merit
2/2 Test #2: fctest_merit .....................   Passed    0.01 sec

50% tests passed, 1 tests failed out of 2

Total Test time (real) =   0.28 sec

The following tests FAILED:
      1 - fctest1 (SEGFAULT)
Errors while running CTest

Valgrind is a good idea.