[SERVER-1282] Passing 0 to db.collection.stats() causes server to die. Created: 22/Jun/10 Updated: 12/Jul/16 Resolved: 22/Jun/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript, Shell |
| Affects Version/s: | None |
| Fix Version/s: | 1.5.4 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Doug Hudson | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
db version v1.5.3-pre-, pdfile version 4.5 |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
Executing the following from a js shell: db.collection_name.stats(0) Results in the server crashing with, e.g.: Tue Jun 22 17:59:42 connection accepted from 127.0.0.1:36607 #1 Tue Jun 22 18:02:50 Got signal: 8 (Floating point exception). Reporter understands that stats shouldn't be passed an argument, but doing this by accident shouldn't cause server to die. FYI the shell is issuing the following command: { collstats: "author_count", scale: 0.0 } |
| Comments |
| Comment by auto [ 22/Jun/10 ] |
|
Author: {'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: fix scale of 0 breaking command |