[CDRIVER-4627] Fix possible crash if insufficient memory for performance counters Created: 26/Apr/23 Updated: 28/Oct/23 Resolved: 09/May/23 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.23.5 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Kevin Albertson | Assignee: | Kevin Albertson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Tracks: https://github.com/mongodb/mongo-c-driver/pull/1244 |
| Comments |
| Comment by Githook User [ 09/May/23 ] |
|
Author: {'name': 'Romain Geissler @ Amadeus', 'email': 'romain.geissler@amadeus.com', 'username': 'Romain-Geissler-1A'}Message: Avoids an unexpected crash with SIGBUS when trying to allocate a /dev/shm shared memory but there is not enough memory. Indeed ftruncate doesn't ensure memory is properly allocated, it ony Instead, make sure we can allocate the whole shared memory using The chromium project faced a similar issue in the past: |
| Comment by Githook User [ 09/May/23 ] |
|
Author: {'name': 'Romain Geissler @ Amadeus', 'email': 'romain.geissler@amadeus.com', 'username': 'Romain-Geissler-1A'}Message: Avoids an unexpected crash with SIGBUS when trying to allocate a /dev/shm shared memory but there is not enough memory. Indeed ftruncate doesn't ensure memory is properly allocated, it ony Instead, make sure we can allocate the whole shared memory using The chromium project faced a similar issue in the past: |