Recent

Author Topic: Multithreaded app crashes under OpenBSD if Form1.Show called via signal  (Read 1196 times)

TCH

  • Full Member
  • ***
  • Posts: 147
The very same GUI app (http://oscomp.hu/depot/lazarus_openbsd_signaltest.zip) as in the other topic have another issue with threads and signals under OpenBSD.

The program can be signalled with SIGUSR1 which will call Form1.Show. However, if the threads are present, then instead of popping the window up, the app just crashes. Here is the error log: http://oscomp.hu/depot/lazarus_openbsd_signaltest_form_show.log

The setup is the same: OpenBSD 6.8 AMD64, FreePascal 3.2.0 and Lazarus 2.0.10-2.
As in the other case, this works flawlessly under Linux, FreeBSD and Solaris.

Any help is appreciated.

To quickly install Lazarus under OpenBSD, you can use my install script: http://oscomp.hu/depot/install_lazarus_openbsd.sh
Usage: install_lazarus_openbsd.sh x86_64 3.2.0 2.0.10 2

TCH

  • Full Member
  • ***
  • Posts: 147
Re: Multithreaded app crashes under OpenBSD if Form1.Show called via signal
« Reply #1 on: November 18, 2020, 08:49:55 pm »
Jonas Maebe pointed out in the other topic, that no signal shall mess with the program's controlling subroutines, so this is solved and the solution is in the other topic.

 

TinyPortal © 2005-2018