[SERVER-11937] Crash in the js shell when using runProgram several times Created: 03/Dec/13 Updated: 10/Dec/14 Resolved: 23/Jun/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.0.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Alexandre [X] | Assignee: | Ramon Fernandez Marina |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu Precise |
||
| Operating System: | Linux |
| Steps To Reproduce: | In the mongo shell : for (var i = 0; i< 1000; i++) { |
| Participants: |
| Description |
|
When using runProgram or run several times, for example with this script : for (var i = 0; i< 1000; i++) { the shell crashes with this error : It could look like the pipe that is open when runing the program isn't released. Eventually, when too many pipes are open, the pipe creation fails. This links http://www.tldp.org/LDP/lpg/node11.html says each process should close the end of the pipe it doesn't use... I've looked a little bit at the code, and it seems there are no differences in the pipe management in master and in 2.0.x. I don't have the means run the test case in the master. Hope it helps, Alexandre |
| Comments |
| Comment by Ramon Fernandez Marina [ 23/Jun/14 ] |
|
Understood – thanks for letting us know Lexman. |
| Comment by Alexandre [X] [ 23/Jun/14 ] |
|
Hello, we've juste upgraded to 2.4... Anyway the bug wasn't an issue any more for us because we moved some code from shell to Java. Thanks for the follow-up ! You can consider this bug solved. |
| Comment by Ramon Fernandez Marina [ 20/Jun/14 ] |
|
Lexman, is this still an issue for you? I checked more recent versions of MongoDB, like 2.4.10 and 2.6.3, and this issue has been fixed. If you're still running into this problem, is updating to 2.4 or 2.6 a possibility for you? |