Skip to content

Exception handling not working in dynamic libraries

Summary

Exception handling not working in dynamic libraries on MacOS

System Information

Tried on MacOS 10.8 and 13.3

Steps to reproduce

fpc crashlib.pas fpc callcrashlib.pas ./callcrashlib

Example Project

crashme.zip

What is the current bug behavior?

Crashes

What is the expected (correct) behavior?

the crash should be handled by the try except block

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information