[SERVER-2786] db.printShardingStatus() causes all config servers to immediately crash (segfault) Created: 17/Mar/11 Updated: 12/Jul/16 Resolved: 18/Mar/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 1.8.0 |
| Fix Version/s: | 1.9.0 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Benedikt Waldvogel | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
|
||
| Operating System: | ALL |
| Participants: |
| Description |
|
All config servers reproducible crash with a segfault if db.printShardingStatus() is executed on a mongo router (mongos). The config server logfiles: https://gist.github.com/874822 |
| Comments |
| Comment by Benedikt Waldvogel [ 18/Mar/11 ] |
|
thanks for solving this issue so quickly. |
| Comment by auto [ 18/Mar/11 ] |
|
Author: {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}Message: check for js engine before running group |
| Comment by Kristina Chodorow (Inactive) [ 18/Mar/11 ] |
|
db.printShardingStatus() calls group(), which is like map/reduce (executing JavaScript on the server). --noscripting means you can't execute JS on the server, so it should give you a better error (i.e., not crash), but db.printShardingStatus won't produce the right result unless you get rid of the --noscripting. |
| Comment by Kristina Chodorow (Inactive) [ 18/Mar/11 ] |
|
Aha! You can't use --noscripting on the config servers, db.printShardingStatus() uses group(), which uses JavaScript. |
| Comment by Benedikt Waldvogel [ 18/Mar/11 ] |
|
I've updated the gist. Is that enough of log data? |
| Comment by Kristina Chodorow (Inactive) [ 18/Mar/11 ] |
|
Also, can you post a chunk of a log from before the crash? |
| Comment by Kristina Chodorow (Inactive) [ 18/Mar/11 ] |
|
What options did you start the config servers with? If you used a config file, can you paste its contents (and any command line ops)? |
| Comment by Benedikt Waldvogel [ 17/Mar/11 ] |
|
using the 64 bit binary from http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.8.0.tgz
|
| Comment by Eliot Horowitz (Inactive) [ 17/Mar/11 ] |
|
Which binary are you using? 32 or 64 bit, static? |