Skip to content

OpenBSD: Segfault on closing GUI #209

@thyssentishman

Description

@thyssentishman

When closing the GUI on OpenBSD, netgen segfaults.

Steps to reproduce:

  1. Start netgen
  2. Press 'Quit' -> 'Yes'

The segfault was introduced by this commit: 7382240. Reverting it avoids the segfault.

Backtrace
Reading symbols from netgen-mesher...
[New process 104072]
[New process 472060]
[New process 441334]
[New process 258915]
[New process 536766]
[New process 548222]
[New process 206266]
[New process 380431]
[New process 467505]
[New process 567411]
[New process 580122]
Core was generated by `netgen-mesher'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000022739c58f65 in take_gil.llvm () from /usr/local/lib/libpython3.12.so.0.0
[Current thread is 1 (process 104072)]
(gdb) bt
#0  0x0000022739c58f65 in take_gil.llvm () from /usr/local/lib/libpython3.12.so.0.0
#1  0x0000022739c59ebb in PyEval_RestoreThread () from /usr/local/lib/libpython3.12.so.0.0
#2  0x0000022739c93d66 in PyGILState_Ensure () from /usr/local/lib/libpython3.12.so.0.0
#3  0x000002253848e2ea in pybind11::gil_scoped_acquire::gil_scoped_acquire (this=)
    at /usr/local/lib/python3.12/site-packages/pybind11/include/pybind11/gil.h:195
#4  main (argc=, argv=) at /usr/ports/pobj/netgen-mesher-6.2.2406/netgen-6.2.2406/ng/ngappinit.cpp:259
(gdb) q

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions