[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: Text File build.log     Text File mongod.log    
Operating System: ALL
Steps To Reproduce:

1. Installing OpenStack on an Ubuntu 14.04 vm (run the following commands as ubuntu user not root):
sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get -y install git-core ntp openssh-server cpu-checker
git clone http://git.openstack.org/openstack-dev/devstack
pushd devstack
cat <<EOF > localrc
GIT_BASE=${GIT_BASE:-https://git.openstack.org}
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_TOKEN=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
PUBLIC_INTERFACE=eth0

  1. Enable Ceilometer
    enable_service ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector
    enable_service ceilometer-alarm-evaluator,ceilometer-alarm-notifier
    enable_service ceilometer-api
    CEILOMETER_BACKEND=${CEILOMETER_BACKEND:-mongodb}
    EOF
    ./stack.sh
  2. Grab some coffee, It will take ~30 mins

2. Create a ceilometer user on the mongodb 3.0.5 server
db = db.getSiblingDB("ceilometer");
db.createUser(

{user: "ceilometer", pwd: "password", roles: ["readWrite", "dbAdmin"]}

)";

3. Point ceilometer to a mongodb 3.0.5 instance
Edit /etc/ceilometer/ceilometer.conf file with the following setting
[database]
connection = mongodb://ceilometer:password@<IP_OF_MONGODB_SERVER>:27017/ceilometer

4. Restart ceilometer services on the openstack server
screen -d -R stack
Press CTRL+" to get a list of services
For each ceilometer service, press ctrl+c to stop it and then up arrow to re-run the last command

5. Make it crash
Point your browser to the http://openstackserver/horizon
Login with admin/password
Click on Admin->System->Resource Usage

Participants:

 Description   

Description: When using mongodb 3.0.5 as backend for ceilometer. it fails with a segmentation fault.
See the attached file with the logs including debug info.

Enviroment: OpenStack Installation on an Ubuntu 14.04 VM
MongoDB 3.0.5 on an ArchLinux VM



 Comments   
Comment by Ramon Fernandez Marina [ 29/Jan/16 ]

For the record, SERVER-22334 shows how a missing "var" keyword in the JS code could trigger this issue. MongoDB 3.2 uses SpiderMonkey as the JavaScript engine an it handles this case better than V8.

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
and --js-engine=mozjs which does work good so far.

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:

  1. You could attempt to compile with -fno-tree-vectorize: many V8 issues have to do with unaligned accesses in auto-vectorized code.
  2. In 3.2, MongoDB will replace V8 with a SpiderMonkey JavaScript environment, which may improve compatibility with newer compilers. You can test this with the 3.1.7 development release on your system.
  3. Use an older compiler, we produce the official binaries with GCC 4.8.2, at the moment, to build MongoDB.

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:
scons -j8 all --ssl --disable-warnings-as-errors

And it still fails in the same way (see the traceback below.)

Answering your questions:
1) Why are you building MongoDB from source?
I am working on the Clear Linux Project which is intended to be an stateless os.
To achieve that, we make patches to the services to not fail if there is no config
file in /etc. for that, and other optimizations we need to build from sources.

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?
I tried uncompressing mongodb-linux-x86_64-3.0.5.tgz into a clearlinux installation
and it works well. However, as stated above, we need to build from sources.

3) Can, you reproduce this using the vendored versions of the libraries? Omit the -use-system<library>
I tried again with: scons -j8 all --ssl --disable-warnings-as-errors
and it failed again in the same way.

4) What is the expansion of %{?_smp_mflags}?
-j8

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?
yes

    2015-08-18T15:52:09.521+0000 D QUERY    [conn2] [QLOG] Planner: outputted 1 indexed solutions.
