CC: | CAPTTOFU [...] cpan.org |
Subject: | Core dumps during mysql.t |
Sorry to spam the Class-DBI-ClassGenerator queue but it is the context that lets me reproduce this, so I hope for consensus that this is a good place to report. CC'ing to CAPTTOFU.
Similar environment as in http://www.cpantesters.org/cpan/report/c2872490-dc17-11e3-ad41-5f0473305bfd, ie. 5.20.0, DBD::mysql 4.027, DBI 1.631. Core dump looks like so:
(gdb)
#0 0x00002ab31a636074 in __GI___libc_free (mem=mem@entry=0x7fff8f070970)
at malloc.c:2905
#1 0x000000000048402a in Perl_safesysfree (where=where@entry=0x7fff8f070970)
at util.c:357
#2 0x00002ab31b695d60 in mysql_dr_connect (dbh=dbh@entry=0x2a7d840,
sock=sock@entry=0x7fff8f070970, mysql_socket=mysql_socket@entry=0x0,
host=host@entry=0x2569ac0 "localhost", port=<optimized out>,
user=0x2540ff0 "root", password=0x2a471b0 "", dbname=dbname@entry=0x0,
imp_dbh=imp_dbh@entry=0x0) at dbdimp.c:1956
#3 0x00002ab31b69fca4 in XS_DBD__mysql__dr__admin_internal (
cv=<optimized out>) at mysql.xs:109
#4 0x00002ab31b48369a in XS_DBI_dispatch (cv=0x2a0a890) at DBI.xs:3746
#5 0x00000000004a5637 in Perl_pp_entersub () at pp_hot.c:2795
#6 0x000000000049e6d3 in Perl_runops_standard () at run.c:42
#7 0x0000000000434e76 in Perl_call_sv (sv=0x2a7d8a0, flags=<optimized out>,
flags@entry=2) at perl.c:2756
#8 0x00002ab31b483b36 in XS_DBI_dispatch (cv=0x2a0a890) at DBI.xs:3765
#9 0x00000000004a5637 in Perl_pp_entersub () at pp_hot.c:2795
#10 0x000000000049e6d3 in Perl_runops_standard () at run.c:42
#11 0x000000000043b4b8 in S_run_body (oldscope=1) at perl.c:2456
#12 perl_run (my_perl=<optimized out>) at perl.c:2372
#13 0x000000000041dec5 in main (argc=2, argv=0x7fff8f071828,
env=0x7fff8f071840) at perlmain.c:114
With 5.18.2 no core but glibc complains:
*** Error in `/home/sand/src/perl/repoperls/installed-perls/perl/v5.18.2/165a/bin/perl': double free or corruption (out): 0x00007fff1c1c2a70 ***
*** Error in `/home/sand/src/perl/repoperls/installed-perls/perl/v5.18.2/165a/bin/perl': double free or corruption (out): 0x00007fff1c1c2a70 ***
*** Error in `/home/sand/src/perl/repoperls/installed-perls/perl/v5.18.2/165a/bin/perl': double free or corruption (out): 0x00007fff1c1c2a70 ***
*** Error in `/home/sand/src/perl/repoperls/installed-perls/perl/v5.18.2/165a/bin/perl': double free or corruption (out): 0x00007fff1c1c2a70 ***
*** Error in `/home/sand/src/perl/repoperls/installed-perls/perl/v5.18.2/165a/bin/perl': double free or corruption (out): 0x00007fff1c1c2a70 ***
*** Error in `/home/sand/src/perl/repoperls/installed-perls/perl/v5.18.2/165a/bin/perl': double free or corruption (out): 0x00007fff1c1c2a70 ***
*** Error in `/home/sand/src/perl/repoperls/installed-perls/perl/v5.18.2/165a/bin/perl': double free or corruption (out): 0x00007fff1c1c2a70 ***
*** Error in `/home/sand/src/perl/repoperls/installed-perls/perl/v5.18.2/165a/bin/perl': double free or corruption (out): 0x00007fff1c1c2a70 ***
*** Error in `/home/sand/src/perl/repoperls/installed-perls/perl/v5.18.2/165a/bin/perl': double free or corruption (out): 0x00007fff1c1c2a70 ***
*** Error in `/home/sand/src/perl/repoperls/installed-perls/perl/v5.18.2/165a/bin/perl': free(): invalid pointer: 0x00007fff1c1c2780 ***
t/mysql.t ......... skipped: couldn't create test db
Same thing for 5.16.3.
I have no mysql server running. At least not on the usual port.
HTH