Re: Undefined behavior detected by new clang's ubsan - Mailing list pgsql-hackers

From John Naylor
Subject Re: Undefined behavior detected by new clang's ubsan
Date
Msg-id CANWCAZbm1cZyNAmV+f-GBD3pa3F=Nx6x85mH-c4eS=-2us3OjQ@mail.gmail.com
Whole thread Raw
In response to Undefined behavior detected by new clang's ubsan  (Alexander Lakhin <exclusion@gmail.com>)
Responses Re: Undefined behavior detected by new clang's ubsan
List pgsql-hackers
On Tue, Jan 20, 2026 at 12:00 PM Alexander Lakhin <exclusion@gmail.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



pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Some cleanup of pg_stat_statements tests
Next
From: Zsolt Parragi
Date:
Subject: Re: Patch: dumping tables data in multiple chunks in pg_dump