[SERVER-25519] repl::checkForCappedOplog will segfault if the local database doesn't exist Created: 09/Aug/16 Updated: 08/Feb/17 Resolved: 31/Aug/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 3.3.8 |
| Fix Version/s: | 3.2.13, 3.3.14 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Benety Goh |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Completed: | |||||||||||||
| Sprint: | Repl 2016-09-19 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
It dereferences the db without checking for null. This is especially a problem because it is called in the loop repairDatabasesAndCheckVersion for every database. It should be either moved out of the loop or only done when dbName == "local". |
| Comments |
| Comment by Githook User [ 08/Feb/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit 7b126b0eb8fc8bdab7e5c12c28d0ed58a48505bb) |
| Comment by Githook User [ 08/Feb/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit 3a7690d1ab8894c919b5a2f845a4e54aad5b6ae7) |
| Comment by Githook User [ 08/Feb/17 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: (cherry picked from commit d740809efc076f6c48cc904a0d68aa0115ba3ab5) |
| Comment by Githook User [ 31/Aug/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 31/Aug/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 31/Aug/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 31/Aug/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: Revert " This reverts commit b046947969597fa69000914ae839675b3655313b. |
| Comment by Githook User [ 31/Aug/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: Revert " This reverts commit 6db35dc5b10f7c0cf4b1c34f52c8dc4c4b6faca3. |
| Comment by Githook User [ 31/Aug/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |
| Comment by Githook User [ 31/Aug/16 ] |
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: |