[SERVER-7206] potential mongod crash in profiling, 2.2 Created: 01/Oct/12  Updated: 11/Jul/16  Resolved: 07/Nov/12

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 2.2.0
Fix Version/s: 2.2.2, 2.3.1

Type: Bug Priority: Major - P3
Reporter: bingyang bingyang Assignee: Eric Milkie
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-6963 : -286331391 (0x01EEEEEE) first eleme... Closed
is duplicated by SERVER-7078 Data corruption :( Closed
is duplicated by SERVER-7548 Assertion: 10334:Invalid BSONObj size... Closed
is duplicated by SERVER-7913 Invalid BSON in db.system.profile Closed
Related
Operating System: ALL
Participants:

 Description   

My mongodb version 2.2 production environment occasional error, this error led to mongodb process hang, and look forward to your reply, thank you; contents of the log is as follows:

Tue Sep 25 12:13:53 [conn12903] query DbAmsBizOffer201209_Day_2.TbAmsBizOffer201209_Day_4 query: { $query: { UserId: "USxx" }, $orderby: { CreateTime: -1 } } ntoreturn:10 ntoskip:0 nscanned:18 scanAndOrder:1 keyUpdates:0 locks(micros) r:61178 nreturned:10 reslen:7025 61ms
Tue Sep 25 12:13:55 [conn13013] end connection 192.168.x.x:53020 (24 connections now open)
Tue Sep 25 12:13:55 [initandlisten] connection accepted from 192.168.2.167:53026 #13018 (25 connections now open)
Tue Sep 25 12:13:56 [conn12945] query DbAmsBizOffer201209_Day_2.TbAmsBizOffer201209_Day_4 query: { $query: { UserId: "USxx" }, $orderby: { CreateTime: -1 } } ntoreturn:20 ntoskip:0 nscanned:417 scanAndOrder:1 keyUpdates:0 locks(micros) r:30291 nreturned:20 reslen:13480 30ms
Tue Sep 25 12:14:04 [conn13014] end connection 192.168.x.x:43644 (24 connections now open)
Tue Sep 25 12:14:04 [initandlisten] connection accepted from 192.168.x.x:43656 #13019 (25 connections now open)
Tue Sep 25 12:14:06 [conn12790] query DbAmsBizOffer201209_Day_2.TbAmsBizOffer201209_Day_4 query: { $query: { UserId: "USxx" }, $orderby: { CreateTime: -1 } } ntoreturn:10 ntoskip:0 nscanned:10793 scanAndOrder:1 keyUpdates:0 numYields: 21 locks(micros) r:179246 nreturned:10 reslen:6128 91ms
Tue Sep 25 12:14:07 Invalid access at address: 0x2b724c83a000 from thread: conn11726
 
Tue Sep 25 12:14:07 Got signal: 11 (Segmentation fault).
 
Tue Sep 25 12:14:07 Backtrace:
0xade6e1 0x5582d9 0x558862 0x390be0eb10 0x390b67c241 0x70f452 0xb5db70 0x56fa52 0x5dbf11 0x390be0673d 0x390b6d3d1d 
 /usr/local/mongodb-linux-x86_64-2.2.0/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) [0xade6e1]
 /usr/local/mongodb-linux-x86_64-2.2.0/bin/mongod(_ZN5mongo10abruptQuitEi+0x399) [0x5582d9]
 /usr/local/mongodb-linux-x86_64-2.2.0/bin/mongod(_ZN5mongo24abruptQuitWithAddrSignalEiP7siginfoPv+0x262) [0x558862]
 /lib64/libpthread.so.0 [0x390be0eb10]
 /lib64/libc.so.6(memcpy+0x3a1) [0x390b67c241]
 /usr/local/mongodb-linux-x86_64-2.2.0/bin/mongod(_ZN5mongo7profileERKNS_6ClientERNS_5CurOpE+0x9a2) [0x70f452]
 /usr/local/mongodb-linux-x86_64-2.2.0/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xec0) [0xb5db70]
 /usr/local/mongodb-linux-x86_64-2.2.0/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x82) [0x56fa52]
 /usr/local/mongodb-linux-x86_64-2.2.0/bin/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x411) [0x5dbf11]
 /lib64/libpthread.so.0 [0x390be0673d]
 /lib64/libc.so.6(clone+0x6d) [0x390b6d3d1d]



 Comments   
Comment by auto [ 07/Nov/12 ]

Author:

{u'date': u'2012-11-07T18:38:29Z', u'email': u'milkie@10gen.com', u'name': u'Eric Milkie'}

Message: SERVER-7206 change global variable in profiler to be heap-based

Conflicts:
src/mongo/db/instance.cpp
Branch: v2.2
https://github.com/mongodb/mongo/commit/2642f0c09b9e8694efd53ce10291a33334d9fc48

Comment by auto [ 07/Nov/12 ]

Author:

{u'date': u'2012-11-07T18:38:29Z', u'email': u'milkie@10gen.com', u'name': u'Eric Milkie'}

Message: SERVER-7206 change global variable in profiler to be heap-based
Branch: master
https://github.com/mongodb/mongo/commit/9139ae288028d28509c0470e185147cbeca410fa

Comment by Eliot Horowitz (Inactive) [ 27/Oct/12 ]

definitely a bug

Comment by bingyang bingyang [ 26/Oct/12 ]

Hi, Ian Whalen , Thank you for your attention to my problem, detailed the details of the error log when an error occurs, since the last occurrence of this error and now Mongodb Server is running well, I will try to update the client to the latest version, if you happen againsimilar error, I will be the first time feedback to you, and thank you for your attention to this issue,
I wish you a pleasant, good-bye.

Comment by William Zola [ 25/Oct/12 ]

Hi Bingyang

Unfortunately, your last update was incomplete. Can you please add the additional information that got cut off? It's usually best to reply at http://jira.mongodb.org instead of replying to the email.

Thanks! I look forward to hearing from you soon. Have a great day!

-William

Comment by bingyang bingyang [ 25/Oct/12 ]

HI,Ian Whalen
use Mongodb server 2.2,client driver version(C#) 1.3
This error does not occur, very strange, occasionally there will be

Comment by Ian Whalen (Inactive) [ 24/Oct/12 ]

Hi bingyang136@163.com, can you also let us know what driver you're using (including the version)?

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