Title: Segfault on ifcRelVoidsElement in IfcGeom::Kernel::convert_openings · Issue #523 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Segfault on ifcRelVoidsElement in IfcGeom::Kernel::convert_openings · Issue #523 · IfcOpenShell/IfcOpenShell
X Title: Segfault on ifcRelVoidsElement in IfcGeom::Kernel::convert_openings · Issue #523 · IfcOpenShell/IfcOpenShell
Description: I encountered an ifc file that produced a segfault with the stacktrace below. I've truncated the ifc-file down to a the first line which results in the segfault. supersmallfail-manualedit.ifc.txt Version: IfcOpenShell IFC2X3 IfcConvert 0...
Open Graph Description: I encountered an ifc file that produced a segfault with the stacktrace below. I've truncated the ifc-file down to a the first line which results in the segfault. supersmallfail-manualedit.ifc.txt V...
X Description: I encountered an ifc file that produced a segfault with the stacktrace below. I've truncated the ifc-file down to a the first line which results in the segfault. supersmallfail-manualedit.ifc.t...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/523
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segfault on ifcRelVoidsElement in IfcGeom::Kernel::convert_openings","articleBody":"I encountered an ifc file that produced a segfault with the stacktrace below. I've truncated the ifc-file down to a the first line which results in the segfault.\r\n\r\n[supersmallfail-manualedit.ifc.txt](https://github.com/IfcOpenShell/IfcOpenShell/files/2675798/supersmallfail-manualedit.ifc.txt)\r\n\r\nVersion: `IfcOpenShell IFC2X3 IfcConvert 0.5.0-dev (OCC 6.8.0.oce-0.17)` commit `d78c9171`\r\n```\r\n#0 0x0000000000ada3b4 in TopoDS_Shape::ShapeType (this=0x7fffffffa9e0) at /usr/include/oce/TopoDS_Shape.lxx:137\r\n#1 0x0000000000f18b11 in IfcGeom::Kernel::convert_openings (this=0x7fffffffccf0, entity=0x158d650, openings=..., \r\n entity_shapes=std::vector of length 1, capacity 1 = {...}, entity_trsf=..., cut_shapes=std::vector of length 0, capacity 0)\r\n at /home/lennart/other_repos/ifcOpenShell/src/ifcgeom/IfcGeomFunctions.cpp:373\r\n#2 0x0000000000f30a35 in IfcGeom::Kernel::create_brep_for_representation_and_product\u003cdouble> (this=0x7fffffffccf0, settings=..., \r\n representation=0x158d010, product=0x158d650) at /home/lennart/other_repos/ifcOpenShell/src/ifcgeom/IfcGeomFunctions.cpp:1321\r\n#3 0x0000000000afbece in IfcGeom::Iterator\u003cdouble>::create_shape_model_for_next_entity (this=0x7fffffffccf0)\r\n at /home/lennart/other_repos/ifcOpenShell/src/ifcconvert/../ifcconvert/../ifcgeom/IfcGeomIterator.h:473\r\n#4 0x0000000000af06e4 in IfcGeom::Iterator\u003cdouble>::create (this=0x7fffffffccf0)\r\n at /home/lennart/other_repos/ifcOpenShell/src/ifcconvert/../ifcconvert/../ifcgeom/IfcGeomIterator.h:653\r\n#5 0x0000000000ae5923 in IfcGeom::Iterator\u003cdouble>::initialize (this=0x7fffffffccf0)\r\n at /home/lennart/other_repos/ifcOpenShell/src/ifcconvert/../ifcconvert/../ifcgeom/IfcGeomIterator.h:281\r\n#6 0x0000000000ad3f74 in main (argc=3, argv=0x7fffffffd1e8) at /home/lennart/other_repos/ifcOpenShell/src/ifcconvert/IfcConvert.cpp:619\r\n```\r\nChanging line 373 in `IfcGeomFunctions.cpp` to\r\n`if (! entity_shape.IsNull() && entity_shape.ShapeType() == TopAbs_COMPSOLID) {`\r\n(addition of `! entity_shape.IsNull() &&`) appears to \"solve\" the issue (at least produces no segfault).","author":{"url":"https://github.com/lenolib","@type":"Person","name":"lenolib"},"datePublished":"2018-12-13T11:47:36Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/523"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2c2e0cf9-7b8d-a319-df9f-5f4847c9195d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C394:B0736:C293ED:1120CF1:6B04883C |
| html-safe-nonce | ab923a122323498e9258cce8067ad7e74ce51bd05b448ea37cd02abe29a718ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzk0OkIwNzM2OkMyOTNFRDoxMTIwQ0YxOjZCMDQ4ODNDIiwidmlzaXRvcl9pZCI6IjgxMzI5ODg3MjM5MTE3NTU4MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0de848c1b2237565c4863d6e3987c9e7ead21fbae95c4985217f5d5555300a16 |
| hovercard-subject-tag | issue:390642510 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/523/issue_layout |
| twitter:image | https://opengraph.githubassets.com/79c8038728e7d8256686551919a07c722fc96e3952ad8698be55b481dbdcfd74/IfcOpenShell/IfcOpenShell/issues/523 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/79c8038728e7d8256686551919a07c722fc96e3952ad8698be55b481dbdcfd74/IfcOpenShell/IfcOpenShell/issues/523 |
| og:image:alt | I encountered an ifc file that produced a segfault with the stacktrace below. I've truncated the ifc-file down to a the first line which results in the segfault. supersmallfail-manualedit.ifc.txt V... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lenolib |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width