Not the answer you need?
Register and ask your own question!

PSMDB crashing when modify user password if audit enable

goldstrikegoldstrike ContributorInactive User Role Beginner
Need help.

Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-79-generic x86_64)
percona-server-mongodb-server 3.0.8-1.3.trusty

Enable audit function as /etc/init.d/mongod script.
DAEMON_OPTS="${OPTIONS} --auditDestination file --auditFormat JSON --auditPath /var/log/mongodb/audit.json"

when change user password like "db.changeUserPassword("readonly", "readonly")", mongdb gone immediately.

The mongo.log is shown below

2016-03-07T13:21:19.604+0800 F - [conn1] Invalid access at address: 0
2016-03-07T13:21:19.611+0800 F - [conn1] Got signal: 11 (Segmentation fault).

0x10ae032 0x10ad8e3 0x10adc44 0x7f3542f87340 0x980e1d 0x9855ca 0xa8535e 0xab44c1 0xab5502 0xab615b 0xc8418b 0xb95bcd 0x8db085 0x105f5c1 0x7f3542f7f182 0x7f3541a4547d
BEGIN BACKTRACE
{"backtrace":[{"b":"400000","o":"CAE032"},{"b":"400000","o":"CAD8E3"},{"b":"400000","o":"CADC44"},{"b":"7F3542F77000","o":"10340"},{"b":"400000","o":"580E1D"},{"b":"400000","o":"5855CA"},{"b":"400000","o":"68535E"},{"b":"400000","o":"6B44C1"},{"b":"400000","o":"6B5502"},{"b":"400000","o":"6B615B"},{"b":"400000","o":"88418B"},{"b":"400000","o":"795BCD"},{"b":"400000","o":"4DB085"},{"b":"400000","o":"C5F5C1"},{"b":"7F3542F77000","o":"8182"},{"b":"7F354194B000","o":"FA47D"}],"processInfo":{ "mongodbVersion" : "3.0.8-1.3", "gitVersion" : "354592f7850d8d113690f610049baec94812da2b", "uname" : { "sysname" : "Linux", "release" : "3.13.0-79-generic", "version" : "#123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016", "machine" : "x86_64" }, "somap" : [ { "elfType" : 2, "b" : "400000", "buildId" : "4008ADC5E219CDCA21277250775C40CFF88989CD" }, { "b" : "7FFE05A1D000", "elfType" : 3, "buildId" : "E37313376D77AA284BA26F3EFE65368125B2020B" }, { "b" : "7F35435C9000", "path" : "/lib/x86_64-linux-gnu/libbz2.so.1.0", "elfType" : 3, "buildId" : "E1031DDBFFE20367E874B7093EEC0C8D9F3B43F6" }, { "b" : "7F35433B0000", "path" : "/lib/x86_64-linux-gnu/libz.so.1", "elfType" : 3, "buildId" : "7EE9BC42787A0F9A793BDBFCB0671FD12C52BC2A" }, { "b" : "7F3543195000", "path" : "/usr/lib/x86_64-linux-gnu/libsasl2.so.2", "elfType" : 3, "buildId" : "666B276BD134B0E9579B67D4EE333F2D0FB813CD" }, { "b" : "7F3542F77000", "path" : "/lib/x86_64-linux-gnu/libpthread.so.0", "elfType" : 3, "buildId" : "AF06068681750736E0524DF17D5A86CB2C3F765C" }, { "b" : "7F3542D18000", "path" : "/lib/x86_64-linux-gnu/libssl.so.1.0.0", "elfType" : 3, "buildId" : "E21720F2804EF30440F2B39CD409252C26F58F73" }, { "b" : "7F354293C000", "path" : "/lib/x86_64-linux-gnu/libcrypto.so.1.0.0", "elfType" : 3, "buildId" : "9BC22F9457E3D7E9CF8DDC135C0DAC8F7742135D" }, { "b" : "7F3542734000", "path" : "/lib/x86_64-linux-gnu/librt.so.1", "elfType" : 3, "buildId" : "B376100CAB1EAC4E5DE066EACFC282BF7C0B54F3" }, { "b" : "7F3542530000", "path" : "/lib/x86_64-linux-gnu/libdl.so.2", "elfType" : 3, "buildId" : "67699FFDA9FD2A552032E0652A242E82D65AA10D" }, { "b" : "7F354222C000", "path" : "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", "elfType" : 3, "buildId" : "D0E735DBECD63462DA114BD3F76E6EC7BB1FACCC" }, { "b" : "7F3541F26000", "path" : "/lib/x86_64-linux-gnu/libm.so.6", "elfType" : 3, "buildId" : "EF3F6DFFA1FBE48436EC6F45CD3AABA157064BB4" }, { "b" : "7F3541D10000", "path" : "/lib/x86_64-linux-gnu/libgcc_s.so.1", "elfType" : 3, "buildId" : "36311B4457710AE5578C4BF00791DED7359DBB92" }, { "b" : "7F354194B000", "path" : "/lib/x86_64-linux-gnu/libc.so.6", "elfType" : 3, "buildId" : "5382058B69031CAA9B9996C11061CD164C9398FF" }, { "b" : "7F35437D9000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "2A816C3EBBA4E12813FBD34B06FBD25BC892A67F" } ] }}
mongod(_ZN5mongo15printStackTraceERSo+0x32) [0x10ae032]
mongod(+0xCAD8E3) [0x10ad8e3]
mongod(+0xCADC44) [0x10adc44]
libpthread.so.0(+0x10340) [0x7f3542f87340]
mongod(+0x580E1D) [0x980e1d]
mongod(_ZN5mongo5audit13logUpdateUserEPNS_11ClientBasicERKNS_8UserNameEbPKNS_7BSONObjEPKSt6vectorINS_8RoleNameESaISA_EE+0x26A) [0x9855ca]
mongod(_ZN5mongo13CmdUpdateUser3runEPNS_16OperationContextERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x38E) [0xa8535e]
mongod(_ZN5mongo12_execCommandEPNS_16OperationContextEPNS_7CommandERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x31) [0xab44c1]
mongod(_ZN5mongo7Command11execCommandEPNS_16OperationContextEPS0_iPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0xCA2) [0xab5502]
mongod(_ZN5mongo12_runCommandsEPNS_16OperationContextEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x28B) [0xab615b]
mongod(_ZN5mongo8runQueryEPNS_16OperationContextERNS_7MessageERNS_12QueryMessageERKNS_15NamespaceStringERNS_5CurOpES3_+0x76B) [0xc8418b]
mongod(_ZN5mongo16assembleResponseEPNS_16OperationContextERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xB9D) [0xb95bcd]
mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xF5) [0x8db085]
mongod(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x351) [0x105f5c1]
libpthread.so.0(+0x8182) [0x7f3542f7f182]
libc.so.6(clone+0x6D) [0x7f3541a4547d]
END BACKTRACE

Comments

  • goldstrikegoldstrike Contributor Inactive User Role Beginner
    As long as the audit function is removed, all operations are normal.
  • DBennettDBennett Percona Director of DS Inactive User Role
    Hi goldstrike,

    This issue is fixed in PSMDB 3.0.9-1.4 which is scheduled to be released tomorrow.

    https://jira.percona.com/browse/PSMDB-56

    --Dave
  • DBennettDBennett Percona Director of DS Inactive User Role
    Goldstrike,

    3.0.9-1.4 has been GA released. You should be able to to automatically install.

    --Dave
  • goldstrikegoldstrike Contributor Inactive User Role Beginner
    Thank you very much, test success.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.