> I'm getting the SEGV in Perl_hv_clear, here: > > I32 i; > HE* entry; > for (i = 0; i <= (I32) xhv->xhv_max; i++) { > ---> entry = ((HE**)xhv->xhv_array)[i]; > > because xhv->xhv_array is NULL - I have no idea why yet. This looks distinctly broken to me. newHV returns a HV with xhv_array set to NULL, so I can't see how the line above which indexes xhv_array without checking it for NULL can ever be safe - or am I missing something? -- Alan Burlison --Thread Previous | Thread Next