[SERVER-41065] Make agg evaluate() thread safe by passing 'Variables' as a parameter Created: 09/May/19  Updated: 29/Oct/23  Resolved: 12/Jun/19

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 4.0.6, 4.0.9
Fix Version/s: 3.6.14, 4.0.11, 4.2.0-rc2, 4.3.1

Type: Bug Priority: Major - P3
Reporter: FirstName lipengchong Assignee: Arun Banala
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File log.newline.txt     File social_feeds.js    
Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0, v3.6
Sprint: Query 2019-06-03, Query 2019-06-17
Participants:
Case:

 Description   

We get  Segmentation fault when making test (mostly is update) in MongoDB 4.0.

the logs and BEGIN BACKTRACE haved been attached.

log.newline.txt

We can easily  get reproduce. But the test is Complex, I will try to make a simple steps to reproduce it.



 Comments   
Comment by Githook User [ 13/Jun/19 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-41065 Remove unused ExpressionTwoNumericArgs class added from backport
Branch: v4.0
https://github.com/mongodb/mongo/commit/28b3f07cc9774f89fbbce0ea434fba102bdabf31

Comment by Githook User [ 13/Jun/19 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-41065 Make agg evaluate() thread safe by passing 'Variables' as a parameter

(cherry picked from commit ab9d3aaad1cb9ad42063c1291ea07e321260a3d1)
Branch: v3.6
https://github.com/mongodb/mongo/commit/1e02fdb576d8167562587cd18c5c7132e9675639

Comment by Githook User [ 13/Jun/19 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-41065 Make agg evaluate() thread safe by passing 'Variables' as a parameter

(cherry picked from commit ab9d3aaad1cb9ad42063c1291ea07e321260a3d1)
Branch: v4.0
https://github.com/mongodb/mongo/commit/b760a5a36fc15a8e20ad258d040cd241c9f2dc7b

Comment by Githook User [ 12/Jun/19 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-41065 Make agg evaluate() thread safe by passing 'Variables' as a parameter

(cherry picked from commit ab9d3aaad1cb9ad42063c1291ea07e321260a3d1)
Branch: v4.2
https://github.com/mongodb/mongo/commit/4d1eb3b22dbd7546f4980e125ae38010d40b5714

Comment by Githook User [ 12/Jun/19 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-41065 Make agg evaluate() thread safe by passing 'Variables' as a parameter
Branch: master
https://github.com/mongodb/mongo/commit/ab9d3aaad1cb9ad42063c1291ea07e321260a3d1

Comment by Githook User [ 11/Jun/19 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: Revert "SERVER-41065 Make evaluate() thread safe by passing 'Variables' as a parameter"

This reverts commit 17cdb38b6db716dc47485a60ddff3c543e713e3d.
Branch: master
https://github.com/mongodb/mongo/commit/951f7a2c184af7c5d46945b56dcfbc13fd3c5197

Comment by Githook User [ 11/Jun/19 ]

Author:

{'name': 'Arun Banala', 'email': 'arun.banala@mongodb.com', 'username': 'banarun'}

Message: SERVER-41065 Make evaluate() thread safe by passing 'Variables' as a parameter
Branch: master
https://github.com/mongodb/mongo/commit/17cdb38b6db716dc47485a60ddff3c543e713e3d

Comment by Nic Cottrell [ 15/May/19 ]

I've just attached a validator example which has been known to crash 4.0.9 community.

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