forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2897e06
committed
Fix rare core dump in BackendIdGetTransactionIds().
BackendIdGetTransactionIds() neglected the possibility that the PROCpointer in a ProcState array entry is null. In current usage, this couldonly crash if the other backend had exited since pgstat_read_current_statussaw it as active, which is a pretty narrow window. But it's reachable inthe field, per bug #12918 from Vladimir Borodin.Back-patch to 9.4 where the faulty code was introduced.1 parentf444de5 commit2897e06
1 file changed
+9
-6
lines changedLines changed: 9 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
410 | 410 |
| |
411 | 411 |
| |
412 | 412 |
| |
413 |
| - | |
414 | 413 |
| |
415 |
| - | |
416 | 414 |
| |
417 | 415 |
| |
418 | 416 |
| |
| |||
422 | 420 |
| |
423 | 421 |
| |
424 | 422 |
| |
425 |
| - | |
426 |
| - | |
| 423 | + | |
| 424 | + | |
427 | 425 |
| |
428 |
| - | |
429 |
| - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
430 | 433 |
| |
431 | 434 |
| |
432 | 435 |
| |
|
0 commit comments
Comments
(0)