Running on Fedora 19 on a Samsung chromebook (arm7l, little endian, two cores):
$ cmake -DENABLE_{LAYOUT,QUAL,COMP,FBC}=ON -DWITH_{PYTHON,CHECK}=ON -DPYTHON_INCLUDE_DIR:PATH=$(pkg-config --cflags python|sed s/-I//) -DPYTHON_LIBRARY:FILEPATH=$(pkg-config --libs python) -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib ..
$ ctest
Test project /mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/build3
Start 1: test_comp_extensions_run
1/21 Test #1: test_comp_extensions_run .......... Passed 1.16 sec
Start 2: test_comp_sbase_run
2/21 Test #2: test_comp_sbase_run ............... Passed 0.20 sec
Start 3: test_comp_util_run
3/21 Test #3: test_comp_util_run ................ Passed 19.15 sec
Start 4: test_comp_validator_run
4/21 Test #4: test_comp_validator_run ........... Passed 1.65 sec
Start 5: test_sbml_package_fbc_run
5/21 Test #5: test_sbml_package_fbc_run .........***Failed 0.14 sec
Start 6: test_fbc_validator_run
6/21 Test #6: test_fbc_validator_run ............ Passed 0.41 sec
Start 7: test_extension_package_qual_run
7/21 Test #7: test_extension_package_qual_run ... Passed 0.10 sec
Start 8: test_sbml_package_qual_run
8/21 Test #8: test_sbml_package_qual_run ........ Passed 0.32 sec
Start 9: test_qual_validator_run
9/21 Test #9: test_qual_validator_run ........... Passed 0.56 sec
Start 10: test_sbml_package_layout_run
10/21 Test #10: test_sbml_package_layout_run ...... Passed 6.10 sec
Start 11: test_layout_validator_run
11/21 Test #11: test_layout_validator_run ......... Passed 2.17 sec
Start 12: test_sbml_annotation_run
12/21 Test #12: test_sbml_annotation_run .......... Passed 2.75 sec
Start 13: test_sbml_conversion_run
13/21 Test #13: test_sbml_conversion_run ..........***Failed 2.13 sec
Start 14: test_sbml_extension_run
14/21 Test #14: test_sbml_extension_run ........... Passed 0.12 sec
Start 15: test_sbml_math_run
15/21 Test #15: test_sbml_math_run ................***Failed 4.06 sec
Start 16: test_sbml_sbml_run
16/21 Test #16: test_sbml_sbml_run ................***Failed 6.45 sec
Start 17: test_sbml_units_run
17/21 Test #17: test_sbml_units_run ...............***Failed 2.65 sec
Start 18: test_sbml_util_run
18/21 Test #18: test_sbml_util_run ................ Passed 0.12 sec
Start 19: test_sbml_validator_run
19/21 Test #19: test_sbml_validator_run ...........***Failed 9.81 sec
Start 20: test_sbml_xml_run
20/21 Test #20: test_sbml_xml_run ................. Passed 0.38 sec
Start 21: test_python_binding
21/21 Test #21: test_python_binding ...............***Failed 2.76 sec
67% tests passed, 7 tests failed out of 21
Total Test time (real) = 63.25 sec
The following tests FAILED:
5 - test_sbml_package_fbc_run (Failed)
13 - test_sbml_conversion_run (Failed)
15 - test_sbml_math_run (Failed)
16 - test_sbml_sbml_run (Failed)
17 - test_sbml_units_run (Failed)
19 - test_sbml_validator_run (Failed)
21 - test_python_binding (Failed)
Errors while running CTest
$ ctest -R test_sbml_package_fbc_run -V
UpdateCTestConfiguration from :/mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/build3/DartConfiguration.tcl
Parse Config file:/mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/build3/DartConfiguration.tcl
UpdateCTestConfiguration from :/mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/build3/DartConfiguration.tcl
Parse Config file:/mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/build3/DartConfiguration.tcl
Test project /mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/build3
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 5
Start 5: test_sbml_package_fbc_run
5: Test command: /mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/build3/src/sbml/packages/fbc/extension/test/test_sbml_package_fbc
5: Test timeout computed to be: 1500
5: Running suite(s): FbcExtension
5: WriteFbcExtension
5: ReadFbcExtension
5: 89%: Checks: 19, Failures: 1, Errors: 1
5: /mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/src/sbml/packages/fbc/extension/test/TestFbcExtension.cpp:362:F:FbcExtension:test_FbcExtension_parseGeneAssociation:0: Assertion 'test != NULL' failed
5: /mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/src/sbml/packages/fbc/extension/test/TestWriteFbcExtension.cpp:106:E:WriteFbcExtension:test_FbcExtension_create_and_write_geneassociation:0: (after this point) Received signal 11 (Segmentation fault)
1/1 Test #5: test_sbml_package_fbc_run ........***Failed 0.17 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.19 sec
The following tests FAILED:
5 - test_sbml_package_fbc_run (Failed)
Errors while running CTest
I also run valgrind on some tests... There are errors, but I'm not sure if they are the cause of the test failures.
$ valgrind -q --leak-check=no /mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/build3/src/sbml/packages/fbc/extension/test/test_sbml_package_fbc
Running suite(s): FbcExtension
WriteFbcExtension
==30864== Invalid read of size 4
==30864== at 0x11ED58: Association::toInfix() const (in /mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/build3/src/sbml/packages/fbc/extension/test/test_sbml_package_fbc)
==30864== Address 0x164 is not stack'd, malloc'd or (recently) free'd
==30864==
==30864==
==30864== Process terminating with default action of signal 11 (SIGSEGV)
==30864== Access not within mapped region at address 0x164
==30864== at 0x11ED58: Association::toInfix() const (in /mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/build3/src/sbml/packages/fbc/extension/test/test_sbml_package_fbc)
==30864== If you believe this happened as a result of a stack
==30864== overflow in your program's main thread (unlikely but
==30864== possible), you can try to increase the size of the
==30864== main thread stack using the --main-stacksize= flag.
==30864== The main thread stack size used in this run was 8388608.
ReadFbcExtension
73%: Checks: 19, Failures: 3, Errors: 2
/mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/src/sbml/packages/fbc/extension/test/TestFbcExtension.cpp:362:F:FbcExtension:test_FbcExtension_parseGeneAssociation:0: Assertion 'test != NULL' failed
/mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/src/sbml/packages/fbc/extension/test/TestWriteFbcExtension.cpp:106:E:WriteFbcExtension:test_FbcExtension_create_and_write_geneassociation:0: (after this point) Received signal 11 (Segmentation fault)
/mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/src/sbml/packages/fbc/extension/test/TestReadFbcExtension.cpp:44:F:ReadFbcExtension:test_FbcExtension_read_L3V1V1:0: Assertion 'model != NULL' failed
/mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/src/sbml/packages/fbc/extension/test/TestReadFbcExtension.cpp:97:F:ReadFbcExtension:test_FbcExtension_read_L3V1V1_defaultNS:0: Assertion 'model != NULL' failed
/mnt/state/home/zbyszek/rpmbuild/BUILD/libSBML-5.11.0-Source/src/sbml/packages/fbc/extension/test/TestReadFbcExtension.cpp:287:E:ReadFbcExtension:test_FbcExtension_read_L3V1V1_with_wonky_chemicals:0: (after this point) Test timeout expired
Please let me know if I can provide further info.
Unfortunately I don't have an arm machine available for testing. So I cannot do any testing myself on this. However, it is not out of the question that you are running into a stack issue here (so if you could try to change the --main-stacksize, that would help). Could you please re-run the tests after having set the envrionment variable:
this will tell libcheck to not spawn several processes to run the tests. Which will help us to get more detailed information about what is going wrong.
It could also be that your machine would run out of memory, the code right now does not check for failing allocations. How much memory does the chromebook have?
thanks
Frank
I don't think that's the problem. It has 2GB RAM (approx 1.7 GB free). In this regards it's not that much different from a normal notebook a few years old.
CK_FORK=no makes the test suite run faster (37 s vs 61 s), but does not change which tests fail.
I was hoping that we would get more information about line numbers, but if you say that they are the same as before, then that would not work.
Other things to try would be to change the ld flags to increase the stack (maybe -Wl,--stack,4194304)
Frank
--stack is x86 only, according to the man page.
I used -Wl,-z,stack-size=4194304, and bumped ulimit -s, this causes no difference.
Here are some instructions to start an arm Fedora21 instance in qemu virtualization: https://fedoraproject.org/wiki/User:Zbyszek/arm-vexpress-a15.
They are a simplified version of Fedora QA instructions. This is not very fast, but should suffice to test libsbml.
Apologies for the delay in looking at this. I have finally got a fedora instance running under qemu and can replicate the issues you have listed.
So I can start to address these - but when you said "not very fast" you were not joking
Thanks
Sarah
Hi
I think I may have found the issue. Attached is a patch that certainly fixes the fails in the core libsbml. I have not tried it yet with packages or python and since it will take me some hours to build and test I thought I would supply the patch so you could test it.
I do have the strange anomaly that ctest reports that test_sbml_units fails but when I run ctest -V to get more information they apparently pass!!
If you get a chance to test this it would be great to hear any feedback.
Thanks
Sarah
Indeed it seems to help a lot:
Thanks!
For reference, full log is at https://kojipkgs.fedoraproject.org//work/tasks/8558/8818558/build.log.
I'm afraid the log is not accessible to me ( I receive a 404 when trying to access it). Could you let us know what the 'other' exception of the ruby binding is? Thank you:
thank you
Sorry, I forgot that the failed builds go away quickly. New set with the patch:
s390, s390x: http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1723766 → OK
arm64: http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=2871009 → OK
ppc64, ppc64le: http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=2318140
This is strange. The build works, the tests pass, but there's a mismatch in the docs package:
arm, amd64, i386: http://koji.fedoraproject.org/koji/taskinfo?taskID=8837245 → OK
So the ruby failure on arm is either intermittent, or was dependent on the environment and was already fixed. I'll try to do some more rebuilds on arm, and if things fail I'll complain. I think this can be considered fixed for now.
Thanks for letting us know, please do not distribute the documentation generated by the CMake process yet. Generating the API docs has not been fully ported from the gnumake build system. As such the CMake generated docs are not of sufficient quality to be distributed.
The fix is now in svn.
Note it is slightly different from the patch attached here as we restricted the changed datatype to signed char rather than long that was in the patch. It still works for me.
Thanks for all the feedback.