summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
taeyoung [Thu, 30 Jun 2016 01:44:00 +0000 (10:44 +0900)]
sys-assert: apply registers for 64bit architecture
- The registers of 64 bit architecture are little bit different
with 32 bit architecture. Thus the operations to print
register information are separated according to the architectures.
Change-Id: I44077fa88f18c97e1ae84caa4998feef6408b9dc
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 23 Jun 2016 07:59:19 +0000 (16:59 +0900)]
sys-assert: enable sys-assert
- Now we can choose crash-pipe/crash-stack or sys-assert
to get callstacks
Change-Id: Ibb166c9206235cd7884aafd31fab008a8003236a
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Kunhoon Baik [Tue, 28 Jun 2016 12:16:29 +0000 (21:16 +0900)]
Disable New CallStack Generation
If new callstack generation issues are fixed, this feature will be re-enabled
Change-Id: I7619acc80444d1d1ba0695e148241345df70803e
Adrian Szyndela [Thu, 23 Jun 2016 08:15:02 +0000 (10:15 +0200)]
Use ptrace for unwinding also with DEBUG=1.
Additionally: made explicit libebl dependency in spec file.
Libebl backends are loaded with dlopen() by libelf.
Thus, rpm can't find the dependency automatically.
Change-Id: Ic0abe5d0eff701afb316f398b142fecb22029423
Signed-off-by: Adrian Szyndela <adrian.s@samsung.com>
Kunhoon Baik [Wed, 22 Jun 2016 15:47:01 +0000 (00:47 +0900)]
Make output although some operation fail
Although some operations (like generating callstack) failed during processing crash,
The crash output should be generated.
Change-Id: I797a5be407aa2a6cf9047fc84a9e28c4985fbcbe
Sunmin Lee [Fri, 17 Jun 2016 03:49:47 +0000 (12:49 +0900)]
crash-stack: Fix handle leak
Fix vulnerablility caused by handle leak of file.
Change-Id: I037f547633f1d7f074eb63a5dcad2d9b921bfc1a
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Kichan Kwon [Fri, 10 Jun 2016 01:18:01 +0000 (10:18 +0900)]
dump_systemstate : follow dlog backend checking method with newly patched dlog
Change-Id: I3a3a3b111804f81e8339a5632b7e70f332887b5e
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Taeyoung Kim [Thu, 19 May 2016 23:30:19 +0000 (08:30 +0900)]
license: add public domain license
- ArmStackUnwinding is added at src/crash-stack/wind/
which is from http://www.mcternan.me.uk/ArmStackUnwinding
This is Public Domain license codes, and thus
the license information is specified in spec file.
Change-Id: Iaa63c5cb076731090dfb79396e8e8f1e1a91fa43
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Adrian Szyndela [Thu, 28 Apr 2016 10:00:33 +0000 (12:00 +0200)]
Support for attaching with ptrace
Additionally:
* made it compiling on aarch64 and x86;
* removed CXX from CMakeLists.txt as it is no longer used.
Change-Id: Id2bdbd19ed864def580afb583b2c044af245fd2e
Karol Lewandowski [Tue, 12 Apr 2016 16:08:26 +0000 (18:08 +0200)]
crash-pipe: print symbolic information about errors
This commit brings back symbolic errors removed by commit
81321af5a ("common: remove thread unsafe function") which
eliminated strerror() usage.
Change-Id: I92ed531865dfb8a01f1f00aec32b418a9f4e4f33
Adrian Szyndela [Mon, 11 Apr 2016 10:32:31 +0000 (12:32 +0200)]
support for libelf 0.153 AND later up to 0.165
Change-Id: If3927cbb1438115c7de2397a11ea91be9b9329fe
Adrian Szyndela [Thu, 24 Mar 2016 11:56:12 +0000 (12:56 +0100)]
Added generic unwinding with libelf
It is meant to work at least in some basic way on x86, x86_64
and aarch64.
Change-Id: If6c5ebe7a1dc69a2d27188bbc6c9e1a87037ce98
Karol Lewandowski [Tue, 12 Apr 2016 15:56:17 +0000 (08:56 -0700)]
Merge "Prototype version of stack trace unwinder" into tizen
Karol Lewandowski [Tue, 12 Apr 2016 15:56:07 +0000 (08:56 -0700)]
Merge "Porting McTernan's unwinder to armv7l Tizen" into tizen
Karol Lewandowski [Tue, 12 Apr 2016 15:56:05 +0000 (08:56 -0700)]
Merge "Added sources of ARM Stack Unwinder by Michael McTernan" into tizen
Karol Lewandowski [Tue, 12 Apr 2016 15:56:01 +0000 (08:56 -0700)]
Merge "Added stub of crash-stack" into tizen
Taeyoung Kim [Mon, 4 Apr 2016 05:33:54 +0000 (14:33 +0900)]
path: change crash paths according to the Tizen policy
- tizen-platform-config defines the macro to store
coredumps and logs. Thus crash-worker also uses
the macro
Change-Id: Iabb96054742da9ac5c7bf3ff5d83bb0f37831ddc
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 24 Mar 2016 08:03:18 +0000 (17:03 +0900)]
common: remove thread unsafe function
Change-Id: Icdf26e6f8921dec7b884de8a25277d0d4e42b1fc
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Adrian Szyndela [Fri, 18 Mar 2016 08:50:45 +0000 (09:50 +0100)]
Prototype version of stack trace unwinder
Change-Id: I5ca7262aed2b2a7a3407864f23f25934653131b8
Adrian Szyndela [Fri, 18 Mar 2016 09:03:17 +0000 (10:03 +0100)]
Porting McTernan's unwinder to armv7l Tizen
- includes
- registers
- recognizing "Thumbness"
- support for 32-bit instructions
- support for newer ARM instructions
Change-Id: I2096e3bf2abcd9ceccd4b6614cd488947ba79e6d
Adrian Szyndela [Mon, 29 Feb 2016 12:15:59 +0000 (13:15 +0100)]
Added sources of ARM Stack Unwinder by Michael McTernan
Author: Michael.McTernan.2001@cs.bris.ac.uk
Change-Id: I84666ef71eac4582f29e28607f34e07c8167f4c5
Adrian Szyndela [Mon, 29 Feb 2016 11:26:58 +0000 (12:26 +0100)]
Added stub of crash-stack
Change-Id: Icd6a4c8c5508db7ec39af002939ec7829efbd68e
Taeyoung Kim [Mon, 21 Mar 2016 08:42:39 +0000 (17:42 +0900)]
common: fix resource leak and thread unsafe issues
Change-Id: I35dcde91a08c52665feccd6a843befa61182f64d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
pr.jung [Wed, 16 Mar 2016 09:26:16 +0000 (18:26 +0900)]
Remove thread unsafety function usages.
- readdir - > readdir_r
Change-Id: I742e48f190e1b77416fd6a71971faf2b27e2fd92
Signed-off-by: pr.jung <pr.jung@samsung.com>
Karol Lewandowski [Wed, 24 Feb 2016 16:45:15 +0000 (17:45 +0100)]
crash-manager.sh: remove systemd-journald usage
Change-Id: Ib4012e28105c28b170c407a037a779d033f2c631
Karol Lewandowski [Wed, 24 Feb 2016 15:39:03 +0000 (16:39 +0100)]
crash-pipe: Add basic information from /proc to report
Change-Id: I61601078c99463dad9cd5b76d07d8aee159d8863
Karol Lewandowski [Mon, 22 Feb 2016 17:11:30 +0000 (18:11 +0100)]
crash-pipe: Add utility to process core sent to stdin
This is going to be used as systemd-coredump replacement.
Change-Id: Ib7074ba5e10990d8487b1693a8c92431cdee6964
Taeyoung Kim [Mon, 29 Feb 2016 03:14:47 +0000 (19:14 -0800)]
Merge "path: change coredump path using changed policy" into tizen
Taeyoung Kim [Fri, 19 Feb 2016 07:53:41 +0000 (16:53 +0900)]
smack: change exec label of dump_systemstate to "System"
- Previously, the exec label of dump_systemstate is not set (default "_").
Thus reading vconf keys occurs smack deny issues.
- Now, the exec_label is changed to "System". Thus the smack deny issues
are fixed. Other operations except reading vconf keys are same.
Change-Id: Ifdf7c1c31aec77343e45775cea15b1f1a4a0853c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 17 Feb 2016 04:39:46 +0000 (13:39 +0900)]
path: change coredump path using changed policy
- Previously, coredump path was /opt/usr/share/crash.
TZ_SYS_SHARE was used to get the path /usr/share.
However, the definition of TZ_SYS_SHARE is changed
to /opt/share, and thus there is no need to add
/opt in front of the TZ_SYS_SHARE now.
Change-Id: Ib50fed4935135fa00bb3a07275da685de153dd7a
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Kichan Kwon [Tue, 12 Jan 2016 09:11:35 +0000 (18:11 +0900)]
dump_systemstate: modify checking dlog backend to adapt newly patched dlog
Change-Id: Ib2e615ed871cfc0b3578a7d3fc8523b45b953699
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Taeyoung Kim [Thu, 24 Dec 2015 03:04:48 +0000 (12:04 +0900)]
crash: change strcmp() to strncmp()
- overflow issues can be occurred by strcmp()
thus strcmp()s are changed to strncmp()
Change-Id: Icc1d3b22bffa56680f6d9b3e54c1661ffe75a8eb
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 18 Dec 2015 12:00:27 +0000 (21:00 +0900)]
crash: change path for dump to tmpfs
- When power is turned off during zipping coredump file,
the coredump files are remained even if target is rebooted.
- By changing the path to tmpfs, the dumps are removed
when power is turned off before completing makging dump.
Change-Id: I8718bee8777a3ce6977f07bc975cdce772f5b8ad
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 18 Dec 2015 10:48:29 +0000 (19:48 +0900)]
crash: remove temporary dump files during booting
- If power is turned off during making coredump file,
temporary dump files are stored in /var/lib/systemd/coredump.
The dump files cannot be used and their sizes are very large.
Thus they are removed from the path during booting.
- After reboot, previous coredummps are not necessary,
and coredumpctl is not working for them since there is
no information in journal. Thus they are removed form the
path during booting.
Change-Id: I6765da9474f4668d13a4563950b274b0871dcffb
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 16 Dec 2015 09:37:00 +0000 (18:37 +0900)]
dump_systemstate: check dlog backend by /etc/dlog_backend node
- If the backend of dlog is logger, dlogutil works well.
But if the backend of dlog is journal, dlogutil is not stopped
since it uses "journalctl -f" command. Thus dump_systemstate
is not stopped.
- Thus dump_systemstate checks the backend of dlog. If the backend
is journal, journalctl is used directly instead of dlogutil.
Change-Id: I654fc58ae47ab0777cf7e68e618cd3b9d9ae5a80
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 16 Dec 2015 00:44:23 +0000 (09:44 +0900)]
crash: change dump path to /opt/usr/share/crash
Change-Id: Ie4a7b17a85346d8e6ac023c604a1b41251b0d171
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Mon, 14 Dec 2015 07:38:33 +0000 (16:38 +0900)]
sysctl: update core_pattern by sysctl
- core_pattern should be updated by sysctl command
or conf file in /usr/lib/sysctl.d
- /usr/lib/sysctl.d/99-crash-manager.conf is used
to update the operation for crash situation
Change-Id: I075667349d30e88f64e4dc42168334cdf2f5a10f
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Mon, 14 Dec 2015 07:25:29 +0000 (16:25 +0900)]
common: change directory pathes to macros
- hard-coded directory pathes are exchanged to macros
Change-Id: I8bc295b816ef1e772358f5f60820895168e78be6
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Mon, 7 Dec 2015 08:30:13 +0000 (17:30 +0900)]
crash: zip crash informations to one file
- The size of dump file is very large. Thus zipping
is required to store the informations
Change-Id: I7672083386be8b7ade0dbf5e79d1155099c8026d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Mon, 7 Dec 2015 08:09:43 +0000 (17:09 +0900)]
crash: use journalctl if backend of dlog is journal
- If backend of dlog is journal, dlogutil will
be stopped and the crash-manager.sh is also held.
Thus journalctl is used after checking /dev/log_* file
Change-Id: I4720b2e6cb84c399e6a63ce1ab45f8d12c7e055b
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Mon, 7 Dec 2015 05:43:41 +0000 (14:43 +0900)]
crash: make crash info path to be changeable
- The crash info path of Platform is /opt/usr/share/crash/dump
- The path can be changed by manufacturer and thus the path
is defined in spec file.
Change-Id: I59039910d558b4cd292362efce1c232bd59991b8
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
taeyoung [Thu, 26 Nov 2015 09:37:14 +0000 (18:37 +0900)]
crash: add crash module to use coredumpctl
- For Tizen 2.4, Crash-manager and sys-assert are used
to getting crash information.
- For Tizen 3.0 coredumpctl is supported, and thus
coredumpctl is used to get information and store
coredump file.
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Jeonghoon Jeon [Thu, 27 Nov 2014 04:48:27 +0000 (20:48 -0800)]
Initial empty repository