[SERVER-17488] mongodb-2.6.[678] client startup fail: segmentation fault Created: 06/Mar/15  Updated: 06/Mar/15  Resolved: 06/Mar/15

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: 2.6.6, 2.6.7, 2.6.8
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Ralf R Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

amd64
glibc-2.20-r2


Issue Links:
Duplicate
duplicates SERVER-16985 Segmentation fault in mongo, V8 Closed
Operating System: Linux
Steps To Reproduce:

1. emerge mongodb
2. mongod --config /etc/mongod.conf
3. start mongo

Participants:

 Description   

Hi,

I'm trying to run mongodb on my gentoo box.

If I try to run mongo without the server being started, I get a connection refused error and the client gracefully exits as everyone would expect.

If the server is running, I always get the following error message at the very beginning of the startup of mongo:

MongoDB shell version: 2.6.6
connecting to: 127.0.0.1/asd
2015-02-26T15:56:22.488+0100 mongo got signal 11 (Segmentation fault), stack trace:
2015-02-26T15:56:22.490+0100 0x7d1c99 0x5e4d09 0x7f3025a3eb00 0x9c1222 0xa31bd8 0xa31c14 0xa36fbe 0x9cf84b 0x9dac68 0x9db085 0x8787d0 0x99b4a8 0x937ebd 0x3ea764206362
mongo(_ZN5mongo15printStackTraceERSo+0x39) [0x7d1c99]
mongo(_Z12quitAbruptlyi+0x119) [0x5e4d09]
/lib64/libc.so.6(+0x33b00) [0x7f3025a3eb00]
mongo(_ZN2v88internal6String11WriteToFlatItEEvPS1_PT_ii+0x692) [0x9c1222]
mongo(_ZN2v88internal33GenericStringUtf16CharacterStream10FillBufferEjj+0x38) [0xa31bd8]
mongo(_ZN2v88internal28BufferedUtf16CharacterStream9ReadBlockEv+0x34) [0xa31c14]
mongo(_ZN2v88internal7Scanner10InitializeEPNS0_20Utf16CharacterStreamE+0x5e) [0xa36fbe]
mongo(_ZN2v88internal6Parser9ParseLazyEPNS0_20Utf16CharacterStreamEPNS0_9ZoneScopeE+0x3b) [0x9cf84b]
mongo(_ZN2v88internal6Parser9ParseLazyEv+0x158) [0x9dac68]
mongo(_ZN2v88internal9ParserApi5ParseEPNS0_15CompilationInfoEi+0x205) [0x9db085]
mongo(_ZN2v88internal8Compiler11CompileLazyEPNS0_15CompilationInfoE+0xf0) [0x8787d0]
mongo(_ZN2v88internal10JSFunction11CompileLazyENS0_6HandleIS1_EENS0_18ClearExceptionFlagE+0x1a8) [0x99b4a8]
mongo(_ZN2v88internal11CallIC_MissENS0_9ArgumentsEPNS0_7IsolateE+0x27d) [0x937ebd]
[0x3ea764206362]

I get the same error for every version that I tried, 2.6.6, 2.6.7, 2.6.8.

Anyone any suggestions?
I already asked asked on a Gentoo-ML but no one answered. According to the error messages I think it's not gentoo related issue.

If you need any further information do not hesitate to ask me.

Cheers
Ralf



 Comments   
Comment by Ralf R [ 06/Mar/15 ]

Ok, after further investigations I found out that SERVER-16985 is not directly related.

But nevertheless it gave me some hints how to fix my problem: playing around with the -march flag.

I changed my -march from corei7-avx to core2, recompiled mongo and now it works fine. But: my system has a i7-2720QM which supports avx, the corei7-avx is definitely the correct -march instruction set switch for this cpu.

So I still suppose this is a bug of mongo. But for my special case i was able to fix it.

Cheers

Comment by Ralf R [ 06/Mar/15 ]

Thank you. I tried to search for a similar bug but I didn't find I. I try to follow the instructions.

Comment by Eric Milkie [ 06/Mar/15 ]

See SERVER-16985

Generated at Thu Feb 08 03:44:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.