[SERVER-4564] Invalid pointer crash in tags.js Created: 27/Dec/11  Updated: 11/Jul/16  Resolved: 31/Jan/12

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

Type: Bug Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: Dwight Merriman
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux 64-bit build


Operating System: Linux
Participants:

 Description   

http://buildbot.mongodb.org/builders/Linux%2064-bit/builds/3993/steps/test_1/logs/stdio

 m31003| Tue Dec 27 10:13:05 Invalid access at address: 0xfffffffffffffff9
 m31003| 
 m31003| Tue Dec 27 10:13:05 Got signal: 11 (Segmentation fault).
 m31003| 
 m31003| Tue Dec 27 10:13:05 [rsHealthPoll] Socket recv() errno:88 Socket operation on non-socket Assertion: 13078:unsupported address family
 m31003| Tue Dec 27 10:13:05 Backtrace:
 m31003| 0xb4adb4 0xb4fadc 0x2aaaaacd5540 0x2aaaab6e9edb 0x607b7c 0x606036 0x5e1a1f 0x5e22e2 0x5ef1d0 0x8737a6 0x594e8e 0x5965b4 0xb65970 0x2aaaaaccd407 0x2aaaab748b0d 
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(_ZN5mongo10abruptQuitEi+0x3d4) [0xb4adb4]
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP7siginfoPv+0x22c) [0xb4fadc]
 m31003|  /lib64/libpthread.so.0 [0x2aaaaacd5540]
 m31003|  /lib64/libc.so.6(cfree+0x3b) [0x2aaaab6e9edb]
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(_ZNSt11_Deque_baseIN5mongo7BSONObjESaIS1_EED2Ev+0x2c) [0x607b7c]
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(_ZN5mongo14DBClientCursorD0Ev+0x106) [0x606036]
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(_ZN5mongo17DBClientInterface5findNERSt6vectorINS_7BSONObjESaIS2_EERKSsNS_5QueryEiiPKS2_i+0x42f) [0x5e1a1f]
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(_ZN5mongo17DBClientInterface7findOneERKSsRKNS_5QueryEPKNS_7BSONObjEi+0x72) [0x5e22e2]
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(_ZN5mongo18DBClientConnection10runCommandERKSsRKNS_7BSONObjERS3_i+0x80) [0x5ef1d0]
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(_ZN5mongo16_MultiCommandJob3runEv+0x206) [0x8737a6]
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(_ZN5mongo13BackgroundJob7jobBodyEN5boost10shared_ptrINS0_9JobStatusEEE+0xce) [0x594e8e]
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(_ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN5mongo13BackgroundJobENS_10shared_ptrINS7_9JobStatusEEEEENS2_5list2INS2_5valueIPS7_EENSD_ISA_EEEEEEE3runEv+0x74) [0x5965b4]
 m31003|  /mnt/home/buildbot/slave/Linux_64bit/mongo/mongod(thread_proxy+0x80) [0xb65970]
 m31003|  /lib64/libpthread.so.0 [0x2aaaaaccd407]
 m31003|  /lib64/libc.so.6(clone+0x6d) [0x2aaaab748b0d]



 Comments   
Comment by Dwight Merriman [ 27/Dec/11 ]

is there any context for what the problem is here?
i ran jstests/replsets/tags.js and it isn't failing for me

Comment by Eric Milkie [ 27/Dec/11 ]

Here's the translated backtrace (although I'm not sure how useful it will be; there are several frames in inlined functions)

# addr2line -Cfe mongod  0xb4adb4 0xb4fadc 0x2aaaaacd5540 0x2aaaab6e9edb 0x607b7c 0x606036 0x5e1a1f 0x5e22e2 0x5ef1d0 0x8737a6 0x594e8e 0x5965b4 0xb65970 0x2aaaaaccd407 0x2aaaab748b0d 
printStackTrace
/mnt/home/buildbot/slave/Linux_64bit/mongo/src/mongo/util/goodies.h:61
~basic_ostringstream
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/sstream:444
??
??:0
??
??:0
std::_Deque_base<mongo::BSONObj, std::allocator<mongo::BSONObj> >::_M_destroy_nodes(mongo::BSONObj**, mongo::BSONObj**)
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_deque.h:523
~intrusive_ptr (from mongo::DBClientCursor::~DBClientCursor() )
/opt/extra/include/boost/smart_ptr/intrusive_ptr.hpp:101
mongo::DBClientInterface::findN(std::vector<mongo::BSONObj, std::allocator<mongo::BSONObj> >&, std::string const&, mongo::Query, int, int, mongo::BSONObj const*, int)
/mnt/home/buildbot/slave/Linux_64bit/mongo/src/mongo/client/dbclient.cpp:575
~intrusive_ptr 
/opt/extra/include/boost/smart_ptr/intrusive_ptr.hpp:101
mongo::DBClientWithCommands::runCommand(std::string const&, mongo::BSONObj const&, mongo::BSONObj&, int)
/mnt/home/buildbot/slave/Linux_64bit/mongo/src/mongo/client/dbclient.cpp:267
mongo::_MultiCommandJob::run()
/mnt/home/buildbot/slave/Linux_64bit/mongo/src/mongo/db/repl/multicmd.h:53
boost::shared_ptr<mongo::BackgroundJob::JobStatus>::operator->() const
/opt/extra/include/boost/smart_ptr/shared_ptr.hpp:418
~shared_count
/opt/extra/include/boost/smart_ptr/detail/shared_count.hpp:217
thread_proxy
??:0
??
??:0
??
??:0

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