- Notifications
You must be signed in to change notification settings - Fork28
Commitf784f05
committed
Clear error_context_stack and debug_query_string at the beginning of proc_exit,
so that we won't try to attach any context printouts to messages that getemitted while exiting. Per report from Dennis Koegel, the context functionswon't necessarily work after we've started shutting down the backend, and itseems possible that debug_query_string could be pointing at freed storageas well. The context information doesn't seem particularly relevant tosuch messages anyway, so there's little lost by suppressing it.Back-patch to all supported branches. I can only demonstrate a crash withlog_disconnections messages back to 8.1, but the risk seems real in 8.0 andbefore anyway.1 parentacdd6ea commitf784f05
1 file changed
+15
-1
lines changedLines changed: 15 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
| |||
163 | 164 |
| |
164 | 165 |
| |
165 | 166 |
| |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
166 | 180 |
| |
167 | 181 |
| |
168 | 182 |
| |
|
0 commit comments
Comments
(0)