Skip to content

Segmentation fault (core dumped) when running test suite after building from sources #828

Open
@njourdane

Description

@njourdane

I get a segfault when running the test suite (python3 ./run_tests.py) after successfully building python-occ from sources.

I disabled some tests in order to isolate the problem.

Stacktraces

core_ocaf_unittest.TestOCAF

test_write_step_file (core_ocaf_unittest.TestOCAF)
Exports a colored box into a STEP file ... 
*******************************************************************
******        Statistics on Transfer (Write)                 ******

*******************************************************************
******        Transfer Mode = 0  I.E.  As Is       ******
******        Transferring Shape, ShapeType = 2                      ******
Segmentation fault (core dumped)

core_extend_dataexchange_unittest.TestExtendDataExchange

test_write_step_ap203 (core_extend_dataexchange_unittest.TestExtendDataExchange) ... 
*******************************************************************
******        Statistics on Transfer (Write)                 ******

*******************************************************************
******        Transfer Mode = 0  I.E.  As Is       ******
******        Transferring Shape, ShapeType = 2                      ******
Segmentation fault (core dumped)

After disabled test_write_step_file and core_extend_dataexchange_unittest, the tests passes.

Build options

environment variables

  • LD_LIBRARY_PATH: /app/lib

config options

  • -DOCE_INCLUDE_PATH:PATH=/app/include/opencascade
  • -DOCE_LIB_PATH:PATH=/app/lib
  • -DPYTHONOCC_INSTALL_DIRECTORY:PATH=/app/lib/python3.7/site-packages/OCC

Installed dependencies

  • glu 9.0.1
  • freeglut 3.2.1
  • tcl 8.6.10
  • tk 8.6.10
  • libXmu 1.1.3
  • opencascade 7.4.0
  • swig 4.0.1
  • pythonocc 7.4.0

Platform

  • Linux distribution: Manjaro

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions