[SERVER-81783] Investigate a segfault when not rebuilding VariableEnvironment after memo implementation phase Created: 03/Oct/23 Updated: 16/Oct/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Henri Nikku | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | M9 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Query Optimization
|
||||||||
| Participants: | |||||||||
| Description |
|
After running the memo implementation phase, we currently rebuild the env for each resulting plan here. The rebuild and the following assertion were initially added for debugging purposes but now appear to be hiding a bug that can cause a segmentation fault if the env is not rebuilt after running physical rewrites. We should investigate and fix the segfault, and only call rebuild in debug builds. See this comment for a more detailed description of the segmentation fault. |