summaryrefslogtreecommitdiff
path: root/doc/backtrace.txt
blob: 951aa06aa6107df203d48e0ba86d8724cbce90ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ConnMan backtraces
******************

ConnMan dumps backtraces upon segmentation faults, bus errors and other
crashing signals. Regardless of the debug level you started connmand with, the
backtrace will be dumped to syslog.

The ConnMan backtraces start with the following line:
	++++++++ ConnMan backtrace ++++++++
and will try to display function names if those can be resolved from the stack
addresses. All static functions name will not appeared for example.

For a more complete and useful stack frame output you can use the
test/backtrace script. It takes the actual binary that crashed and the
connmand logs. The logs can contain any connman debug strings on top of the
backtrace.

Here is an example of the backtrace script usage:

me@localhost:[~]$ backtrace /sbin/connmand connman.log
-------- ConnMan backtrace --------
[0]: __connman_debug_list_available() [log.c:117]
[1]: connman_driver_register() [element.c:515]
[2]: __connman_driver_rescan() [element.c:490]
[3]: disable_technology() [manager.c:391]
[4]: generic_message() [object.c:262]
-----------------------------------