You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update thread_safety_checking.cpp to use Standard Library types
* Remove MinGW runs due to boostorg/system#116
* Delete the shared memory example sources
Copy file name to clipboardExpand all lines: doc/stacktrace.qbk
-37Lines changed: 0 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -295,43 +295,6 @@ Terminate called:
295
295
296
296
[endsect]
297
297
298
-
[/
299
-
[section Store stacktraces into shared memory]
300
-
301
-
There's a way to serialize stacktrace in async safe manner and share that serialized representation with another process. Here's another example with signal handlers.
302
-
303
-
This example is very close to the [link stacktrace.getting_started.handle_terminates_aborts_and_seg "Handle terminates, aborts and Segmentation Faults"], but this time we are dumping stacktrace into shared memory:
304
-
305
-
[getting_started_terminate_handlers_shmem]
306
-
307
-
After registering signal handlers and catching a signal, we may print stacktrace dumps on program restart:
308
-
309
-
[getting_started_on_program_restart_shmem]
310
-
311
-
The program output will be the following:
312
-
313
-
```
314
-
Previous run crashed and left trace in shared memory:
315
-
0# 0x00007FD51C7218EF
316
-
1# my_signal_handler2(int) at ../example/terminate_handler.cpp:68
317
-
2# 0x00007FD51B833CB0
318
-
3# 0x00007FD51B833C37
319
-
4# 0x00007FD51B837028
320
-
5# 0x00007FD51BE44BBD
321
-
6# 0x00007FD51BE42B96
322
-
7# 0x00007FD51BE42BE1
323
-
8# bar(int) at ../example/terminate_handler.cpp:18
324
-
9# foo(int) at ../example/terminate_handler.cpp:22
325
-
10# bar(int) at ../example/terminate_handler.cpp:14
326
-
11# foo(int) at ../example/terminate_handler.cpp:22
327
-
12# run_3(char const**) at ../example/terminate_handler.cpp:152
0 commit comments