[SERVER-25653] Segfault in calculateConfigDiff Created: 17/Aug/16  Updated: 06/Dec/22  Resolved: 27/Oct/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.2.8
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kevin Pulo Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Sharding
Operating System: ALL
Sprint: Sharding 2016-09-19, Platforms 2016-10-31
Participants:

 Description   

2016-08-12T02:11:01.244-0700 I SHARDING [conn168854] received splitChunk request: { splitChunk: "...", keyPattern: { u: 1.0 }, min: { ... }, max: { ... }, from: "...", splitKeys: [ { ... }, { ... } ], configdb: "config1....:27019,config2....:27019,config3....:27019", shardVersion: [ Timestamp 21365000|3203, ObjectId('...') ], epoch: ObjectId('...') }
2016-08-12T02:11:01.597-0700 I SHARDING [conn168854] distributed lock '.../...:27017:1470034342:-466970166' acquired for 'splitting chunk [{ ... }, { ... }) in ...', ts : ...
2016-08-12T02:11:01.597-0700 I SHARDING [conn168854] remotely refreshing metadata for ... based on current shard version 21365|3172||..., current metadata version is 21365|3246||...
2016-08-12T02:11:01.606-0700 F - [conn168854] Invalid access at address: 0x1b8250f
2016-08-12T02:11:01.629-0700 F - [conn168854] Got signal: 11 (Segmentation fault).
 
 0x1306de2 0x1305d09 0x1306088 0x7f0b4242dcb0 0x11a0299 0xf4313a 0xf456f7 0xf6749e 0xf69824 0x11e8c30 0xb6eef3 0xb6fd84 0xac6360 0xc893c5 0x94f07c 0x12b13c5 0x7f0b42425e9a 0x7f0b4215336d
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"400000","o":"F06DE2","s":"_ZN5mongo15printStackTraceERSo"},{"b":"400000","o":"F05D09"},{"b":"400000","o":"F06088"},{"b":"7F0B4241E000","o":"FCB0"},{"b":"400000","o":"DA0299","s":"_ZN5mongo17ConfigDiffTrackerINS_7BSONObjEE19calculateConfigDiffEPNS_16OperationContextERKSt6vectorINS_9ChunkTypeESaIS6_EE"},{"b":"400000","o":"B4313A","s":"_ZNK5mongo14MetadataLoader10initChunksEPNS_16OperationContextEPNS_14CatalogManagerERKSsS6_PKNS_18CollectionMetadataEPS7_"},{"b":"400000","o":"B456F7","s":"_ZNK5mongo14MetadataLoader22makeCollectionMetadataEPNS_16OperationContextEPNS_14CatalogManagerERKSsS6_PKNS_18CollectionMetadataEPS7_"},{"b":"400000","o":"B6749E","s":"_ZN5mongo13ShardingState16_refreshMetadataEPNS_16OperationContextERKSsRKNS_12ChunkVersionEbPS5_"},{"b":"400000","o":"B69824","s":"_ZN5mongo13ShardingState18refreshMetadataNowEPNS_16OperationContextERKSsPNS_12ChunkVersionE"},{"b":"400000","o":"DE8C30","s":"_ZN5mongo17SplitChunkCommand3runEPNS_16OperationContextERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderE"},{"b":"400000","o":"76EEF3","s":"_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE"},{"b":"400000","o":"76FD84","s":"_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE"},{"b":"400000","o":"6C6360","s":"_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE"},{"b":"400000","o":"8893C5","s":"_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE"},{"b":"400000","o":"54F07C","s":"_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE"},{"b":"400000","o":"EB13C5","s":"_ZN5mongo17PortMessageServer17handleIncomingMsgEPv"},{"b":"7F0B4241E000","o":"7E9A"},{"b":"7F0B42060000","o":"F336D","s":"clone"}],"processInfo":{ "mongodbVersion" : "3.2.8", "gitVersion" : "ed70e33130c977bda0024c125b56d159573dbaf0", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "3.13.0-83-generic", "version" : "#127~precise1-Ubuntu SMP Fri Mar 11 12:53:08 UTC 2016", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "997CDE1E6E1AACE16CA79F0B37B366A67D847816" }, { "b" : "7FFFB98AF000", "elfType" : 3, "buildId" : "E9A7275DC9D5BF9E5E12218D070A784061BA2448" }, { "b" : "7F0B43335000", "path" : "/lib/x86_64-linux-gnu/libssl.so.1.0.0", "elfType" : 3, "buildId" : "05BB9627FE4CCFC087FC0A1E064098BAAAF0ABE2" }, { "b" : "7F0B42F59000", "path" : "/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", "elfType" : 3, "buildId" : "88FFD2D95DF12BF9CA931AF6E50F42D83A98C3FE" }, { "b" : "7F0B42D51000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "8C19981216B96C14A1C82A4C884D1FA7FECB7979" }, { "b" : "7F0B42B4D000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "68048F961CC6B636BC27B40DE0DD8B8632B10180" }, { "b" : "7F0B42851000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "97900BE41183B1AB4E6322A8FE08D68315FED60A" }, { "b" : "7F0B4263B000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "ECF322A96E26633C5D10F18215170DD4395AF82C" }, { "b" : "7F0B4241E000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "9E17F98B86F7723CA1DC42235AEAB33B86FCB89D" }, { "b" : "7F0B42060000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "FC161CFC250D850EB08A7B76BAD5D2022AAEBB10" }, { "b" : "7F0B43593000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "B60D4C2FCB331CEC2764B936F83C0622676CF9ED" }, { "b" : "7F0B41E49000", "path" : "/lib/x86_64-linux-gnu/libz.so.1", "elfType" : 3, "buildId" : "F695ECFCF3918D5D34989398A14B7ECDD9F46CD0" } ] }}
 mongod(_ZN5mongo15printStackTraceERSo+0x32) [0x1306de2]
 mongod(+0xF05D09) [0x1305d09]
 mongod(+0xF06088) [0x1306088]
 libpthread.so.0(+0xFCB0) [0x7f0b4242dcb0]
 mongod(_ZN5mongo17ConfigDiffTrackerINS_7BSONObjEE19calculateConfigDiffEPNS_16OperationContextERKSt6vectorINS_9ChunkTypeESaIS6_EE+0x3B9) [0x11a0299]
 mongod(_ZNK5mongo14MetadataLoader10initChunksEPNS_16OperationContextEPNS_14CatalogManagerERKSsS6_PKNS_18CollectionMetadataEPS7_+0xCAA) [0xf4313a]
 mongod(_ZNK5mongo14MetadataLoader22makeCollectionMetadataEPNS_16OperationContextEPNS_14CatalogManagerERKSsS6_PKNS_18CollectionMetadataEPS7_+0xC7) [0xf456f7]
 mongod(_ZN5mongo13ShardingState16_refreshMetadataEPNS_16OperationContextERKSsRKNS_12ChunkVersionEbPS5_+0x68E) [0xf6749e]
 mongod(_ZN5mongo13ShardingState18refreshMetadataNowEPNS_16OperationContextERKSsPNS_12ChunkVersionE+0x54) [0xf69824]
 mongod(_ZN5mongo17SplitChunkCommand3runEPNS_16OperationContextERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderE+0xA80) [0x11e8c30]
 mongod(_ZN5mongo7Command3runEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS3_21ReplyBuilderInterfaceE+0x473) [0xb6eef3]
 mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_RKNS_3rpc16RequestInterfaceEPNS4_21ReplyBuilderInterfaceE+0x404) [0xb6fd84]
 mongod(_ZN5mongo11runCommandsEPNS_16OperationContextERKNS_3rpc16RequestInterfaceEPNS2_21ReplyBuilderInterfaceE+0x1F0) [0xac6360]
 mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xB45) [0xc893c5]
 mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE+0xEC) [0x94f07c]
 mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x325) [0x12b13c5]
 libpthread.so.0(+0x7E9A) [0x7f0b42425e9a]
 libc.so.6(clone+0x6D) [0x7f0b4215336d]
