| From: | 杨磊 <yanglei(at)halodbtech(dot)com> |
|---|---|
| To: | pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | dlist_check: add check for nodes pointing to themselves |
| Date: | 2026-03-17 12:56:15 |
| Message-ID: | tencent_09314A06199C6B13095610FB@qq.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi hackers,
I accidentally called the function dlist_push_head consecutively on the same node,
inserting it into a doubly linked list, which caused an infinite loop.
After adding the compile parameter -DILIST_DEBUG, an infinite loop occurred in the dlist_check function,
revealing that the next pointer of the current node was pointing to itself.
I am attempting to fix this issue with the following patch.
regards,
Lei Yang
| Attachment | Content-Type | Size |
|---|---|---|
| 0001-dlist_check-add-check-for-nodes-pointing-to-themselv.patch | application/octet-stream | 1.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2026-03-17 13:07:14 | Re: Serverside SNI support in libpq |
| Previous Message | Shlok Kyal | 2026-03-17 12:48:27 | Re: [Proposal] Adding Log File Capability to pg_createsubscriber |