Opennet Firmware
olsrd_debug_sigsegv.patch
gehe zur Dokumentation dieser Datei
1Enable core dump on SIGSEGV. How to use:
2
3# ulimit -c unlimited
4# sysctl -w kernel.core_pattern=/tmp/%e.core
5# touch /.init_enable_core
6
7and wait for core dump of olsrd in /tmp/olsrd.core (920 KB) or use kill -11 on olsrd pid to test.
8
9Index: on_firmware/routing/olsrd/patches/024-debug-sigsegv.patch
10===================================================================
11--- /dev/null
12+++ on_firmware/routing/olsrd/patches/024-debug-sigsegv.patch
13@@ -0,0 +1,11 @@
14+--- a/src/main.c
15++++ b/src/main.c
16+@@ -761,7 +761,7 @@
17+ signal(SIGQUIT, olsr_shutdown);
18+ signal(SIGILL, olsr_shutdown);
19+ signal(SIGABRT, olsr_shutdown);
20+-#if defined(__linux__) && !defined(__ANDROID__)
21++#ifdef OLSR_HAVE_EXECINFO_H
22+ signal(SIGSEGV, olsr_segv_handler);
23+ #endif /* defined(__linux__) && !defined(__ANDROID__) */
24+ signal(SIGTERM, olsr_shutdown);