Bug 2359698

Summary: perl-SQL-Statement-1.414-15.fc43: t/04idents.t randomly segfaults
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-SQL-StatementAssignee: Jitka Plesnikova <jplesnik>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jplesnik, kasal, mspacek, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2025-04-15 08:52:53 UTC
I observe a random crash at the end of t/04idents.t:

$ while perl -Ilib t/04idents.t; do :; done
[…]
ok 155 - imported table : upper
ok 156 - imported table : mixed
ok 157 - imported table : asterisked
1..157
Segmentation fault (core dumped)

On my x86_64 virtual machine it takes no longer than 50 iterations to get the segfault:

                Module libsqlite3.so.0 from rpm sqlite-3.49.0-1.fc43.x86_64
                Module libcrypt.so.2 from rpm libxcrypt-4.4.38-7.fc43.x86_64
                Stack trace of thread 11516:
                #0  0x00007fbe2e2bca81 sqlite3_finalize (libsqlite3.so.0 + 0x38a81)
                #1  0x00007fbe2e7a0a0f sqlite_st_destroy (SQLite.so + 0x13a0f)
                #2  0x00007fbe2e794fdf XS_DBD__SQLite__st_DESTROY (SQLite.so + 0x7fdf)
                #3  0x00007fbe2e7c8862 XS_DBI_dispatch (DBI.so + 0xc862)
                #4  0x00007fbe2eae4062 Perl_pp_entersub (libperl.so.5.40 + 0xe4062)
                #5  0x00007fbe2eb640d0 Perl_runops_standard (libperl.so.5.40 + 0x1640d0)
                #6  0x00007fbe2ea2ebca Perl_call_sv (libperl.so.5.40 + 0x2ebca)
                #7  0x00007fbe2eb72805 S_curse.lto_priv.0 (libperl.so.5.40 + 0x172805)
                #8  0x00007fbe2eb73000 Perl_sv_clear (libperl.so.5.40 + 0x173000)
                #9  0x00007fbe2eb6d355 Perl_sv_free2 (libperl.so.5.40 + 0x16d355)
                #10 0x00007fbe2ea749c8 S_mg_free_struct (libperl.so.5.40 + 0x749c8)
                #11 0x00007fbe2ea74a21 Perl_mg_free (libperl.so.5.40 + 0x74a21)
                #12 0x00007fbe2eb7303b Perl_sv_clear (libperl.so.5.40 + 0x17303b)
                #13 0x00007fbe2eb6d355 Perl_sv_free2 (libperl.so.5.40 + 0x16d355)
                #14 0x00007fbe2ea9ef24 Perl_pp_undef (libperl.so.5.40 + 0x9ef24)
                #15 0x00007fbe2eb640d0 Perl_runops_standard (libperl.so.5.40 + 0x1640d0)
                #16 0x00007fbe2ea2ebca Perl_call_sv (libperl.so.5.40 + 0x2ebca)
                #17 0x00007fbe2e7ca485 XS_DBI_dispatch (DBI.so + 0xe485)
                #18 0x00007fbe2eae4062 Perl_pp_entersub (libperl.so.5.40 + 0xe4062)
                #19 0x00007fbe2eb640d0 Perl_runops_standard (libperl.so.5.40 + 0x1640d0)
                #20 0x00007fbe2ea2ebca Perl_call_sv (libperl.so.5.40 + 0x2ebca)
                #21 0x00007fbe2eb72805 S_curse.lto_priv.0 (libperl.so.5.40 + 0x172805)
                #22 0x00007fbe2eb73000 Perl_sv_clear (libperl.so.5.40 + 0x173000)
                #23 0x00007fbe2eb6d355 Perl_sv_free2 (libperl.so.5.40 + 0x16d355)
                #24 0x00007fbe2ea9ef24 Perl_pp_undef (libperl.so.5.40 + 0x9ef24)
                #25 0x00007fbe2eb640d0 Perl_runops_standard (libperl.so.5.40 + 0x1640d0)
                #26 0x00007fbe2ea2ebca Perl_call_sv (libperl.so.5.40 + 0x2ebca)
                #27 0x00007fbe2eb72805 S_curse.lto_priv.0 (libperl.so.5.40 + 0x172805)
                #28 0x00007fbe2eb73000 Perl_sv_clear (libperl.so.5.40 + 0x173000)
                #29 0x00007fbe2eb6d355 Perl_sv_free2 (libperl.so.5.40 + 0x16d355)
                #30 0x00007fbe2ea2d0c5 perl_destruct (libperl.so.5.40 + 0x2d0c5)
                #31 0x000055d19873a63c main (/usr/bin/perl + 0x63c)
                #32 0x00007fbe2e8125b5 __libc_start_call_main (libc.so.6 + 0x35b5)
                #33 0x00007fbe2e812668 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x3668)
                #34 0x000055d19873a6c5 _start (/usr/bin/perl + 0x6c5)

I have installed:

perl-libs-5.40.1-515.fc42.x86_64
perl-DBD-SQLite-1.76-2.fc42.x86_64

It could be a bug in sqlite or perl-DBD-SQLite.