Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

SIGSEGV in libperl.so Perl_hv_common() #24682

Copy link
Copy link

Description

@gurucubano
Issue body actions

We face a reproducible SIGSEGV when opening a PostgreSQL database with DBI->connect(). The back trace shown in gdb goes like this:

Perl_hv_common
  └─ Perl_hv_common_key_len
       └─ pg_db_login6              (DBD::Pg)
            └─ XS_DBD__Pg__db__login
                 └─ XS_DBI_dispatch  (DBI->connect dispatch)

Description

SIGSEGV; a strace shows:

...
pid newfstatat(AT_FDCWD, "/etc/crypto-policies/back-ends/gnutls.config", {st_mode=S_IFREG|0644, st_size=3076, ...}, 0) = 0
pid openat(AT_FDCWD, "/etc/crypto-policies/back-ends/gnutls.config", O_RDONLY|O_CLOEXEC) = 3
pid fstat(3, {st_mode=S_IFREG|0644, st_size=3076, ...}) = 0
pid read(3, "[global]\noverride-mode = allowlist\n\n[overrides]\n ...
pid read(3, "", 4096)                 = 0
pid close(3)                          = 0
pid brk(0x27473000)                   = 0x27473000
pid getpid()                          = 10305
pid getpid()                          = 10305
pid --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xad} ---
pid +++ killed by SIGSEGV (core dumped) +++

Steps to Reproduce

Expected behavior

Connection to PostfreSQL server on localhost:5432.

Perl configuration

Details
# /usr/local/sisis-pap/perlbrew/perls/perl-5.40.0/bin/perl -V
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_HASH_FUNC_SIPHASH13
    PERL_HASH_USE_SBOX32
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_USE_SAFE_PUTENV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
    USE_THREAD_SAFE_LOCALE
  Built under linux
  Compiled at Apr 27 2026 14:31:07
  @INC:
    /usr/local/sisis-pap/perlbrew/perls/perl-5.40.0/lib/site_perl/5.40.0/x86_64-linux-thread-multi
    /usr/local/sisis-pap/perlbrew/perls/perl-5.40.0/lib/site_perl/5.40.0
    /usr/local/sisis-pap/perlbrew/perls/perl-5.40.0/lib/5.40.0/x86_64-linux-thread-multi
    /usr/local/sisis-pap/perlbrew/perls/perl-5.40.0/lib/5.40.0
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.