These are chat archives for arnaud-lb/php-rdkafka

9th
Nov 2016
Frédéric G. MARAND
@fgm
Nov 09 2016 19:09
Hello, there. I've been working with the extension for a few days, but I just fell onto what appears to be an extension bug: "php(30494,0x7fffa5de73c0) malloc: error for object 0x7fe6c356dfe0: pointer being freed was not allocated set a breakpoint in malloc_error_break to debug"
I'm using library 2.0.0 compiled from sources on PHP 7 on macOS.
Any pointer on how I could try to debug this ?
Magnus Edenhill
@edenhill
Nov 09 2016 19:50
@FGM See if it can create a core file (or run it through gdb) and then do gdb php core followed by bt to get a backtrace
Frédéric G. MARAND
@fgm
Nov 09 2016 19:51
how would I go about creating a core file for a php extension ?
Magnus Edenhill
@edenhill
Nov 09 2016 19:52
ulimit -c unlimited ; then run your php program from the same directory
should produce a core file when it crashes
But I dont really know PHP so that's as much as I can help :)