Repository navigation
Commit 3f327b4
BuilderApp: return after quit() in OnInit(), same shape as #120's crash
BuilderApp::OnInit()'s solo-viewer startup path has the exact same
shape GatewayApp::OnInit() had before 97d4a86: seven call sites,
p_builder->quit(false) with no `return`, so a failed check falls
through into the next try block instead of stopping startup.
Not a live bug today -- Builder::quit() reaches an unconditional
_exit(0) whenever there's nothing to save, which is always true this
early (no calculation has been loaded yet), so control never actually
returns to the caller for the fall-through to matter. But that's
incidental to how quit() happens to be written, not something this
startup sequence should depend on -- it's one _exit() removal away
from being the identical crash. Adding `return false` after every
quit() call costs nothing and removes the landmine regardless of
whether Builder::quit()'s own behavior ever changes.
Audited: only BuilderApp.C and GatewayApp.C share this
checkServerSetup()/checkServer()/checkUser() startup template, so no
further siblings.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E4HPD1xaxKpyh9gZ6hsBP21 parent 772cb7d commit 3f327b4
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
144 | 155 | | |
145 | 156 | | |
146 | 157 | | |
| 158 | + | |
147 | 159 | | |
148 | 160 | | |
149 | 161 | | |
| |||
152 | 164 | | |
153 | 165 | | |
154 | 166 | | |
| 167 | + | |
155 | 168 | | |
156 | 169 | | |
157 | 170 | | |
| |||
161 | 174 | | |
162 | 175 | | |
163 | 176 | | |
| 177 | + | |
164 | 178 | | |
165 | 179 | | |
166 | 180 | | |
167 | 181 | | |
168 | 182 | | |
| 183 | + | |
169 | 184 | | |
170 | 185 | | |
171 | 186 | | |
| |||
174 | 189 | | |
175 | 190 | | |
176 | 191 | | |
| 192 | + | |
177 | 193 | | |
178 | 194 | | |
179 | 195 | | |
| |||
185 | 201 | | |
186 | 202 | | |
187 | 203 | | |
| 204 | + | |
188 | 205 | | |
189 | 206 | | |
190 | 207 | | |
191 | 208 | | |
| 209 | + | |
192 | 210 | | |
193 | 211 | | |
194 | 212 | | |
| |||
0 commit comments