[SERVER-151] db.eval causes segfault if it returns NULL Created: 12/Jul/09 Updated: 12/Jul/16 Resolved: 13/Jul/09 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | 0.9.6 |
| Fix Version/s: | 0.9.7 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Wouter | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu |
||
| Participants: |
| Description |
|
$mongoDB->execute('function() { return null; }');causes segfault in server Stacktrace: Sun Jul 12 00:56:49 connection accepted from 192.168.226.1:7883 Sun Jul 12 00:56:49 Got signal: 11 (Segmentation fault). Sun Jul 12 00:56:49 Last op: { opid: 2, active: 1, secs_running: 0, op: "query", ns: "example.$cmd", query: "{ query: { $eval: CodeWScope( function() { return null; } , {...", inLock: 1, client: "192.168.226.1:51998" }Sun Jul 12 00:56:49 Backtrace: |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 13/Jul/09 ] |
|
tested in jstests/eval9.js |