id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1432	task manager test segfaults with DBI >= 1.619	dod	alias, adamk	"Hello

With new DBI 1.619 (or 1.620), padre task_manager test segfaults. Here's the output of the test for padre 0.94:

{{{
$ perl -Ilib t/28_task_manager.t 
1..16
ok 1 - use Test::NoWarnings;
ok 2 - The object isa Padre::Wx::App
ok 3 - The object isa t::lib::Padre::NullWindow
ok 4 - The object isa Padre::TaskManager
ok 5 - No threads
ok 6 - ->start ok
ok 7 - Three threads exists
ok 8 - The object isa Padre::Task::Addition
ok 9 - ->schedule ok
ok 10 - ->{prepare} is false
ok 11 - ->{run}     is false
ok 12 - ->{finish}  is false
Segmentation fault
}}}

stack trace:

{{{
$ gdb /usr/bin/perl core
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type ""show copying""
and ""show warranty"" for details.
This GDB was configured as ""x86_64-linux-gnu"".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/perl...(no debugging symbols found)...done.
[New LWP 27589]
[New LWP 27586]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library ""/lib/x86_64-linux-gnu/libthread_db.so.1"".
Core was generated by `perl -Ilib t/38_task_manager.t'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7623f865ab in ?? () from /usr/lib/perl5/auto/DBI/DBI.so
(gdb) bt
#0  0x00007f7623f865ab in ?? () from /usr/lib/perl5/auto/DBI/DBI.so
#1  0x00007f762f91ef86 in Perl_mg_dup () from /usr/lib/libperl.so.5.14
#2  0x00007f762f91e4d4 in ?? () from /usr/lib/libperl.so.5.14
#3  0x00007f762f91e940 in Perl_sv_dup_inc () from /usr/lib/libperl.so.5.14
#4  0x00007f762f91eae7 in ?? () from /usr/lib/libperl.so.5.14
#5  0x00007f762f91f060 in Perl_mg_dup () from /usr/lib/libperl.so.5.14
#6  0x00007f762f91e4d4 in ?? () from /usr/lib/libperl.so.5.14
#7  0x00007f762f91e940 in Perl_sv_dup_inc () from /usr/lib/libperl.so.5.14
#8  0x00007f762f91f162 in Perl_gp_dup () from /usr/lib/libperl.so.5.14
#9  0x00007f762f91e68e in ?? () from /usr/lib/libperl.so.5.14
#10 0x00007f762f91e940 in Perl_sv_dup_inc () from /usr/lib/libperl.so.5.14
#11 0x00007f762f9066aa in Perl_he_dup () from /usr/lib/libperl.so.5.14
#12 0x00007f762f91e040 in ?? () from /usr/lib/libperl.so.5.14
#13 0x00007f762f91e940 in Perl_sv_dup_inc () from /usr/lib/libperl.so.5.14
#14 0x00007f762f91f162 in Perl_gp_dup () from /usr/lib/libperl.so.5.14
#15 0x00007f762f91e68e in ?? () from /usr/lib/libperl.so.5.14
#16 0x00007f762f91e940 in Perl_sv_dup_inc () from /usr/lib/libperl.so.5.14
#17 0x00007f762f9066aa in Perl_he_dup () from /usr/lib/libperl.so.5.14
#18 0x00007f762f91e040 in ?? () from /usr/lib/libperl.so.5.14
#19 0x00007f762f91e8e0 in Perl_sv_dup () from /usr/lib/libperl.so.5.14
#20 0x00007f762f91e661 in ?? () from /usr/lib/libperl.so.5.14
#21 0x00007f762f91e8e0 in Perl_sv_dup () from /usr/lib/libperl.so.5.14
#22 0x00007f762f9238bc in perl_clone () from /usr/lib/libperl.so.5.14
#23 0x00007f762e1d009f in XS_threads_create () from /usr/lib/perl/5.14/auto/threads/threads.so
#24 0x00007f762f91472f in Perl_pp_entersub () from /usr/lib/libperl.so.5.14
#25 0x00007f762f90bbc6 in Perl_runops_standard () from /usr/lib/libperl.so.5.14
#26 0x00007f762f8a74ce in Perl_call_sv () from /usr/lib/libperl.so.5.14
#27 0x00007f762e1ce681 in ?? () from /usr/lib/perl/5.14/auto/threads/threads.so
#28 0x00007f762f1c0b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#29 0x00007f762ef0b90d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#30 0x0000000000000000 in ?? ()
(gdb) quit
}}}

I have verified that the test works fine with DBI 1.618. Padre 0.94 and 0.96 give the same result, on i386 or amd64

"	defect	closed	major		Automated Build and Test	0.96	fixed	segfault dbi task	
