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.
_______________________________________________
FFI mailing list
FFI@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ffi

Reply via email to