Red Hat Bugzilla – Bug 1027157
mongo segfaults with an older version of v8
Last modified: 2014-08-31 19:17:41 EDT
Description of problem:
Running "mongo" on the command line results in the following:
MongoDB shell version: 2.4.6
Wed Nov 6 17:10:23.726 mongo got signal 11 (Segmentation fault), stack trace:
Wed Nov 6 17:10:23.727 0x58ec66 0x469c6d 0x7f9206b79920 0x53fa69 0x7f920915cb71 0x7f91def34342
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run "mongo" in the shell
mongo segfaults (see above)
It doesn't segfault
This got fixed after upgrading v8 to the latest version in EPEL, so a version
requirement in the .spec file would fix the problem.
I.e. upgrading v8 to v8-22.214.171.124-2.el6.x86_64, and the segfault does not
Let me apologize for the delay. It's fixed now (see commit c7669db).
Build with the fix is mongodb-2.4.6-3.el6 (https://koji.fedoraproject.org/koji/buildinfo?buildID=488601).
I think the latest build is broken. This line in the spec file :
Should probably this instead :
Requires: v8 = 126.96.36.199
Even better would be to not be so specific about the version and use >= if any ABI compatible version above the current one is expected to work.
Thanks Matthias for checking the spec file, it should be fixed in build 2.4.6-4. As for the >= specification, I'm not sure how often is v8 released in EPEL, but in SCLs and Fedora it's often broken and therefore until I'm not assured about ABI stability, I'll stick with a fixed version specification. Suggestions and ideas are welcome though!
If it's any help, upstream does not like the idea of building against a non-bundled version of v8. So you may consider dropping the v8 dependency altogether.
FWIW, I just pushed an updated mongodb spec file on master restoring EL6 compatibility. I hope I won't have offended anyone by doing so, but I really felt like splitting the efforts between Fedora and EPEL was a shame, since the same spec file was still used for both until quite recently.
Would you mind having a look at the master branch's content? It's 2.4.9-2, and I've rebuilt it for my own internal EL6 repo to start testing soon and use in production very shortly.
The Fedora branch had a few bugfixes made, but was lacking others (this v8 version requirement, the multilib devel package requirement fix). Re-unifying makes the most sense to me.
Thank you Matthias for the changes. I like having spec files unified as well. Now I've rebuilt the package on my machine and it seems to be working.
Regarding the bundled v8, I'd rather avoid using the bundled one and add >= which is what I've done in http://pkgs.fedoraproject.org/cgit/mongodb.git/commit/?h=el6&id=1514678421e4a7f50b51e9af89859f89a7846d70 .
mongodb-2.4.6-5.el6 has been submitted as an update for Fedora EPEL 6.
mongodb-2.4.6-5.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.