Hi,

I'm tracking down various problems with my app - while debugging I was able to crash Win32-GUI (latest code line) on Perl 5.8.7:

perl.exe caused an Access Violation at location 23497414 in module GUI.dll Reading from location 00000004.

Registers:
eax=00000000 ebx=00000004 ecx=00000000 edx=00000001 esi=00000005 edi=234bf3ce eip=23497414 esp=0140f30c ebp=0140f3e4 iopl=0 nv up ei pl nz ac po nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000216

Call stack:
23497414 GUI.dll:23497414 XS_Win32__GUI__TreeView_InsertItem(interpreter*, cv*) TreeView.xs:775
void XS_Win32__GUI__TreeView_InsertItem(interpreter*, cv*)(
        PerlInterpreter * my_perl = &(indirect),
        CV * cv = &(indirect)
)
        ...
                    if(strcmp(option, "-text") == 0) {
                        next_i = i + 1;
                        tlen = SvCUR(ST(next_i));
                        pszText = (LPSTR) safemalloc(tlen + 1);
                        strcpy(pszText, SvPV_nolen(ST(next_i)));
        ...

The SV causing the problem is 'undef' (ie, passing undef) - I need to do more analysis...

Cheers,

jez.



Reply via email to