Subject: | free from wrong pool |
I was having random segfaults, so I compiled a perl with -DPANIC and got a "panic: free from wrong pool" error. This is the backtrace:
#0 write () at ../sysdeps/unix/syscall-template.S:82
#1 0x0824b5c0 in PerlIOUnix_write (my_perl=0x833b008, f=0x834cc68, vbuf=0x8f60ff0, count=158) at perlio.c:2855
#2 0x0824eafd in PerlIOBuf_flush (my_perl=0x833b008, f=0x834c728) at perlio.c:3967
#3 0x0824e169 in PerlIOBuf_write (my_perl=0x833b008, f=0x834c728, vbuf=0x8f60ef0, count=0) at perlio.c:4190
#4 0x08211669 in Perl_do_print (my_perl=0x833b008, sv=0x8f57dc0, fp=0x834c728) at doio.c:1257
#5 0x08106a62 in Perl_write_to_stderr (my_perl=0x833b008, msv=0x8f57dc0) at util.c:1427
#6 0x081d7b23 in Perl_die_unwind (my_perl=0x833b008, msv=0x8f56058) at pp_ctl.c:1793
#7 0x08107837 in Perl_vcroak (my_perl=0x833b008, pat=0x829f848 "panic: free from wrong pool", args=0xbfffed1c) at util.c:1612
#8 0x08106bb0 in Perl_croak_nocontext (pat=0x829f848 "panic: free from wrong pool") at util.c:1646
#9 0x08106e9f in Perl_safesysfree (where=0x8e4e4c0) at util.c:265
#10 0xb7a7ee7e in free_all () at memory.c:81
#11 0xb7a7dd30 in compute_voronoi (sites_in=0x8e4e4d0, nsites_in=577, xmin_in=0, xmax_in=20000000, ymin_in=0, ymax_in=29983080,
debug_in=0, lines_out_in=0x8e4bc28, edges_out_in=0x8e4bc38, vertices_out_in=0x8e4bc48) at voronoi_main.c:56
#12 0xb7a80730 in XS_Math__Geometry__Voronoi_compute_voronoi_xs (my_perl=0x833b008, cv=0x87a2978) at Voronoi.xs:75
#13 0x08147205 in Perl_pp_entersub (my_perl=0x833b008) at pp_hot.c:3046
#