Subject: | Crash when using in threaded Perl |
Necronomicon-II:~% perl -Mthreads -MNet::IP::XS -E 'my $i = Net::IP::XS->new("::1"); async{}; $_->join for threads->list;'
perl(52317,0x7fff7318f300) malloc: *** error for object 0x7fdf206afff0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
zsh: abort perl -Mthreads -MNet::IP::XS -E
I haven't tried to figure out exactly what is happening. I just distilled this down from a crash in a larger application to the smallest example I could that still displays the problem. It does seem to only happen with IPv6 addresses.