FreeCAD with netgen use flag enabled, compilled against media-gfx/netgen-6.2.2302 crashes on trying to generate mesh from any shape. Reproducible: Always Steps to Reproduce: 1. Create new empty document 2. Using Part or Part Design workbench create simple primitive, any will do, I can confirm this happens with cube and others 3. Switch to Mesh workbench and do "Create mesh from shape" 4. Switch to Netgen tab and click "OK" Actual Results: paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: Program received signal SIGSEGV, Segmentation fault. paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #0 /usr/lib64/libc.so.6(+0x3c3b0) [0x7fab190d83b0] paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #1 0x7faaa14bb277 in netgen::OCCGeometry::GetEdge(TopoDS_Shape const&) const from /usr/lib64/libnglib.so+0x27 paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #2 0x7faaa14b62a2 in netgen::OCCSetLocalMeshSize(netgen::OCCGeometry const&, netgen::Mesh&, netgen::MeshingParameters const&, netgen::OCCParameters const&) from /usr/lib64/libnglib.so+0xca2 paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #3 0x7faaa13c491f in netgen::NetgenGeometry::GenerateMesh(std::shared_ptr<netgen::Mesh>&, netgen::MeshingParameters&) from /usr/lib64/libnglib.so+0x6ff paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #4 0x7faab021dfcb in netgen::OCCGenerateMesh(netgen::OCCGeometry&, std::shared_ptr<netgen::Mesh>&, netgen::MeshingParameters&) from /usr/lib64/freecad/lib64/libNETGENPlugin.so+0x2b paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #5 0x7faab0212da3 in NETGENPlugin_Mesher::Compute() from /usr/lib64/freecad/lib64/libNETGENPlugin.so+0x343 paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #6 0x7faab021c6e6 in NETGENPlugin_NETGEN_2D::Compute(SMESH_Mesh&, TopoDS_Shape const&) from /usr/lib64/freecad/lib64/libNETGENPlugin.so+0xb6 paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #7 0x7faaa229d4eb in SMESH_subMesh::ComputeStateEngine(int) from /usr/lib64/freecad/lib64/libSMESH.so+0xa7b paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #8 0x7faaa21df80e in SMESH_Gen::Compute(SMESH_Mesh&, TopoDS_Shape const&, bool, bool, MeshDimension, std::set<int, std::less<int>, std::allocator<int> >*) from /usr/lib64/freecad/lib64/libSMESH.so+0xf3e paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #9 0x7faac00875be in MeshPart::Mesher::createMesh() const from /usr/lib64/freecad/lib64/MeshPart.so+0x13e paź 01 19:52:24 preciosat3500 org.freecad.FreeCAD.desktop[129000]: #10 /usr/lib64/freecad/lib64/MeshPart.so(+0x32c5a) [0x7faac0063c5a] Expected Results: Freecad shouldn't crash on mesh generation using netgen. # emerge --info Portage 3.0.66.1 (python 3.12.6-final-0, default/linux/amd64/23.0/desktop/gnome/systemd, gcc-13, glibc-2.39-r6, 6.6.38-gentoo x86_64) ================================================================= System uname: Linux-6.6.38-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_W3550_@_3.07GHz-with-glibc2.39 KiB Mem: 24606660 total, 4297732 free KiB Swap: 12582908 total, 12578300 free Timestamp of repository gentoo: Tue, 01 Oct 2024 13:00:00 +0000 Head commit of repository gentoo: 9367a9ca00707529ef41908c9d5fb29fd1a74d4c Timestamp of repository guru: Tue, 01 Oct 2024 09:06:29 +0000 Head commit of repository guru: c9f9fe590852cfde45c54343b7a3dafa1e510b64 sh bash 5.2_p26-r6 ld GNU ld (Gentoo 2.42 p3) 2.42.0 ccache version 4.10.1 [disabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26-r6::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.30.2::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.5.2::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.11.10_p1::gentoo, 3.12.6_p2::gentoo dev-lang/rust: 1.81.0::gentoo dev-util/ccache: 4.10.1::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/sandbox: 2.39::gentoo sys-apps/systemd: 255.11::gentoo sys-devel/binutils: 2.42-r1::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 17.0.6::gentoo, 18.1.8::gentoo sys-devel/gcc: 13.3.1_p20240614::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 18.1.8::gentoo sys-devel/llvm: 17.0.6-r3::gentoo, 18.1.8-r4::gentoo, 19.1.0::gentoo sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.39-r6::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-rsync-extra-opts: sync-rsync-verify-max-age: 3 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes PreciosaT3500 location: /usr/local/portage masters: gentoo volatile: True guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nehalem --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=nehalem" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d" CXXFLAGS="-O2 -pipe -march=nehalem --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=nehalem" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance binpkg-request-signature buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mirror.web4u.cz/ ftp://tux.rainside.sk/gentoo/ rsync://ftp.belnet.be/gentoo/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/" LANG="pl_PL.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" LINGUAS="pl en" MAKEOPTS="-j9 -l8 -s" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 apache2 archive argyllcms bluetooth bluray branding brotli btrfs bzip2 cairo cdda cddb cdr cet clang colord creds crypt cuda cups curl dbus designer dri dts dvd dvdr eds elfutils encode epub evo exif extra faad fat ffmpeg fftw flac fontconfig fortran ftp games gconf gd gdbm gif gimp gles gnome gnome-keyring gnome-online-accounts gnome-shell google gphoto2 gpm graphite grub gsettings gstreamer gtk gtk2 gtk3 gui haptic harfbuzz hdf5 http2 iconv icu imagemagick imap introspection ipv6 java jpeg json jumbo-build keyring kf6compat krita lcms libass libnotify libtirpc lm_sensors lzma mad mhash minizip mmx mmxext mng mount mp3 mp4 mpeg mtp multilib mysql mysqli mysqlnd nautilus ncurses ndof netgen networkmanager nfs nls nss ntfs nvenc ogg opencascade opencl openexr opengl openmp openssl opus pam pango pcre pcre32 pdf php png policykit popcnt ppds pulseaudio python qml qt6 quick quick3d raw rdp readline reiserfs samba scanner sdl seccomp secure-delete sftp skins snmp sodium sound spell sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3 startup-notification svc svg sysprof systemd test-rust theora tiff tracker truetype udev udisks unicode upower usb user-session utempter uvm vaapi vala vdpau vorbis vpx vtk vulkan wacom wayland webchannel webengine webp widgets wxwidgets x264 x265 xattr xcb xft xml xmlreader xmlwriter xmp xslt xv xvid zip zlib zstd" ABI_X86="64 32" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="pc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="pl en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport scripting-beanshell scripting-javascript wiki-publisher" LLVM_TARGETS="AMDGPU NVPTX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby31 ruby32" SANE_BACKENDS="genesys canon pixma" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS