[SERVER-27106] Segfaults errors Created: 18/Nov/16  Updated: 18/Nov/16  Resolved: 18/Nov/16

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

Type: Bug Priority: Critical - P2
Reporter: alex Assignee: Ramon Fernandez Marina
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
GUI: MongoChef


Attachments: File mongo.log    
Issue Links:
Duplicate
duplicates SERVER-24386 3.2.6 Segmentation Fault after a netw... Closed
Operating System: Linux
Participants:

 Description   

I was trying to see how mongo works with relations via it's aggregations framework
I have 3 collections, related by ObjectId: photos (~300 000 records)report <- photo_reports(~3000) <- places(~300). All requests were made by MongoChef (gui)

From time to time MongoDB goes out with segfault errors in log (is attached). I noticed that with "preserveNullAndEmptyArrays: false" the same request works ok. But maybe this is just a coincidence.



 Comments   
Comment by Ramon Fernandez Marina [ 18/Nov/16 ]

It looks like this is a duplicate of SERVER-24386, fixed in 3.2.11 which is scheduled for release in the coming days. If I can confirm this I'll be closing this ticket as a duplicate.

EDIT
Yes, this indeed looks like a duplicate of SERVER-24386, so I'm closing this ticket. Sorry you run into this; unfortunately there's no workaround at the moment, but 3.2.11 will be available soon.

Thanks,
Ramón.

Comment by Ramon Fernandez Marina [ 18/Nov/16 ]

Thanks for reporting this issue alexbyk. Using these debug symbols I get the parsed stack trace below:

/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/util/stacktrace_posix.cpp:172
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/util/signal_handlers_synchronous.cpp:182
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/util/signal_handlers_synchronous.cpp:277
??:0
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/operation_context.cpp:46
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/dbdirectclient.cpp:60
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/dbdirectclient.cpp:141
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/util/net/message.h:504
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/util/net/message.h:420
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/client/dbclient.cpp:1271
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/client/dbclientcursor.cpp:517 (discriminator 11)
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/client/dbclientcursor.cpp:513
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/client/dbclientcursor.cpp:514
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/third_party/boost-1.56.0/boost/smart_ptr/intrusive_ptr.hpp:97
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/pipeline/document_source.h:1262
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/pipeline/document_source.h:1262
/opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/stl_construct.h:102
/opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/stl_construct.h:126
/opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/stl_construct.h:151
/opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/deque.tcc:841
/opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/stl_deque.h:662
/opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/stl_deque.h:1039
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/pipeline/pipeline.h:55
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/pipeline/pipeline.h:55
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/exec/plan_stage.h:110
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/exec/pipeline_proxy.h:45
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/exec/pipeline_proxy.h:45
/opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/unique_ptr.h:235
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/query/plan_executor.cpp:214
/opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/unique_ptr.h:76
/opt/mongodbtoolchain/v2/include/c++/5.4.0/bits/unique_ptr.h:236
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/clientcursor.cpp:134
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/catalog/cursor_manager.cpp:538 (discriminator 1)
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/base/status-inl.h:72
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/catalog/cursor_manager.cpp:236
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/catalog/cursor_manager.cpp:299
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/instance.cpp:637
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/instance.cpp:550
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/db/db.cpp:177
/data/mci/da3315949c327a79e28b2cdc5f2fa7a3/src/src/mongo/util/net/message_server_port.cpp:227
??:0
??:0

We'll investigate further and get back to you.

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