Subject: | DBD-Pg 3.10.2 Crash with double free or corruption (!prev) |
Date: | Mon, 20 Jan 2020 14:45:37 +0100 |
To: | bug-DBD-Pg [...] rt.cpan.org |
From: | Peter Juhasz <peter.juhasz [...] comnica.com> |
Hi,
after upgrading to Fedora 31, and with it, DBD::Pg 3.10.0, one of our
tests began fail. After manually upgrading DBD::Pg to 3.10.2 (from
CPAN) the issue still persists.
system information:
Perl: 5.30.1
DBI: 1.642
DBD::Pg: 3.10.2
libpq: 11.6
partial backtrace:
#0 0x00007eff20d70625 in raise () from /lib64/libc.so.6
#1 0x00007eff20d598d9 in abort () from /lib64/libc.so.6
#2 0x00007eff20db44af in __libc_message () from /lib64/libc.so.6
#3 0x00007eff20dbba9c in malloc_printerr () from /lib64/libc.so.6
#4 0x00007eff20dbd92c in _int_free () from /lib64/libc.so.6
#5 0x00007eff13a0a509 in PQclear () from /usr/pgsql-9.6/lib/libpq.so.5
#6 0x00007eff13a7b33c in pg_db_destroy (dbh=<optimized out>,
imp_dbh=0x55d5294282e0) at dbdimp.c:695
#7 0x00007eff13a7283e in XS_DBD__Pg__db_DESTROY
(my_perl=0x55d5293c22a0, cv=<optimized out>) at ./Pg.xsi:420
#8 0x00007eff13ac5081 in XS_DBI_dispatch (my_perl=<optimized out>,
cv=0x55d52a8965f8) at DBI.xs:3797
#9 0x00007eff21011f08 in Perl_pp_entersub () from
/lib64/libperl.so.5.30
#10 0x00007eff20f7610f in Perl_call_sv () from /lib64/libperl.so.5.30
#11 0x00007eff210170d9 in S_curse () from /lib64/libperl.so.5.30
#12 0x00007eff21017898 in Perl_sv_clear () from /lib64/libperl.so.5.30
#13 0x00007eff21017e07 in Perl_sv_free2 () from /lib64/libperl.so.5.30
...
Unfortunately the test file that produces this crash is large and
complex, but I'll try to create a self-contained example that triggers
the bug.
best regards,
Peter Juhasz