2015-08-18T15:52:09.521+0000 D QUERY    [conn2] Only one plan is available; it will be run but will not be cached. query: { timestamp: { $lte: new Date(1439913129418), $gte: new Date(1439826729418) }, counter_name: "image.size", project_id: "0cae733776234f0cb9ffda2f2aed44f4" } sort: {} projection: {} skip: 0 limit: 0, planSummary: IXSCAN { timestamp: -1 }
2015-08-18T15:52:09.522+0000 D -        [conn2] User Assertion: 10011:no collection name
2015-08-18T15:52:09.522+0000 D QUERY    [conn2] V8Scope 0x6c92300 unregistered for op 62
2015-08-18T15:52:09.522+0000 F -        [conn2] Invalid access at address: 0
2015-08-18T15:52:09.527+0000 F -        [conn2] Got signal: 11 (Segmentation fault).
 
 0x1173f3b 0x11736b3 0x1173ad7 0x7f74412c3cc0 0x128d5d6 0x10cd21a 0x10c4a58 0x10c4af9 0x10b6fca 0x10bdedc 0x10be3c9 0x9eaad4 0x9ed3ce 0xa69fac 0xa6b03a 0xa6bf55 0xcb4532 0xb90c25 0x804788 0x111b966 0x7f74412ba454 0x7f74406a3c6d
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"400000","o":"D73F3B"},{"b":"400000","o":"D736B3"},{"b":"400000","o":"D73AD7"},{"b":"7F74412B3000","o":"10CC0"},{"b":"400000","o":"E8D5D6"},{"b":"400000","o":"CCD21A"},{"b":"400000","o":"CC4A58"},{"b":"400000","o":"CC4AF9"},{"b":"400000","o":"CB6FCA"},{"b":"400000","o":"CBDEDC"},{"b":"400000","o":"CBE3C9"},{"b":"400000","o":"5EAAD4"},{"b":"400000","o":"5ED3CE"},{"b":"400000","o":"669FAC"},{"b":"400000","o":"66B03A"},{"b":"400000","o":"66BF55"},{"b":"400000","o":"8B4532"},{"b":"400000","o":"790C25"},{"b":"400000","o":"404788"},{"b":"400000","o":"D1B966"},{"b":"7F74412B3000","o":"7454"},{"b":"7F74405BB000","o":"E8C6D"}],"processInfo":{ "mongodbVersion" : "3.0.5", "gitVersion" : "nogitversion", "uname" : { "sysname" : "Linux", "release" : "4.1.1-94", "version" : "#1 SMP Thu Jul 16 13:53:21 CDT 2015", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "3B202B44EA6E05A5E05BCFCDB587BE67A9B876C0" }, { "b" : "7FFD19723000", "path" : "linux-vdso.so.1", "elfType" : 3, "buildId" : "9C8C19FBF41ECE0066455D23DDBB6169E2155545" }, { "b" : "7F74412B3000", "path" : "/usr/lib64/libpthread.so.0", "elfType" : 3, "buildId" : "9C86701894B7D7EC115B4BA6DB14D982795B48B6" }, { "b" : "7F7441047000", "path" : "/usr/lib64/libssl.so.1.0.0", "elfType" : 3, "buildId" : "6822CBA953445EF2265D8BC038010C1D6C541876" }, { "b" : "7F7440BFB000", "path" : "/usr/lib64/libcrypto.so.1.0.0", "elfType" : 3, "buildId" : "1D33DF99705AEF76DEAF3E463B67CB1F31C98BB6" }, { "b" : "7F7440BF2000", "path" : "/usr/lib64/librt.so.1", "elfType" : 3, "buildId" : "3CFA8DF484BB1E9D2D8E6971D2E79592C8AD9A9E" }, { "b" : "7F7440BED000", "path" : "/usr/lib64/libdl.so.2", "elfType" : 3, "buildId" : "20AAA209385C17557DF77D54735AD117A49A13EC" }, { "b" : "7F7440872000", "path" : "/usr/lib64/libstdc++.so.6", "elfType" : 3, "buildId" : "B18B3AB24CAF84C16F4685D5FAF01B3789CC1D86" }, { "b" : "7F7440778000", "path" : "/usr/lib64/libm.so.6", "elfType" : 3, "buildId" : "5137DD0C15D528EDF315E93296E6D965EFCAC6D4" }, { "b" : "7F7440760000", "path" : "/usr/lib64/libgcc_s.so.1", "elfType" : 3, "buildId" : "50EBC20F59BBC07ADA07EEF10779056DB5225FF8" }, { "b" : "7F74405BB000", "path" : "/usr/lib64/libc.so.6", "elfType" : 3, "buildId" : "50EA7863FF2C1D68B394299D6E830F8833E5F915" }, { "b" : "7F74412D3000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "BA64CAA0ABC0E441C169B77604BC2D05BDC20A6D" } ] }}
 mongod(_ZN5mongo15printStackTraceERSo+0x2B) [0x1173f3b]
 mongod(+0xD736B3) [0x11736b3]
 mongod(+0xD73AD7) [0x1173ad7]
 libpthread.so.0(+0x10CC0) [0x7f74412c3cc0]
 mongod(_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x16) [0x128d5d6]
 mongod(_ZN5boost6detail17sp_counted_impl_pIN5mongo10BSONHolderEE7disposeEv+0x3A) [0x10cd21a]
 mongod(_ZN5mongo7V8ScopeD2Ev+0x3E8) [0x10c4a58]
 mongod(_ZN5mongo7V8ScopeD0Ev+0x9) [0x10c4af9]
 mongod(+0xCB6FCA) [0x10b6fca]
 mongod(_ZN5mongo11PooledScopeD1Ev+0x95C) [0x10bdedc]
 mongod(_ZN5mongo11PooledScopeD0Ev+0x9) [0x10be3c9]
 mongod(_ZN5mongo2mr5StateD1Ev+0x104) [0x9eaad4]
 mongod(_ZN5mongo2mr16MapReduceCommand3runEPNS_16OperationContextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_7BSONObjEiRS9_RNS_14BSONObjBuilderEb+0x30E) [0x9ed3ce]
 mongod(_ZN5mongo12_execCommandEPNS_16OperationContextEPNS_7CommandERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS_7BSONObjEiRS9_RNS_14BSONObjBuilderEb+0x2C) [0xa69fac]
 mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_iPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0xDFA) [0xa6b03a]
 mongod(_ZN5mongo12_runCommandsEPNS_16OperationContextEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x5D5) [0xa6bf55]
 mongod(_ZN5mongo8runQueryB5cxx11EPNS_16OperationContextERNS_7MessageERNS_12QueryMessageERKNS_15NamespaceStringERNS_5CurOpES3_+0xAC2) [0xcb4532]
 mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x9F5) [0xb90c25]
 mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xC8) [0x804788]
 mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x346) [0x111b966]
 libpthread.so.0(+0x7454) [0x7f74412ba454]
 libc.so.6(clone+0x6D) [0x7f74406a3c6d]
