[SERVER-21041] db.eval fails mongodb process if called with object parameter Created: 21/Oct/15 Updated: 09/Dec/15 Resolved: 22/Oct/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 3.0.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Paul Klimashkin | Assignee: | Stennie Steneker (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
Hello! When I do in console on Gentoo (Linux 4.2.3-gentoo x86_64) it is ok
But when I'm trying to pass object as parameter, it crash mongodb process totally! Wo I need to restart it after it!
But on MacOS X El Capitan (Darwin 15.0.0 x86_64) it's ok in both cases. So I am in in bad situation: on developer's machine all works fine, but in production mongodb crashes every time application calling eval through driver (NodeJS 4.1.1, mongoose 4.1.11) |
| Comments |
| Comment by Paul Klimashkin [ 24/Oct/15 ] | |||||||||||||||||||||||||||
|
Thank Raamon, gcc 4.8 solved the problem! | |||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 22/Oct/15 ] | |||||||||||||||||||||||||||
|
klimashkin, if this is a custom build compiled with GCC5 then you should be aware that we don't support any GCC version older than 4.8 at the moment. We're working on adding support for newer compilers, but unfortunately GCC 5 is not on the list of supported compilers just yet. The server segfault is happening inside V8:
and this is most likely related to the combination of the custom build and the unsupported compiler. I'd recommend you either compile with GCC 4.8 (although this may not fix the issue) or use a stock build – I'm unable to reproduce the behavior you described with a stock 3.0.7, so I'm going to close this ticket. Cheers, | |||||||||||||||||||||||||||
| Comment by Paul Klimashkin [ 22/Oct/15 ] | |||||||||||||||||||||||||||
|
Hello Stephen!
| |||||||||||||||||||||||||||
| Comment by Stennie Steneker (Inactive) [ 22/Oct/15 ] | |||||||||||||||||||||||||||
|
Hi Paul, Can you please post the output of db.serverBuildInfo() from the mongo shell for your Gentoo environment? If you built from source, can you also include the output of gcc --version? Thanks, | |||||||||||||||||||||||||||
| Comment by Paul Klimashkin [ 22/Oct/15 ] | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
| Comment by Paul Klimashkin [ 21/Oct/15 ] | |||||||||||||||||||||||||||
|
I found a simpler way to crash mongo on gentoo from console:
| |||||||||||||||||||||||||||
| Comment by Paul Klimashkin [ 21/Oct/15 ] | |||||||||||||||||||||||||||
|
Mongodb 3.0.7 WiredTiger |