-----  END BACKTRACE  -----
2016-08-12T02:11:01.656-0700 F - [conn168854] /proc/self/maps:
00400000-01fd0000 r-xp 00000000 08:01 4855752                            /usr/bin/mongod
2016-08-12T02:11:01.656-0700 F - [conn168854] 01fd0000-020a3000 rw-p 01bcf000 08:01 4855752 /usr/bin/mongod
2016-08-12T02:11:01.656-0700 F - [conn168854] 020a3000-02112000 rw-p 00000000 00:00 0
2016-08-12T02:11:01.656-0700 F - [conn168854] 03720000-f3a9b8000 rw-p 00000000 00:00 0 [heap]
2016-08-12T02:11:01.656-0700 F - [conn168854] 7f08f5900000-7f08f5901000 ---p 00000000 00:00 0
2016-08-12T02:11:01.656-0700 F - [conn168854] 7f08f5901000-7f08f5a01000 rw-p 00000000 00:00 0 [stack:8921]
2016-08-12T02:11:01.656-0700 F - [conn168854] 7f08f5a01000-7f08f5a02000 ---p 00000000 00:00 0
2016-08-12T02:11:01.656-0700 F - [conn168854] 7f08f5a02000-7f08f5b02000 rw-p 00000000 00:00 0 [stack:30647]
...



 Comments   
Comment by Andy Schwerin [ 27/Oct/16 ]

We've been unable to reproduce or diagnose this problem. If it resurfaces, or you encounter a reproducer, please re-open.

Generated at Thu Feb 08 04:09:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.