Open jraverdy-orange opened 6 years ago
Which branch of mongo-rocks are you using?
i don t checkout from any branch but directly used the tarball from r3.6.5 of mongorocks https://github.com/mongodb-partners/mongo-rocks/archive/r3.6.5.tar.gz
I now see that SERVER-33743 was backported to 3.6.5 and broke compilation for mongo-rocks. Please use 3.6.4 until this can be fixed. @igorcanadi this can probably be fixed by backporting something from the 4.0 branch here?
Compilation with r3.6.4 works fine
Yeah, this is a result from https://github.com/mongodb/mongo/commit/2ee6908f1c73dd50d6425e3462ccac2582deb2f3, but that diff hasn't been applied to MongoRocks 4.0 either, so a simple backport is not an option unfortunately.
On Wed, Jul 18, 2018 at 8:54 AM Jérémy RAVERDY notifications@github.com wrote:
Compilation with r3.6.4 works fine
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mongodb-partners/mongo-rocks/issues/146#issuecomment-405981480, or mute the thread https://github.com/notifications/unsubscribe-auth/ABClzwBUCccBNLWkgyuxW_wwUq65Syusks5uH1oYgaJpZM4VUaZQ .
is this issue resolved ?
Hi , I was able to Succesfuly complete 3.6.4 with rock version 5.14.2 , however, when i start the mongod with rocks as storage(WriteTiger is fine ) I getting Segmentation fault error, below root@OPS-02-EUW-MongoBuild1:/compile/mongo# ./mongod_5.14.2 --dbpath /tmp/r --storageEngine rocksdb 2019-01-02T13:37:08.363+0000 I STORAGE [main] Compression: snappy 2019-01-02T13:37:08.363+0000 I STORAGE [main] MaxWriteMBPerSec: 1024 2019-01-02T13:37:08.363+0000 I STORAGE [main] Crash safe counters: 0 2019-01-02T13:37:08.363+0000 I STORAGE [main] Counters: 1 2019-01-02T13:37:08.363+0000 I STORAGE [main] Use SingleDelete in index: 0 2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] MongoDB starting : pid=96723 port=27017 dbpath=/tmp/r 64-bit host=OPS-02-EUW-MongoBuild1 2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] db version v3.6.4 2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] git version: 5e7793fea795097151c0616275e3d3d72e547e7a 2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] allocator: jemalloc 2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] modules: rocks 2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] build environment: 2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] distarch: x86_64 2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] target_arch: x86_64 2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] options: { storage: { dbPath: "/tmp/r", engine: "rocksdb" } } 2019-01-02T13:37:08.376+0000 F - [initandlisten] Invalid access at address: 0x55e527be9b08 2019-01-02T13:37:08.421+0000 F - [initandlisten] Got signal: 11 (Segmentation fault).
0x55e5278952c2 0x55e5278946b9 0x55e527894c97 0x7f5dd9808330 0x55e526097076 0x55e5262a91df 0x55e5262ab133 0x55e5262791dd 0x55e5262e1cbb 0x55e525ee8975 0x55e526092e35 0x55e525f55389 0x7f5dd9450f45 0x55e526091475 ----- BEGIN BACKTRACE ----- {"backtrace":[{"b":"55E525567000","o":"232E2C2","s":"_ZN5mongo15printStackTraceERSo"},{"b":"55E525567000","o":"232D6B9"},{"b":"55E525567000","o":"232DC97"},{"b":"7F5DD97F8000","o":"10330"},{"b":"55E525567000","o":"B30076","s":"_ZNSt16_Sp_counted_baseILN9gnu_cxx12_Lock_policyE2EE10_M_releaseEv"},{"b":"55E525567000","o":"D421DF","s":"_ZNK5mongo11RocksEngine8_optionsEv"},{"b":"55E525567000","o":"D44133","s":"_ZN5mongo11RocksEngineC2ERKSsbib"},{"b":"55E525567000","o":"D121DD"},{"b":"55E525567000","o":"D7ACBB","s":"_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv"},{"b":"55E525567000","o":"981975"},{"b":"55E525567000","o":"B2BE35","s":"ZN5mongo11mongoDbMainEiPPcS1"},{"b":"55E525567000","o":"9EE389","s":"main"},{"b":"7F5DD942F000","o":"21F45","s":"__libc_start_main"},{"b":"55E525567000","o":"B2A475"}],"processInfo":{ "mongodbVersion" : "3.6.4", "gitVersion" : "5e7793fea795097151c0616275e3d3d72e547e7a", "compiledModules" : [ "rocks" ], "uname" : { "sysname" : "Linux", "release" : "4.4.0-97-generic", "version" : "#120~14.04.1-Ubuntu SMP Wed Sep 20 15:53:13 UTC 2017", "machine" : "x86_64" }, "somap" : [ { "b" : "55E525567000", "elfType" : 3, "buildId" : "233950F62EF8331963FEF56AC6C20E9D740D52A7" }, { "b" : "7FFE6FBF6000", "elfType" : 3, "buildId" : "031F7BA6B1BBA04496497C5611C43E0EBE4CE00D" }, { "b" : "7F5DDA343000", "path" : "/lib/x86_64-linux-gnu/libbz2.so.1.0", "elfType" : 3, "buildId" : "E1031DDBFFE20367E874B7093EEC0C8D9F3B43F6" }, { "b" : "7F5DDA128000", "path" : "/lib/x86_64-linux-gnu/libresolv.so.2", "elfType" : 3, "buildId" : "AD304AFCE6847F7A4D66D22853E87CCBF5A66966" }, { "b" : "7F5DD9F20000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "4F930712D3609C93E380E5BE5DF73E7AD273531C" }, { "b" : "7F5DD9D1C000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "034D6A4EE9DCAB4A34ABD644345CBBB42DC63088" }, { "b" : "7F5DD9A16000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "300C7884CDEB5667BEA2357D2B8E7A76397562D6" }, { "b" : "7F5DD97F8000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "F64B8AD471FBA1B7A3A64EFB01551E694975E1F7" }, { "b" : "7F5DD942F000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "D9A10B8EF90300628DD0A3A535106967714D7328" }, { "b" : "7F5DDA553000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "2CA513EDC89C7BC06EC183D1A3A03CC0F606319C" } ] }} mongod_5.14.2(_ZN5mongo15printStackTraceERSo+0x32) [0x55e5278952c2] mongod_5.14.2(+0x232D6B9) [0x55e5278946b9] mongod_5.14.2(+0x232DC97) [0x55e527894c97] libpthread.so.0(+0x10330) [0x7f5dd9808330] mongod_5.14.2(_ZNSt16_Sp_counted_baseILN9gnu_cxx12_Lock_policyE2EE10_M_releaseEv+0x16) [0x55e526097076] mongod_5.14.2(_ZNK5mongo11RocksEngine8_optionsEv+0x27F) [0x55e5262a91df] mongod_5.14.2(_ZN5mongo11RocksEngineC2ERKSsbib+0x7F3) [0x55e5262ab133] mongod_5.14.2(+0xD121DD) [0x55e5262791dd] mongod_5.14.2(_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv+0x62B) [0x55e5262e1cbb] mongod_5.14.2(+0x981975) [0x55e525ee8975] mongod_5.14.2(ZN5mongo11mongoDbMainEiPPcS1+0xC55) [0x55e526092e35] mongod_5.14.2(main+0x9) [0x55e525f55389] libc.so.6(__libc_start_main+0xF5) [0x7f5dd9450f45] mongod_5.14.2(+0xB2A475) [0x55e526091475] ----- END BACKTRACE -----
I use this command to build the rocksdb part CFLAGS="-march=core-avx-i -fPIC" JEMALLOC=1 PORTABLE=1 USE_RTTI=1 make V=1 -j 16 static_lib
Output of the core file: rogram terminated with signal SIGSEGV, Segmentation fault.
147 if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1)
[Current thread is 1 (Thread 0x7f586a7edcc0 (LWP 69178))]
MongoDB GDB commands loaded, run 'mongodb-help' for list of commands
Warning: Could not load bson library for Python '3.4.3 (default, Nov 12 2018, 22:32:28)
[GCC 4.8.4]'.
--Type
at /usr/include/c++/5/bits/shared_ptr_base.h:925
at src/mongo/db/modules/rocks/src/rocks_engine.cpp:205
at src/mongo/db/modules/rocks/src/rocks_init.cpp:63
(gdb)
2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] target_arch: x86_64 2019-01-02T13:37:08.376+0000 I CONTROL [initandlisten] options: { storage: { dbPath: "/tmp/r", engine: "rocksdb" } } 2019-01-02T13:37:08.376+0000 F - [initandlisten] Invalid access at address: 0x55e527be9b08
+1, but my mongodb is 3.4.20 mongo-rocks is 3.4
I ought to think mongoRocks3.6 is a skipped version. I guess Perhaps you want to use changeStream? is it possible that you try mongoRocks 4.0?
Hi,
I encounter the following error when trying to compile mongo 3.6.5 with rocksdb 5.14.2 on ubuntu 14.04:
I used the following command to proceed:
note that using the same environment/command with mongo 3.4.X, i never had any problem