This probably means the server terminated abnormally
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 247
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 39
Description
Hi Team,
I am facing unexpected termination on different processes:
2026-02-04 11:47:27.282318 CST,"myuser","mydb",p570503,th1268955328,"10.10.247.124","58584",2026-02-04 04:34:59 CST,0,con2459,cmd1,seg-1,,,,sx1,"ERROR","58M01","Error on receive from seg0 10.10.247.122:50000 pid=570505: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.",,,,,,"set optimizer=off",0,,"cdbdispatchresult.c",510,"Stack trace:
1 0x7f1a4d50d918 libpostgres.so errstart + 0x258
2 0x7f1a4d513676 libpostgres.so ThrowErrorData + 0x16
3 0x7f1a4d590a15 libpostgres.so CdbDispatchSetCommand + 0x285
4 0x7f1a4d52ea03 libpostgres.so + 0x4d52ea03
5 0x7f1a4d52f017 libpostgres.so ExecSetVariableStmt + 0x4c7
6 0x7f1a4d3c2392 libpostgres.so standard_ProcessUtility + 0xb02
7 0x7f1a4d3c27a3 libpostgres.so ProcessUtility + 0x113
8 0x7f1a4d3c0185 libpostgres.so + 0x4d3c0185
9 0x7f1a4d3c02ab libpostgres.so + 0x4d3c02ab
10 0x7f1a4d3c08b3 libpostgres.so PortalRun + 0x2a3
11 0x7f1a4d3bd826 libpostgres.so PostgresMain + 0x1556
12 0x7f1a4d31c5f0 libpostgres.so + 0x4d31c5f0
13 0x7f1a4d31d5f3 libpostgres.so PostmasterMain + 0xe03
14 0x4027db postgres main + 0x56b
15 0x7f1a4c62a610 libc.so.6 + 0x4c62a610
16 0x7f1a4c62a6c0 libc.so.6 __libc_start_main + 0x80
17 0x402975 postgres _start + 0x25
Kindly can you support me in this regard.
Contributor guide
Research direction
The report points to cdbdispatchresult.c:510 and the ExecSetVariableStmt path, with the failing command shown as set optimizer=off. Start by reproducing that command with the reported segment setup and inspect the segment/server logs. Done means identifying the cause of the abnormal termination and verifying that the command no longer closes the connection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, postgresql
- Domain
- databases, distributed-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100