[SERVER-25317] [mongosMain] Invalid access at address: 0x10e4000 Created: 28/Jul/16  Updated: 28/Jul/16  Resolved: 28/Jul/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: Cn 66law Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

centos 6.4 64bit


Issue Links:
Duplicate
duplicates SERVER-25029 Segmentation fault in mongos when con... Closed
Operating System: ALL
Participants:

 Description   

2016-07-28T14:06:55.246+0800 I CONTROL  [main] ***** SERVER RESTARTED *****
2016-07-28T14:06:55.256+0800 I CONTROL  [main] ** WARNING: You are running this process as the root user, which is not recommended.
2016-07-28T14:06:55.256+0800 I CONTROL  [main]
2016-07-28T14:06:55.257+0800 I SHARDING [mongosMain] MongoS version 3.2.8 starting: pid=2029 port=27017 64-bit host=localhost (--help for usage)
2016-07-28T14:06:55.257+0800 I CONTROL  [mongosMain] db version v3.2.8
2016-07-28T14:06:55.257+0800 I CONTROL  [mongosMain] git version: ed70e33130c977bda0024c125b56d159573dbaf0
2016-07-28T14:06:55.257+0800 I CONTROL  [mongosMain] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2016-07-28T14:06:55.257+0800 I CONTROL  [mongosMain] allocator: tcmalloc
2016-07-28T14:06:55.257+0800 I CONTROL  [mongosMain] modules: none
2016-07-28T14:06:55.257+0800 I CONTROL  [mongosMain] build environment:
2016-07-28T14:06:55.258+0800 I CONTROL  [mongosMain]     distmod: rhel62
2016-07-28T14:06:55.258+0800 I CONTROL  [mongosMain]     distarch: x86_64
2016-07-28T14:06:55.258+0800 I CONTROL  [mongosMain]     target_arch: x86_64
2016-07-28T14:06:55.258+0800 I CONTROL  [mongosMain] options: { config: "/etc/mongod/router.conf", net: { port: 27017 }, processManagement: { fork: true, pidFilePath: "/data/mongo/router/mongod.pid" }, replication: { localPingThresholdMs: 15 }, setParameter: { enableLocalhostAuthBypass: "true" }, sharding: { autoSplit: true, chunkSize: 64, configDB: "config/mongo-router:27001" }, systemLog: { destination: "file", logAppend: true, logRotate: "reopen", path: "/data/mongo/router/mongo.log" } }
2016-07-28T14:06:55.258+0800 I SHARDING [mongosMain] Updating config server connection string to: config/mongo-router:27001
2016-07-28T14:06:55.258+0800 I NETWORK  [mongosMain] Starting new replica set monitor for config/mongo-router:27001
2016-07-28T14:06:55.260+0800 I NETWORK  [ReplicaSetMonitorWatcher] starting
2016-07-28T14:06:55.265+0800 I SHARDING [thread1] creating distributed lock ping thread for process mongo-router.66law.cn:27017:1469686015:709949286 (sleeping for 30000ms)
2016-07-28T14:06:55.270+0800 F -        [mongosMain] Invalid access at address: 0x10e4000
2016-07-28T14:06:55.285+0800 F -        [mongosMain] Got signal: 11 (Segmentation fault).
 
 0xc71ed2 0xc70e09 0xc71188 0x367900f7e0 0x3678c89adf 0xcd697e 0xeb2b0d 0x6f10d8 0x6f117e 0xb3347e 0x6f2b5d 0x6f4538 0x6f46c1 0x6f48e5 0x747e14 0x7483a1 0x73f245 0xb2ebb6 0xb2fabf 0xab393c 0xabbd74 0xa77f57 0xb2d319 0xbb3e9b 0x69542a 0x697499 0x3678c1ed1d 0x694611
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"400000","o":"871ED2","s":"_ZN5mongo15printStackTraceERSo"},{"b":"400000","o":"870E09"},{"b":"400000","o":"871188"},{"b":"3679000000","o":"F7E0"},{"b":"3678C00000","o":"89ADF","s":"memcpy"},{"b":"400000","o":"8D697E","s":"_ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_iterator_tag"},{"b":"400000","o":"AB2B0D","s":"_ZNSsC2EPKcmRKSaIcE"},{"b":"400000","o":"2F10D8","s":"_ZN5mongo16ConnectionStringC1ENS_10StringDataESt6vectorINS_11HostAndPortESaIS3_EE"},{"b":"400000","o":"2F117E","s":"_ZN5mongo16ConnectionString13forReplicaSetENS_10StringDataESt6vectorINS_11HostAndPortESaIS3_EE"},{"b":"400000","o":"73347E","s":"_ZN5mongo22ShardingConnectionHook8onCreateEPNS_12DBClientBaseE"},{"b":"400000","o":"2F2B5D","s":"_ZN5mongo16DBConnectionPool8onCreateEPNS_12DBClientBaseE"},{"b":"400000","o":"2F4538","s":"_ZN5mongo16DBConnectionPool13_finishCreateERKSsdPNS_12DBClientBaseE"},{"b":"400000","o":"2F46C1","s":"_ZN5mongo16DBConnectionPool3getERKNS_16ConnectionStringEd"},{"b":"400000","o":"2F48E5","s":"_ZN5mongo18ScopedDbConnectionC1ERKNS_16ConnectionStringEd"},{"b":"400000","o":"347E14","s":"_ZN5mongo17ReplicaSetMonitor9Refresher20_refreshUntilMatchesEPKNS_21ReadPreferenceSettingE"},{"b":"400000","o":"3483A1","s":"_ZN5mongo17ReplicaSetMonitor16getHostOrRefreshERKNS_21ReadPreferenceSettingENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE"},{"b":"400000","o":"33F245","s":"_ZN5mongo23RemoteCommandTargeterRS8findHostERKNS_21ReadPreferenceSettingENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE"},{"b":"400000","o":"72EBB6","s":"_ZN5mongo13ShardRegistry23_exhaustiveFindOnConfigEPNS_16OperationContextERKNS_21ReadPreferenceSettingERKNS_15NamespaceStringERKNS_7BSONObjESB_N5boost8optionalIxEE"},{"b":"400000","o":"72FABF","s":"_ZN5mongo13ShardRegistry22exhaustiveFindOnConfigEPNS_16OperationContextERKNS_21ReadPreferenceSettingERKNS_15NamespaceStringERKNS_7BSONObjESB_N5boost8optionalIxEE"},{"b":"400000","o":"6B393C","s":"_ZN5mongo24CatalogManagerReplicaSet23_exhaustiveFindOnConfigEPNS_16OperationContextERKNS_21ReadPreferenceSettingERKNS_15NamespaceStringERKNS_7BSONObjESB_N5boost8optionalIxEE"},{"b":"400000","o":"6BBD74","s":"_ZN5mongo24CatalogManagerReplicaSet12getAllShardsEPNS_16OperationContextE"},{"b":"400000","o":"677F57","s":"_ZN5mongo24ForwardingCatalogManager12getAllShardsEPNS_16OperationContextE"},{"b":"400000","o":"72D319","s":"_ZN5mongo13ShardRegistry6reloadEPNS_16OperationContextE"},{"b":"400000","o":"7B3E9B","s":"_ZN5mongo29initializeGlobalShardingStateEPNS_16OperationContextERKNS_16ConnectionStringEb"},{"b":"400000","o":"29542A","s":"_Z10mongoSMainiPPcS0_"},{"b":"400000","o":"297499","s":"main"},{"b":"3678C00000","o":"1ED1D","s":"__libc_start_main"},{"b":"400000","o":"294611"}],"processInfo":{ "mongodbVersion" : "3.2.8", "gitVersion" : "ed70e33130c977bda0024c125b56d159573dbaf0", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "2.6.32-358.el6.x86_64", "version" : "#1 SMP Fri Feb 22 00:31:26 UTC 2013", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "F21AE95924560F6FA79AF3D2316609D992A6E7FB" }, { "b" : "7FFF7FCAE000", "elfType" : 3, "buildId" : "B5D86FBCF0CCB03331E6C7C73897B96845E0A4EB" }, { "path" : "/usr/lib64/libssl.so.10", "elfType" : 3, "buildId" : "7C5A504A21B221F299B1C45B9ED9C2340AEC6AEB" }, { "path" : "/usr/lib64/libcrypto.so.10", "elfType" : 3, "buildId" : "3E83FD82B1AE56360B270189F636423FB3016594" }, { "path" : "/lib64/librt.so.1", "elfType" : 3, "buildId" : "86FE5BC1F46B8F8AA9A7A479FF991900DB93F720" }, { "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "045D39F19533291EBD72D0EE0247F9D49BE2521E" }, { "path" : "/lib64/libm.so.6", "elfType" : 3, "buildId" : "B60EF3FCE5D4D2D8BAD2585D5CAAA1167B35DBFD" }, { "path" : "/lib64/libgcc_s.so.1", "elfType" : 3, "buildId" : "9A6E4BDFA184364D81F7DFD789474C3FB8F98A00" }, { "path" : "/lib64/libpthread.so.0", "elfType" : 3, "buildId" : "B3BD4C596D72FCBE4607C86FEEC14F47B46D0DCC" }, { "path" : "/lib64/libc.so.6", "elfType" : 3, "buildId" : "F14F3F5B55FC325FDFA7FB6F22F73CA1C6977379" }, { "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "DB04BDF55FE66BADD1081D833C17B4881E0EEDB9" }, { "path" : "/lib64/libgssapi_krb5.so.2", "elfType" : 3, "buildId" : "9B852585C66329AA02EFB28497E652A40F538E78" }, { "path" : "/lib64/libkrb5.so.3", "elfType" : 3, "buildId" : "EF3AACAFD6BF71BB861F194C1559153FB0B020E2" }, { "path" : "/lib64/libcom_err.so.2", "elfType" : 3, "buildId" : "152E2C18A7A2145021A8A879A01A82EE134E3946" }, { "path" : "/lib64/libk5crypto.so.3", "elfType" : 3, "buildId" : "DDE6774979156442185836150FC0785170F8001F" }, { "path" : "/lib64/libz.so.1", "elfType" : 3, "buildId" : "5FA8E5038EC04A774AF72A9BB62DC86E1049C4D6" }, { "path" : "/lib64/libkrb5support.so.0", "elfType" : 3, "buildId" : "A23DAFBCE170763BF1E836A8B26113F9CD20E0DA" }, { "path" : "/lib64/libkeyutils.so.1", "elfType" : 3, "buildId" : "AF374BAFB7F5B139A0B431D3F06D82014AFF3251" }, { "path" : "/lib64/libresolv.so.2", "elfType" : 3, "buildId" : "DDF6449707FD4C49DDE32A293EEE9AC218BFC460" }, { "path" : "/lib64/libselinux.so.1", "elfType" : 3, "buildId" : "B4576BE308DDCF7BC31F7304E4734C3D846D0236" } ] }}



 Comments   
Comment by Ramon Fernandez Marina [ 28/Jul/16 ]

Sorry you run into this issue laoshancun@foxmail.com; this was reported before in SERVER-25029 and has already been fixed in MongoDB 3.2.9, which is scheduled for release in the coming weeks.

This behavior appears when mongos starts before the config servers are available. The workaround is to wait for your config servers to become available and restart mongos.

I'm going to resolve this ticket as a duplicate of SERVER-25029. Feel free to subscribe to the mongodb-announce user group if you're interested in receiving an alert when 3.2.9 is ready for download.

Thanks,
Ramón.

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