[SERVER-21010] Closing a command prompt running mongo.exe client causes app crash Created: 19/Oct/15 Updated: 08/Jan/24 Resolved: 06/Nov/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 3.2.0-rc0 |
| Fix Version/s: | 3.2.0-rc3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Dave S | Assignee: | Mark Benvenuto |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 x64 for the client. Tested against server running 2.6.8 on Win 2012 R2 and on local server running 3.2RC0 on the same Windows 7 box. |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | Windows | ||||||||
| Steps To Reproduce: | On a windows 7 environment, run the command promopt, then run mongo.exe and connect to a mongo server (with or without auth). Then click the top-right X on the command prompt window. mongo.exe will crash producing a "mongo.exe has stopped working" windows dialog. |
||||||||
| Sprint: | Platform B (10/30/15), Platform C (11/20/15) | ||||||||
| Participants: | |||||||||
| Description |
|
mongo.exe doesn't handle the X to close the app/command prompt it was opened in. |
| Comments |
| Comment by Ramon Fernandez Marina [ 06/Nov/15 ] | |||||||||||||||||||||||||||
|
Thanks for reporting this radardave. The fix has been committed and it will be part of the upcoming 3.2.0-rc3 release candidate, scheduled for the coming weeks. | |||||||||||||||||||||||||||
| Comment by Githook User [ 06/Nov/15 ] | |||||||||||||||||||||||||||
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: | |||||||||||||||||||||||||||
| Comment by Githook User [ 06/Nov/15 ] | |||||||||||||||||||||||||||
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: | |||||||||||||||||||||||||||
| Comment by Mark Benvenuto [ 19/Oct/15 ] | |||||||||||||||||||||||||||
|
Here is the stack. It repros with 3.2.0-rc0 mongo.exe and 3.2.0-rc0 mongod.exe on Windows 10.
We need to add a HandlerRoutine, handle CTRL_CLOSE_EVENT, and simply call _exit. I will follow up with mira.carey@mongodb.com if there are any issues with that plan. |