~/talk

Examining applications that do not terminate on std::bad_alloc

Talkat CppCon 2016 · 2016-09-18..09-23· [software-architecture]
links:none on file
slides:none on file

Examines how over 300 open-source C++ projects explicitly handle std::bad_alloc, identifying the real causes of allocation failures (not always low memory) and cataloguing the concrete response strategies beyond immediate termination, using RAII-based resource handling as the framework for analysis.

AI-written summary · about

  1. 0:00Start
  2. 2:11Common wisdom
  3. 2:36What does "Out of memory" mean?
  4. 3:12The fork/exec problem
  5. 4:08Overcommit
  6. 5:24Bad allocation is not always OOM
  7. 6:59"One Bug To Rule Them All" (GSEC-TZO-44-2009 aka CVE-2009-1692)
  8. 8:43178 (46%) Somebody else's problem
  9. 10:46Somebody else's problem 16 (4%) Rethrow as-is
  10. 11:0782 (21%) Cleanup and terminate
  11. 16:3825 (69) Unit tests
  12. 17:27C++ OOM Case study: Office applications
  13. 18:25C++ OOM Case study: Web browsers
  14. 19:14C++ OOM Case study: Databases
  15. 20:12Handling allocation failure
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.