Re: Undefined behavior detected by new clang's ubsan

From: John Naylor <johncnaylorls(at)gmail(dot)com>
To: Alexander Lakhin <exclusion(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Undefined behavior detected by new clang's ubsan
Date: 2026-01-20 06:13:30
Message-ID: CANWCAZbm1cZyNAmV+f-GBD3pa3F=Nx6x85mH-c4eS=-2us3OjQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jan 20, 2026 at 12:00 PM Alexander Lakhin <exclusion(at)gmail(dot)com> wrote:
> ../../src/include/lib/sort_template.h:314:15: runtime error: applying non-zero offset 8 to null pointer
> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../src/include/lib/sort_template.h:314:15

Where does it think a NULL pointer is coming from?

--
John Naylor
Amazon Web Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zsolt Parragi 2026-01-20 06:13:56 Re: Patch: dumping tables data in multiple chunks in pg_dump
Previous Message Chao Li 2026-01-20 06:09:16 Re: Some cleanup of pg_stat_statements tests