opengm / opengm

A C++ Library for Discrete Graphical Models
MIT License
411 stars 206 forks source link

ml learning crashes with segfault on travis with clang (learning branch) #411

Open DerThorsten opened 8 years ago

DerThorsten commented 8 years ago

ml learning crashes with segfault on travis with clang (learning branch). @joergkappes ,I have no idea whats going on ..

DerThorsten commented 8 years ago

@ilastikdev , this seems to be your max lh learning, could you investigate?

ilastikdev commented 8 years ago

I ran mll test in debug and release mode and it runs in both cases on learning-experimental branch.

DerThorsten commented 8 years ago

@ilastikdev on clang? If so, could you try to use the same compiler as travis?

DerThorsten commented 8 years ago

removed learning again from master after a quick discussion with @joergkappes

DerThorsten commented 8 years ago

Nethertheless we should fix this in the learning branch

ilastikdev commented 8 years ago

Running tests... Test project /home/jales/software/miniconda/envs/ilastik-devel/src/opengm/build Start 1: test-lweightedsum-of-functions 1/56 Test #1: test-lweightedsum-of-functions .... Passed 0.00 sec Start 2: test-partitions 2/56 Test #2: test-partitions ................... Passed 0.13 sec Start 3: test-gm-learning-functions 3/56 Test #3: test-gm-learning-functions ........ Passed 0.00 sec Start 4: test-graphicalmodelmanipulator 4/56 Test #4: test-graphicalmodelmanipulator .... Passed 0.00 sec Start 5: test-explicit-storage 5/56 Test #5: test-explicit-storage ............. Passed 0.00 sec Start 6: test-types 6/56 Test #6: test-types ........................ Passed 0.00 sec Start 7: test-test-type-sizes-for-hdf5 7/56 Test #7: test-test-type-sizes-for-hdf5 ..... Passed 0.00 sec Start 8: test-fast-sequence 8/56 Test #8: test-fast-sequence ................ Passed 0.00 sec Start 9: test-functions 9/56 Test #9: test-functions .................... Passed 0.43 sec Start 10: test-learnable-functions 10/56 Test #10: test-learnable-functions .......... Passed 0.00 sec Start 11: test-factor 11/56 Test #11: test-factor ....................... Passed 0.00 sec Start 12: test-discretespaces 12/56 Test #12: test-discretespaces ............... Passed 0.00 sec Start 13: test-graphicalmodel 13/56 Test #13: test-graphicalmodel ............... Passed 0.00 sec Start 14: test-factorgraph 14/56 Test #14: test-factorgraph .................. Passed 0.00 sec Start 15: test-graphicalmodeldecomposer 15/56 Test #15: test-graphicalmodeldecomposer ..... Passed 0.03 sec Start 16: test-operate 16/56 Test #16: test-operate ...................... Passed 0.00 sec Start 17: test-operations 17/56 Test #17: test-operations ................... Passed 0.00 sec Start 18: test-accumulate 18/56 Test #18: test-accumulate ................... Passed 0.00 sec Start 19: test-randomaccessset 19/56 Test #19: test-randomaccessset .............. Passed 0.00 sec Start 20: test-tribool 20/56 Test #20: test-tribool ...................... Passed 0.00 sec Start 21: test-accessor-iterator 21/56 Test #21: test-accessor-iterator ............ Passed 0.00 sec Start 22: test-random 22/56 Test #22: test-random ....................... Passed 0.01 sec Start 23: test-primal-lpbound 23/56 Test #23: test-primal-lpbound ............... Passed 0.00 sec Start 24: test-transportsolver 24/56 Test #24: test-transportsolver .............. Passed 0.00 sec Start 25: test-io-hdf5 25/56 Test #25: test-io-hdf5 ...................... Passed 0.01 sec Start 26: test-memoryinfo 26/56 Test #26: test-memoryinfo ................... Passed 0.04 sec Start 27: test-lp-solver 27/56 Test #27: test-lp-solver .................... Passed 0.00 sec Start 28: test-indicator-variable 28/56 Test #28: test-indicator-variable ........... Passed 0.00 sec Start 29: test-linear-constraint 29/56 Test #29: test-linear-constraint ............ Passed 0.00 sec Start 30: test-subsequence-iterator 30/56 Test #30: test-subsequence-iterator ......... Passed 0.00 sec Start 31: test-lp-functiontransfer 31/56 Test #31: test-lp-functiontransfer .......... Passed 0.00 sec Start 32: test-canonicalview 32/56 Test #32: test-canonicalview ................ Passed 0.01 sec Start 33: test-adsal 33/56 Test #33: test-adsal ........................ Passed 0.05 sec Start 34: test-nesterov 34/56 Test #34: test-nesterov ..................... Passed 0.09 sec Start 35: test-trwsi 35/56 Test #35: test-trwsi ........................ Passed 0.02 sec Start 36: test-messagepassing 36/56 Test #36: test-messagepassing ............... Passed 0.52 sec Start 37: test-dynamicprogramming 37/56 Test #37: test-dynamicprogramming ........... Passed 0.18 sec Start 38: test-self-fusion 38/56 Test #38: test-self-fusion .................. Passed 0.25 sec Start 39: test-fusion-based-inf 39/56 Test #39: test-fusion-based-inf ............. Passed 0.01 sec Start 40: test-icm 40/56 Test #40: test-icm .......................... Passed 0.00 sec Start 41: test-bruteforce 41/56 Test #41: test-bruteforce ................... Passed 0.00 sec Start 42: test-lazyflipper 42/56 Test #42: test-lazyflipper .................. Passed 0.09 sec Start 43: test-movemaker 43/56 Test #43: test-movemaker .................... Passed 0.00 sec Start 44: test-dualdecomposition 44/56 Test #44: test-dualdecomposition ............ Passed 0.38 sec Start 45: test-astar 45/56 Test #45: test-astar ........................ Passed 0.88 sec Start 46: test-2sat 46/56 Test #46: test-2sat ......................... Passed 0.00 sec Start 47: test-minstcut 47/56 Test #47: test-minstcut ..................... Passed 0.02 sec Start 48: test-graphcut 48/56 Test #48: test-graphcut ..................... Passed 3.39 sec Start 49: test-alphabetaswap 49/56 Test #49: test-alphabetaswap ................ Passed 0.30 sec Start 50: test-alphaexpansion 50/56 Test #50: test-alphaexpansion ............... Passed 0.59 sec Start 51: test-qpbo 51/56 Test #51: test-qpbo ......................... Passed 0.24 sec Start 52: test-gridsearch-learner 52/56 Test #52: test-gridsearch-learner ........... Passed 0.57 sec Start 53: test-maximum-likelihood-learner 53/56 Test #53: test-maximum-likelihood-learner ... Passed 12.46 sec Start 54: test-dataset-io 54/56 Test #54: test-dataset-io ................... Passed 0.30 sec Start 55: test-dataset 55/56 Test #55: test-dataset ...................... Passed 0.20 sec Start 56: test-generalized-hammingloss 56/56 Test #56: test-generalized-hammingloss ...... Passed 0.00 sec

100% tests passed, 0 tests failed out of 56

Total Test time (real) = 21.30 sec

ilastikdev commented 8 years ago

mll seems to be working fine

the problem is in lockModel (and unlockModel) from dataset.hxx which are bool functions without return statements this leads to undefined behaviour by chance works on gcc but does not on clang