[SERVER-20611] ASIO stress test segfaults with low ulimit Created: 24/Sep/15  Updated: 07/Oct/15  Resolved: 24/Sep/15

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

Type: Bug Priority: Major - P3
Reporter: Adam Midvidy Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platform A (10/09/15)
Participants:

 Description   

➜  mongo git:(SERVER-20562-isolate) ✗ ulimit -n 20
➜  mongo git:(SERVER-20562-isolate) ✗  ./build/cached/mongo/executor/network_interface_asio_integration_test
2015-09-24T11:52:29.721-0400 I -        [main] Using test fixture with connection string = localhost:27017                                                                                                         
2015-09-24T11:52:29.727-0400 I -        [main] going to run suite: NetworkInterfaceASIOIntegrationTest                                                                                                             
2015-09-24T11:52:29.727-0400 I -        [main]   going to run test: Ping                                                                                                                                           
2015-09-24T11:52:29.728-0400 I EXECUTOR [main] got command result: RemoteResponse --  cmd:{ ok: 1.0 }                                                                                                              
2015-09-24T11:52:29.729-0400 I -        [main]   going to run test: Timeouts                                                                                                                                       
2015-09-24T11:52:29.730-0400 I EXECUTOR [main] got command result: RemoteResponse --  cmd:{ ok: 1, n: 1 }                                                                                                          
2015-09-24T11:52:29.830-0400 I EXECUTOR [main] command failed: ExceededTimeLimit Operation timed out                                                                                                               
2015-09-24T11:52:29.832-0400 I EXECUTOR [main] got command result: RemoteResponse --  cmd:{ waitedMS: 0, cursor: { id: 0, ns: "foo.bar", firstBatch: [ { _id: ObjectId('5601e2653fce5857f55913b3'), foo: 1 } ] }, \
ok: 1.0 }                                                                                                                                                                                                          
2015-09-24T11:52:29.833-0400 I -        [main]   going to run test: StressTest                                                                                                                                     
2015-09-24T11:52:29.833-0400 I EXECUTOR [main] Random seed is -8804958031892225279                                                                                                                                 
2015-09-24T11:52:29.833-0400 I EXECUTOR [main] Starting stress test...                                                                                                                                             
2015-09-24T11:52:29.837-0400 W EXECUTOR [thread1] Failed to close AsyncStream: Bad file descriptor                                                                                                                 
2015-09-24T11:52:29.838-0400 W EXECUTOR [thread1] Failed to close AsyncStream: Bad file descriptor                                                                                                                 
2015-09-24T11:52:29.838-0400 W EXECUTOR [thread1] Failed to close AsyncStream: Bad file descriptor                                                                                                                 
2015-09-24T11:52:29.838-0400 W EXECUTOR [thread1] Failed to close AsyncStream: Bad file descriptor                                                                                                                 
2015-09-24T11:52:29.839-0400 W EXECUTOR [thread1] Failed to close AsyncStream: Bad file descriptor                                                                                                                 
2015-09-24T11:52:29.839-0400 W EXECUTOR [thread1] Failed to close AsyncStream: Bad file descriptor                                                                                                                 
2015-09-24T11:52:29.839-0400 W EXECUTOR [thread1] Failed to close AsyncStream: Bad file descriptor                                                                                                                 
2015-09-24T11:52:29.839-0400 W EXECUTOR [thread1] Failed to close AsyncStream: Bad file descriptor                                                                                                                 
2015-09-24T11:52:29.840-0400 F -        [thread1] Invalid access at address: 0                                                                                                                                     
2015-09-24T11:52:29.853-0400 F -        [thread1] Got signal: 11 (Segmentation fault).                                                                                                                             



 Comments   
Comment by Githook User [ 24/Sep/15 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: SERVER-20611 only close async sockets if we successfully opened them
Branch: master
https://github.com/mongodb/mongo/commit/679d9e045986a26190080a2ce2281c9d49d476d0

Comment by Githook User [ 24/Sep/15 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: SERVER-20611 work around asio returning invalid tcp::resolver::iterator instances when file descriptors are exhausted
Branch: master
https://github.com/mongodb/mongo/commit/7bc2c3cbdba035ac4c834d7c45491b9836355bd0

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