I am having issues configuring GCC/GDB with Activestate perl (v5.22.3 built for MSWin32-x64-multi-thread). Installing the toolchain works well (ppm install mingw) and I can build the module (perl, XS, C) in question, but it crashes at runtime. The same module compiles and runs under strawberry perl and doesn't crash. I am trying to track down the cause of the crash, but I can't get GDB to produce any decent output:
(gdb) bt #0 0x000000006865b3a8 in ?? () #1 0x0000000000725db9 in ?? () #2 0x0000000000725d08 in ?? () #3 0xffffffffffffffff in ?? () #4 0x000000006599b358 in ?? () #5 0x000000000225f1a0 in ?? () #6 0x0000000000000000 in ?? () (gdb)
I've created a sample script that will always crash, and adding the -g works under strawberry perl (ie, stack trace with the line of code casing the crash) but I can't get GDB under activestate working at all. Any idea's how I can set up gcc/gdb so I can use activestate perl?