-----  END BACKTRACE  -----
    

Comment by Sam Kleinman (Inactive) [ 17/Aug/15 ]

Thanks for this information. I wanted to clarify a bit about your current situation:

  1. Why are you building MongoDB from source? We provide a number of targeted platform builds that include support for SSL, and should obviate most of the need to build MongoDB from source. Can you reproduce this issue using the targeted build for your distro? (i.e. installing the packages from the official repository?)
  2. Just to reduce the number of variables between our builds and your set up can, you reproduce this using the vendored versions of the libraries? Omit the -use-system<library>
  3. What is the expansion of %{?_smp_mflags}?
  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?

Regards,
sam

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.
https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.5.tgz

So this must be an issue with the building.

I am building/installing with the following options

%build
scons %{?_smp_mflags}  all \
--disable-warnings-as-errors \
--prefix=%{buildroot}%{_prefix} \
--variant-dir=build \
--ssl \
--nostrip \
--use-system-pcre \
--use-system-boost \
--use-system-snappy \
--use-system-zlib \
--use-system-yaml \
--c++11
 
%install
scons install %{?_smp_mflags} --disable-warnings-as-errors --prefix=%{buildroot}%{_prefix} --variant-dir=build --ssl --nostrip --use-system-pcre --use-system-boost --use-system-snappy --use-system-zlib --use-system-yaml --c++11

Comment by Alberto Murillo [ 13/Aug/15 ]

# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 20
file size               (blocks, -f) unlimited
pending signals                 (-i) 63904
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 63904
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

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.

# cat /etc/mongodb.conf
# See http://www.mongodb.org/display/DOCS/File+Based+Configuration for format details
# Run mongod --help to see a list of options
 
bind_ip = 0.0.0.0
quiet = true
dbpath = /var/lib/mongodb
logpath = /var/log/mongodb/mongod.log
logappend = true

# cat /usr/lib/systemd/system/mongodb.service
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
 
[Service]
User=mongodb
ExecStart=/usr/bin/mongod -vvvvv --config /etc/mongodb.conf
 
[Install]
WantedBy=multi-user.target

# uname -a
Linux clr-cloud00 4.1.2-2-ARCH #1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015 x86_64 GNU/Linux

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,
Ramón.

