[SERVER-19900] Server crashes with segmentation fault when used as backend for openstack ceilometer Created: 12/Aug/15 Updated: 29/Jan/16 Resolved: 24/Aug/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | 3.0.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alberto Murillo | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Operating System: | ALL |
| Steps To Reproduce: | 1. Installing OpenStack on an Ubuntu 14.04 vm (run the following commands as ubuntu user not root):
2. Create a ceilometer user on the mongodb 3.0.5 server )"; 3. Point ceilometer to a mongodb 3.0.5 instance 4. Restart ceilometer services on the openstack server 5. Make it crash |
| Participants: |
| Description |
|
Description: When using mongodb 3.0.5 as backend for ceilometer. it fails with a segmentation fault. Enviroment: OpenStack Installation on an Ubuntu 14.04 VM |
| Comments |
| Comment by Ramon Fernandez Marina [ 29/Jan/16 ] | ||||||||||||||||||||||||||||||||||
|
For the record, | ||||||||||||||||||||||||||||||||||
| Comment by Alberto Murillo [ 25/Aug/15 ] | ||||||||||||||||||||||||||||||||||
|
I am not able to use an older compiler since this is a GCC5 distribution but I tried with 3.1.7 Using -fno-tree-vectorize on v8 didn't solved the problem. | ||||||||||||||||||||||||||||||||||
| Comment by Sam Kleinman (Inactive) [ 24/Aug/15 ] | ||||||||||||||||||||||||||||||||||
|
I've asked some questions internally and the consensus is that you've likely run into an incompatibility between recent versions of GCC and the version of V8 that is embedded in MongoDB. There are a number of approaches:
I hope that this explains the issue you're seeing and that one of these solutions allows you to resolve your issue. Please let us know if there are any other questions we can help address. You may also address questions like this to our developer forum, mongodb-dev. I'm going to go ahead and lcose this issue for now, but do feel free to reopen if needed. | ||||||||||||||||||||||||||||||||||
| Comment by Alberto Murillo [ 18/Aug/15 ] | ||||||||||||||||||||||||||||||||||
|
I have tried again with the following options: And it still fails in the same way (see the traceback below.) Answering your questions: You can find more info about the project on its webpage: https://clearlinux.org/ 2) Can you reproduce this issue using the targeted build for your distro? 3) Can, you reproduce this using the vendored versions of the libraries? Omit the -use-system<library> 4) What is the expansion of %{?_smp_mflags}? 5) 4.When you reproduce this error, is the backtrace the same as the one you initially reported, with the crash in the JavaScript/V8 system?
| ||||||||||||||||||||||||||||||||||
| Comment by Sam Kleinman (Inactive) [ 17/Aug/15 ] | ||||||||||||||||||||||||||||||||||
|
Thanks for this information. I wanted to clarify a bit about your current situation:
Regards, | ||||||||||||||||||||||||||||||||||
| Comment by Alberto Murillo [ 15/Aug/15 ] | ||||||||||||||||||||||||||||||||||
|
Here is the full build log | ||||||||||||||||||||||||||||||||||
| Comment by Alberto Murillo [ 15/Aug/15 ] | ||||||||||||||||||||||||||||||||||
|
I just verified that the binaries for 3.0.5 provided in the following link work without issues. So this must be an issue with the building. I am building/installing with the following options
| ||||||||||||||||||||||||||||||||||
| Comment by Alberto Murillo [ 13/Aug/15 ] | ||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 13/Aug/15 ] | ||||||||||||||||||||||||||||||||||
|
Thanks albertom. Can you also post the output of ulimit -a? | ||||||||||||||||||||||||||||||||||
| Comment by Alberto Murillo [ 13/Aug/15 ] | ||||||||||||||||||||||||||||||||||
|
Its a plain arch Linux with mongodb 3.0.5 no selinux here. I will post config file and service file.
| ||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 12/Aug/15 ] | ||||||||||||||||||||||||||||||||||
|
The last part of the log (copied below for clarity) shows a segfault in V8. We've seen similar crashes when SELinux or grsecurity are enabled. Can you please share some more details about the configuration of this machine? Thanks,
| ||||||||||||||||||||||||||||||||||
| Comment by Alberto Murillo [ 12/Aug/15 ] | ||||||||||||||||||||||||||||||||||
|
This has been tested with mongodb 2.4 and 2.6.11 in Ubuntu 14.04 without issues. |