Re: [BUG] PostgreSQL crashes with ThreadSanitizer during early initialization - Mailing list pgsql-hackers

From Quan Zongliang
Subject Re: [BUG] PostgreSQL crashes with ThreadSanitizer during early initialization
Date
Msg-id a3011d7c-4363-4c27-8f7b-3999cfee7a1f@yeah.net
Whole thread Raw
In response to Re: [BUG] PostgreSQL crashes with ThreadSanitizer during early initialization  (Emmanuel Sibi <emmanuelsibi.mec@gmail.com>)
List pgsql-hackers

On 9/15/25 11:19 PM, Emmanuel Sibi wrote:
> Hi Quan, Thanks for testing the patch! I'm glad it resolves the startup crash.
> 
> Fast shutdown:
> 2025-09-15 20:20:07.454 IST [28229] LOG: received fast shutdown request
> [...]
> 2025-09-15 20:20:07.574 IST [28229] LOG: database system is shut down
> Smart shutdown:
> 2025-09-15 20:28:14.271 IST [31263] LOG: received smart shutdown request
> [...]
> 2025-09-15 20:28:14.399 IST [31263] LOG: database system is shut down
> 
> All modes complete within seconds with the final "database system is
> shut down" message, unlike the hang you're experiencing.
> The patch only moves __ubsan_default_options() to a separate
> compilation unit to avoid TSan initialization issues during startup.
> It doesn't modify any shutdown logic or signal handling code.
> My Environment: Ubuntu 24.04.1, clang 18, PostgreSQL 17.2.
> 
Great! My OS is macOS 15.6.1. I will continue to test to confirm if 
there are any other issues. If so, I will create a separate patch.




pgsql-hackers by date:

Previous
From: Rintaro Ikeda
Date:
Subject: Re: Suggestion to add --continue-client-on-abort option to pgbench
Next
From: Чумак Антон
Date:
Subject: Re: [PATCH] Introduce unified support for composite GUC options