2015-08-12T13:32:26.983-0500 D QUERY    [conn9] [QLOG] Planner: outputted 1 indexed solutions.
2015-08-12T13:32:26.983-0500 D QUERY    [conn9] Only one plan is available; it will be run but will not be cached. query: { timestamp: { $lte: new Date(1439404345566), $gte: new Date(1439317945566) }, counter_name: "image.size", project_id: "f68387d3fc02471caea18a577a19eaee" } sort: {} projection: {} skip: 0 limit: 0, planSummary: IXSCAN { timestamp: -1 }
2015-08-12T13:32:26.983-0500 D -        [conn9] User Assertion: 10011:no collection name
2015-08-12T13:32:26.983-0500 D QUERY    [conn9] V8Scope 0x3376000 unregistered for op 157
2015-08-12T13:32:26.984-0500 F -        [conn9] Invalid access at address: 0
2015-08-12T13:32:26.995-0500 F -        [conn9] Got signal: 11 (Segmentation fault).
 
 0x114e90b 0x114e0c3 0x114e4a7 0x7fdda100bd60 0x11e9e46 0x10a090d 0x109309a 0x10982cb 0x1098339 0x108aa4a 0x1091d7a 0x1092309 0x9c1624 0x9c4ef7 0xa4332c 0xa444e2 0xa45399 0xc8d8c7 0xb6a2d9 0x7d1779 0x10f4175 0x7fdda10024a4 0x7fdd9f9ad12d
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"400000","o":"D4E90B"},{"b":"400000","o":"D4E0C3"},{"b":"400000","o":"D4E4A7"},{"b":"7FDDA0FFB000","o":"10D60"},{"b":"400000","o":"DE9E46"},{"b":"400000","o":"CA090D"},{"b":"400000","o":"C9309A"},{"b":"400000","o":"C982CB"},{"b":"400000","o":"C98339"},{"b":"400000","o":"C8AA4A"},{"b":"400000","o":"C91D7A"},{"b":"400000","o":"C92309"},{"b":"400000","o":"5C1624"},{"b":"400000","o":"5C4EF7"},{"b":"400000","o":"64332C"},{"b":"400000","o":"6444E2"},{"b":"400000","o":"645399"},{"b":"400000","o":"88D8C7"},{"b":"400000","o":"76A2D9"},{"b":"400000","o":"3D1779"},{"b":"400000","o":"CF4175"},{"b":"7FDDA0FFB000","o":"74A4"},{"b":"7FDD9F8C4000","o":"E912D"}],"processInfo":{ "mongodbVersion" : "3.0.5", "gitVersion" : "nogitversion", "uname" : { "sysname" : "Linux", "release" : "4.1.2-2-ARCH", "version" : "#1 SMP PREEMPT Wed Jul 15 08:30:32 UTC 2015", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "E0C9C2A6CD0CB39F8BF061DEF5F4CFD4EF18598E" }, { "b" : "7FFF2F5BC000", "path" : "linux-vdso.so.1", "elfType" : 3, "buildId" : "C4C418F005AE17DF1C6989FC6FAFC421911CF312" }, { "b" : "7FDDA2170000", "path" : "/usr/lib/libsnappy.so.1", "elfType" : 3, "buildId" : "9D4BD954C9638C5AF8F33C9E757D5E37C9FA8ED2" }, { "b" : "7FDDA1EF2000", "path" : "/usr/lib/libboost_program_options.so.1.58.0", "elfType" : 3, "buildId" : "7ED7CC3A2967448967E729DD716DE1E8DC1082A5" }, { "b" : "7FDDA1CDA000", "path" : "/usr/lib/libboost_filesystem.so.1.58.0", "elfType" : 3, "buildId" : "69307A2E931F589C000ABB2535CB443E2E6A7FC3" }, { "b" : "7FDDA1AB3000", "path" : "/usr/lib/libboost_thread.so.1.58.0", "elfType" : 3, "buildId" : "56D33D6B2101D6AFB786566C7AA105F443DDDEA0" }, { "b" : "7FDDA18AF000", "path" : "/usr/lib/libboost_system.so.1.58.0", "elfType" : 3, "buildId" : "0AC74F672BD854B0757E24D168DAB10747E1EEB3" }, { "b" : "7FDDA163F000", "path" : "/usr/lib/libpcre.so.1", "elfType" : 3, "buildId" : "A6006C4B8CB56618E21731F3437C6E233497A281" }, { "b" : "7FDDA1435000", "path" : "/usr/lib/libpcrecpp.so.0", "elfType" : 3, "buildId" : "D4D45AA15DD8E12F9B82072576B74DE99F5681BA" }, { "b" : "7FDDA1218000", "path" : "/usr/lib/libsasl2.so.3", "elfType" : 3, "buildId" : "77D3CE2669A200A63E578D8CF5381BB0162EC0B6" }, { "b" : "7FDDA0FFB000", "path" : "/usr/lib/libpthread.so.0", "elfType" : 3, "buildId" : "284BF58119A6255AFBA4568940CE655ECDFF1881" }, { "b" : "7FDDA0D81000", "path" : "/usr/lib/libssl.so.1.0.0", "elfType" : 3, "buildId" : "4E6FE13AD63FE3F0F3279F9BE077586E2BADF443" }, { "b" : "7FDDA090A000", "path" : "/usr/lib/libcrypto.so.1.0.0", "elfType" : 3, "buildId" : "E72E20F8FD3FB8B2C3EC7ADB5956E99D16AF15A4" }, { "b" : "7FDDA0702000", "path" : "/usr/lib/librt.so.1", "elfType" : 3, "buildId" : "6C39F2195A3E5D3A6A1FAEF570D0B83AF2184E3D" }, { "b" : "7FDDA04FE000", "path" : "/usr/lib/libdl.so.2", "elfType" : 3, "buildId" : "4C55749EE719F7CE38F5078CE3197091D24EFEDE" }, { "b" : "7FDDA017C000", "path" : "/usr/lib/libstdc++.so.6", "elfType" : 3, "buildId" : "6C6DEA88072C530D0FC9F347CF115B722C8BE8BF" }, { "b" : "7FDD9FE7E000", "path" : "/usr/lib/libm.so.6", "elfType" : 3, "buildId" : "1C20A8053268B03D81D85235D26B14F4D24DBC40" }, { "b" : "7FDD9FC68000", "path" : "/usr/lib/libgcc_s.so.1", "elfType" : 3, "buildId" : "F4AD36B00DF033915EEEB0CD89B9C5F66AF864B3" }, { "b" : "7FDD9F8C4000", "path" : "/usr/lib/libc.so.6", "elfType" : 3, "buildId" : "18C9FD18D79DCE6408C752DC974B0B895286F861" }, { "b" : "7FDDA2376000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "1E92C999146627ACBCE03FAD01B4E344BB2D333A" }, { "b" : "7FDD9F6AD000", "path" : "/usr/lib/libresolv.so.2", "elfType" : 3, "buildId" : "544EDFD9674594504CC408B41C1AAC2F3CF9ED63" }, { "b" : "7FDD9F497000", "path" : "/usr/lib/libz.so.1", "elfType" : 3, "buildId" : "82A1A5B6D7F272E064155BB64576230AEFAFA7B8" } ] }}
 mongod(_ZN5mongo15printStackTraceERSo+0x2B) [0x114e90b]
 mongod(+0xD4E0C3) [0x114e0c3]
 mongod(+0xD4E4A7) [0x114e4a7]
 libpthread.so.0(+0x10D60) [0x7fdda100bd60]
 mongod(_ZN2v82V837AdjustAmountOfExternalAllocatedMemoryEl+0x16) [0x11e9e46]
 mongod(_ZN5boost6detail17sp_counted_impl_pIN5mongo10BSONHolderEE7disposeEv+0x3D) [0x10a090d]
 mongod(+0xC9309A) [0x109309a]
 mongod(_ZN5mongo7V8ScopeD1Ev+0x34B) [0x10982cb]
 mongod(_ZN5mongo7V8ScopeD0Ev+0x9) [0x1098339]
 mongod(+0xC8AA4A) [0x108aa4a]
 mongod(_ZN5mongo11PooledScopeD1Ev+0x81A) [0x1091d7a]
 mongod(_ZN5mongo11PooledScopeD0Ev+0x9) [0x1092309]
 mongod(_ZN5mongo2mr5StateD1Ev+0x104) [0x9c1624]
 mongod(_ZN5mongo2mr16MapReduceCommand3runEPNS_16OperationContextERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x10F7) [0x9c4ef7]
 mongod(_ZN5mongo12_execCommandEPNS_16OperationContextEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x2C) [0xa4332c]
 mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_iPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0xF22) [0xa444e2]
 mongod(_ZN5mongo12_runCommandsEPNS_16OperationContextEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x529) [0xa45399]
 mongod(_ZN5mongo8runQueryEPNS_16OperationContextERNS_7MessageERNS_12QueryMessageERKNS_15NamespaceStringERNS_5CurOpES3_+0x677) [0xc8d8c7]
 mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xA69) [0xb6a2d9]
 mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xD9) [0x7d1779]
 mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x325) [0x10f4175]
 libpthread.so.0(+0x74A4) [0x7fdda10024a4]
 libc.so.6(clone+0x6D) [0x7fdd9f9ad12d]
-----  END BACKTRACE  -----

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.

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