Advice on diagnosing segfaults?
Henning Thielemann
lemming at henning-thielemann.de
Sun Oct 1 20:59:18 UTC 2023
On Mon, 2 Oct 2023, Adrian Cochrane wrote:
> I've got a segfault in one of the language bindings I'm developing
> (fontconfig-pure), and I'm struggling to locate it.
I could solve some problems in my C library bindings using ltrace. It logs
all calls to external C libraries together with the function parameters.
You can create a config file in order to improve reporting of passed
parameters.
Another useful tool might be valgrind. I think it should also point you to
the crashing function call.
More information about the FFI
mailing list