platform/core/system/crash-worker.git
3 years agoAdd information about the need to manually add a privilege 83/251683/3
Mateusz Moscicki [Mon, 18 Jan 2021 10:26:38 +0000 (11:26 +0100)]
Add information about the need to manually add a privilege

Change-Id: I9832f5fb566e183e414e1fc0f27d3275f2931aa8

3 years agoRelease 6.5.5 23/251523/1 submit/tizen/20210114.150700
Mateusz Moscicki [Thu, 14 Jan 2021 14:12:40 +0000 (15:12 +0100)]
Release 6.5.5

Change-Id: I78053a4c9608f279cb0f71daf72740bd54103943

3 years agoFix dbus policy for livedump_pid 15/251515/1
Mateusz Moscicki [Thu, 14 Jan 2021 13:25:26 +0000 (14:25 +0100)]
Fix dbus policy for livedump_pid

Change-Id: I4ed60496efefc70ef2b8fb2b8590e4f430e016cb

3 years agoRelease 6.5.4 66/250166/1 accepted/tizen/unified/20201222.122551 submit/tizen/20201221.105823
Mateusz Moscicki [Mon, 21 Dec 2020 10:52:43 +0000 (11:52 +0100)]
Release 6.5.4

Change-Id: Ice6551ac00608f994627d5f5c85a3f15457bc17d

3 years agofilename change from "corrupted_cmdline" to "nonascii_cmdline" 45/250145/1
Kunhoon Baik [Sat, 19 Dec 2020 23:46:27 +0000 (08:46 +0900)]
filename change from "corrupted_cmdline" to "nonascii_cmdline"

isgraph cannot check cmdline with unicode.
Thus, it will be better to change to nonascii_cmdline

Change-Id: I60c166512cc0c7cb766d0223f71b336403aa644b

3 years agoRelease 6.5.3 73/250073/1 accepted/tizen/unified/20201220.221656 submit/tizen/20201218.151137
Karol Lewandowski [Fri, 18 Dec 2020 13:08:58 +0000 (14:08 +0100)]
Release 6.5.3

This release introduces cmdline santizing, to avoid creating reports
with 'strange' characters in name (as it's based on cmdline).

Change-Id: I2eb83c0ceb391608db9388115260b9464ecb9c90

3 years agocrash-manager: Santize cmd_line early 65/250065/2
Karol Lewandowski [Fri, 18 Dec 2020 11:24:18 +0000 (12:24 +0100)]
crash-manager: Santize cmd_line early

There is no value in passing cmd_line that is potentially corrupted.

Previously, we wanted to share original cmdline value via dbus-notify
but this no longer seems correct as we have to replace cmd_line
completely when it contains invalid/non-printable characters.

This patch changes behaviour so that santized cmd_line is available
universally via cinfo->cmd_line.

Change-Id: I9a54781614d89c6abb89ef0c0755d8a23a26f55d

3 years agocrash-manager: Create reports with `corrupted_process' prefix when cmdline is corrupted 42/250042/3
Karol Lewandowski [Fri, 18 Dec 2020 10:09:21 +0000 (11:09 +0100)]
crash-manager: Create reports with `corrupted_process' prefix when cmdline is corrupted

Change-Id: I62cd86e70d4d1e347bdadd4d2a2a4fcb448b88d4

3 years agoRelease 6.5.2 38/249938/1 submit/tizen/20201217.120803 submit/tizen/20201218.113325
Mateusz Moscicki [Thu, 17 Dec 2020 11:19:50 +0000 (12:19 +0100)]
Release 6.5.2

Change-Id: Ib9fea66140376d0e4b0a0fe6b93b02b639aa8229

3 years agoFix SVACE warnings 37/249937/1
Mateusz Moscicki [Thu, 17 Dec 2020 11:12:27 +0000 (12:12 +0100)]
Fix SVACE warnings

Change-Id: I7ef2563bee2bf1690b2a38554cc15bf0e10f92fc

3 years agoFix null dereferences 47/249147/2
Michal Bloch [Mon, 7 Dec 2020 21:16:07 +0000 (22:16 +0100)]
Fix null dereferences

Change-Id: Id23b9aaad60752f797783f9ccc6f9bbfa9357941
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
3 years agoRelease 6.5.1 01/247401/1 accepted/tizen/unified/20201116.130510 submit/tizen/20201110.125218
Mateusz Moscicki [Tue, 10 Nov 2020 10:25:20 +0000 (11:25 +0100)]
Release 6.5.1

Change-Id: I9e72706205c738df27cdc73de7b46797e5157018

3 years agoRelease 6.0.25 96/247296/1 submit/tizen/20201109.141343
Mateusz Moscicki [Mon, 9 Nov 2020 13:46:45 +0000 (14:46 +0100)]
Release 6.0.25

Change-Id: Id7d2a7d722ce8b0ee94fc1bf5db390ba52928cc3

3 years agoAdd a SHA1 hashsum to the so_info file 30/246730/5
Mateusz Moscicki [Tue, 3 Nov 2020 11:38:41 +0000 (12:38 +0100)]
Add a SHA1 hashsum to the so_info file

Change-Id: I2508c06f58a9385973511e86737aa6b146fe2de9

3 years agoAdd VCS to the so_info file 29/246729/4
Mateusz Moscicki [Tue, 3 Nov 2020 10:09:15 +0000 (11:09 +0100)]
Add VCS to the so_info file

VCS is read from the rpm database

Change-Id: Ie8359f1ea91bdff9c77517b8d709334ec0e6226e

3 years agoRelease 6.0.24 32/246232/1 accepted/tizen/unified/20201029.124810 submit/tizen/20201027.094710 submit/tizen/20201028.112512
Mateusz Moscicki [Tue, 27 Oct 2020 07:07:04 +0000 (08:07 +0100)]
Release 6.0.24

Change-Id: Ibdd55db0abcde2a91ea08a40dca96200dfede63d

3 years agoUpdate the crash-manager upgrade script 82/246182/2
Mateusz Moscicki [Mon, 26 Oct 2020 11:01:42 +0000 (12:01 +0100)]
Update the crash-manager upgrade script

Change-Id: Ibd9fe951012a828a29038f1ed06c797f4fbecb19

3 years agoFix dbus_notify system test and return the result of tests 00/245700/3
Mateusz Moscicki [Wed, 14 Oct 2020 08:49:29 +0000 (10:49 +0200)]
Fix dbus_notify system test and return the result of tests

Change-Id: I1fa460e024bcb7eeba0c9bdde42903edb91dd8a4

3 years agoAdd a NULL check 99/245999/1
Michal Bloch [Thu, 15 Oct 2020 13:57:43 +0000 (15:57 +0200)]
Add a NULL check

Change-Id: Idf5ef8e27e110fbe2705a647c9de77e3d8a953c0
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
3 years agoFix incorrect variable qualification 74/245774/1
Michal Bloch [Wed, 7 Oct 2020 11:13:49 +0000 (13:13 +0200)]
Fix incorrect variable qualification

Change-Id: Icf878243cbc7dbd89ac261d9c55108296738d7fc

3 years agoMerge "Use machine-friendly syntax" into tizen
Michal Bloch [Thu, 15 Oct 2020 13:08:36 +0000 (13:08 +0000)]
Merge "Use machine-friendly syntax" into tizen

3 years agoFix some file descriptor leaks 41/245141/1
Michal Bloch [Fri, 2 Oct 2020 17:04:45 +0000 (19:04 +0200)]
Fix some file descriptor leaks

Change-Id: I1bb8cc2580ca208cc8387a84528d9a60e6909cd3

3 years agoUse machine-friendly syntax 39/245139/1
Michal Bloch [Fri, 2 Oct 2020 16:48:01 +0000 (18:48 +0200)]
Use machine-friendly syntax

Various tools (compiler, static analysis) might see better with this one.

Change-Id: I6567c41ca6c69cb026771ce7e7a802efb578d2f9

3 years agoDrop elfutils remains 25/245125/2
Karol Lewandowski [Fri, 2 Oct 2020 10:26:05 +0000 (12:26 +0200)]
Drop elfutils remains

These were not used anyway since own parser has been deployed.

Change-Id: I7c961ea8dd05059944f2a6dcae4ae63c305a8b18

3 years agoRelease 6.0.23 30/244130/1 accepted/tizen/unified/20200916.121724 submit/tizen/20200915.074635
Mateusz Moscicki [Tue, 15 Sep 2020 07:25:42 +0000 (09:25 +0200)]
Release 6.0.23

Change-Id: Ie93e2adbab1653ce14e3ac77e3a98afe3e7591ec

3 years agoFix coverity issue - untrusted divisor 29/244129/1
Mateusz Moscicki [Tue, 15 Sep 2020 06:26:08 +0000 (08:26 +0200)]
Fix coverity issue - untrusted divisor

Change-Id: I85689dc3753e24ebec6ab88cd6e0e39f57cce442

3 years agoRelease 6.0.22 22/243622/2 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.115410 accepted/tizen/6.0/unified/hotfix/20201103.004045 accepted/tizen/unified/20200916.121802 submit/tizen/20200908.125226 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
Mateusz Moscicki [Tue, 8 Sep 2020 12:33:46 +0000 (14:33 +0200)]
Release 6.0.22

Change-Id: If8974ef1ca38a83fea8e571e3058e12af7c03d96

3 years agoCalculate the call stack hash sum 79/231379/10
Mateusz Moscicki [Tue, 21 Apr 2020 11:30:03 +0000 (13:30 +0200)]
Calculate the call stack hash sum

The hash is used to identify crash reports that contain the same call
stack.

Change-Id: Ib08e6775d3f3c671b660d92449de78c0d3bb74ec

3 years agoRelease 6.0.21 72/243172/1 submit/tizen/20200903.132908
Mateusz Moscicki [Thu, 3 Sep 2020 13:17:50 +0000 (15:17 +0200)]
Release 6.0.21

Change-Id: I394cebd522fec96a52207f26869850ec18fcb595

3 years agoFix printing the callstack in case the module name cannot be found 61/243161/1
Mateusz Moscicki [Thu, 3 Sep 2020 11:04:50 +0000 (13:04 +0200)]
Fix printing the callstack in case the module name cannot be found

Change-Id: Ie077c4a53467996d63a71ba8cfe6f58331a4ff16

3 years agoFix building on x86 95/241895/1 accepted/tizen/unified/20200824.030009 submit/tizen/20200820.145124
Mateusz Moscicki [Thu, 20 Aug 2020 14:11:16 +0000 (16:11 +0200)]
Fix building on x86

Change-Id: I99a1b7ad017c5f745cf2304a333d1f130c251586

3 years agoRelease 6.0.20 28/241128/2 submit/tizen/20200820.132715
Mateusz Moscicki [Mon, 17 Aug 2020 16:39:00 +0000 (18:39 +0200)]
Release 6.0.20

Change-Id: I73f6b4b1b66b4a3a37689759c1c568c742698676

3 years agocrash-manager: Change Smack lablel to System::Privileged 66/241366/2
Karol Lewandowski [Wed, 19 Aug 2020 10:48:49 +0000 (12:48 +0200)]
crash-manager: Change Smack lablel to System::Privileged

This partially reverts 8e2f5635896 ("Adjust smack label").

The System::Privileged label is needed again because on
newer kernels (>= 4.20) it's not possible to read/ptrace
processes listed in onlycap set.  Practically, that meant
that many of Tizen processes were not able to generate
coredump properly.

Change-Id: Ifcdeceb88cede67a0d8192474698addfc9aa338b

3 years agoMove crash-worker tests to the /usr/libexec directory 26/241126/2
Mateusz Moscicki [Mon, 17 Aug 2020 10:34:46 +0000 (12:34 +0200)]
Move crash-worker tests to the /usr/libexec directory

Change-Id: Ib4daa77836316318e612740871e4de982d5357cd

3 years agoFix building on aarch64, after changing the ELF parser. 23/241123/3
Mateusz Moscicki [Thu, 13 Aug 2020 15:06:55 +0000 (17:06 +0200)]
Fix building on aarch64, after changing the ELF parser.

Change-Id: I41557a2149ca4b6c5d89ab16a89199d1cdf33170

3 years agoRead ESP and EIP from registers instead of /proc/<pid>/stat 22/241122/3
Karol Lewandowski [Fri, 31 Jul 2020 10:03:07 +0000 (12:03 +0200)]
Read ESP and EIP from registers instead of /proc/<pid>/stat

Since linux kernel commit 0a1eb2d474edfe75466be6b4677ad84e5e8ca3f5,
/proc/<pid>/stat reports EIP and ESP values only if the process is core
dumping. So for livedumper to work, these values must be read by
ptrace().

Change-Id: Ie748e694fc1ae30841c2fbb709fbd9abe67185ba

3 years agocrash-manager: Always emit new style ProcessCrashedEx 75/240975/2
Karol Lewandowski [Thu, 13 Aug 2020 07:24:03 +0000 (09:24 +0200)]
crash-manager: Always emit new style ProcessCrashedEx

ProcessCrashed signature varies between Tizen forks, so introduce
ProcessCrashedEx which does not have this problem.

Change-Id: I4cf3f2327690d6bedb6d39dc85ca96487e859acb

3 years agoCheck for existence of the ExtraScript 95/239995/2
Karol Lewandowski [Fri, 31 Jul 2020 10:03:07 +0000 (12:03 +0200)]
Check for existence of the ExtraScript

In the case where ExtraScript points to non-existent script, the crash worker
will create child process which will remain zombie until it's reaped.  The
reaping is handled after dump_systemstate finishes.  This will cause zombie
process to exist for duration of dump_systemstate execution.

This change prevents creating child process if ExtraScripts points to path
which is not executable.

Change-Id: I4caba47812b6990e9b5b54fe9929930cc667f4eb

3 years agoAdd crash-service part of the diagnostic API 28/229228/9
Mateusz Moscicki [Wed, 18 Mar 2020 11:07:45 +0000 (12:07 +0100)]
Add crash-service part of the diagnostic API

Change-Id: I869ebed29b6657a2227fae407079c643819a551b

3 years agoChange the way ELF file are parsed 00/237600/9
Mateusz Moscicki [Tue, 30 Jun 2020 08:47:26 +0000 (10:47 +0200)]
Change the way ELF file are parsed

Change-Id: I737ec17f8a5a6e71efe24f7f44ad1e08775d24b7

3 years agoAdd an ELF file parser 98/238798/2
Mateusz Moscicki [Fri, 17 Jul 2020 09:28:03 +0000 (11:28 +0200)]
Add an ELF file parser

Change-Id: Ib71d0de73a6dde20f5ccfca1a8b8f0d4e283a19a

3 years agoRelease 6.0.19 72/238372/1 accepted/tizen/unified/20200716.144637 submit/tizen/20200713.084237
Mateusz Moscicki [Mon, 13 Jul 2020 06:01:07 +0000 (08:01 +0200)]
Release 6.0.19

The most important change in this release is the addition of the INFO
report in JSON format (*.info.json)

Change-Id: I5372c7eff95940241365abe8beacb6dfc71245a7

3 years agoChange the function signature to a more universal one 27/229227/6
Mateusz Moscicki [Tue, 24 Mar 2020 09:16:52 +0000 (10:16 +0100)]
Change the function signature to a more universal one

Change-Id: I3fea24d1448ffba3d6ff24e7c2090e6d7e0565e0

3 years agoAdd tool to convert info.json report 01/237601/6
Mateusz Moscicki [Fri, 26 Jun 2020 13:29:40 +0000 (15:29 +0200)]
Add tool to convert info.json report

Change-Id: I4c10ef5880ae919c8b4bf7a8167344db6f8ed2c7

3 years agoAdd report file in JSON format 18/236718/9
Mateusz Moscicki [Thu, 18 Jun 2020 13:47:20 +0000 (15:47 +0200)]
Add report file in JSON format

Change-Id: Ie61fcf83ebd6c8dd536e54e4206094d2d3b94d67

3 years agoSimplifies the printing of registers 17/236717/2
Mateusz Moscicki [Thu, 18 Jun 2020 13:46:06 +0000 (15:46 +0200)]
Simplifies the printing of registers

Change-Id: Ibf6b17258bbb6e108f896db5ca3f4b50db7dde36

3 years agoChange getpwnam to getpwnam_r 25/235425/2
Mateusz Moscicki [Thu, 4 Jun 2020 10:16:45 +0000 (12:16 +0200)]
Change getpwnam to getpwnam_r

Change-Id: I1876f1f16d205698f3385cf472505bcab83de88e

3 years agoFix memory leak 18/235318/1
Mateusz Moscicki [Wed, 3 Jun 2020 08:32:07 +0000 (10:32 +0200)]
Fix memory leak

Change-Id: I472d42d4f486bcad970b52d881c295edd8ec2d49

4 years agoRelease 6.0.18 37/234237/3 accepted/tizen/unified/20200602.133237 submit/tizen/20200601.114633 submit/tizen/20200601.141752
Mateusz Moscicki [Fri, 22 May 2020 14:30:16 +0000 (16:30 +0200)]
Release 6.0.18

This release brings option that allows to specify whether the process is
to be released as soon as all the necessary data has been read or only
after the entire report has been created.

Change-Id: Icb2cab7884966505a26c97aa86745721252b6bb7

4 years agoFix 'full_core' system test 92/234992/1
Mateusz Moscicki [Tue, 26 May 2020 12:59:31 +0000 (14:59 +0200)]
Fix 'full_core' system test

Change-Id: I9bd5831f134141546fe435b9042b87a13ed39c1b

4 years agoAdd option to release the crashed process as soon as possible 96/234096/6
Mateusz Moscicki [Thu, 21 May 2020 09:28:12 +0000 (11:28 +0200)]
Add option to release the crashed process as soon as possible

Change-Id: Idd951c4b8c50ba1e29524339358475acdbacd382

4 years agoMerge "Read the /proc/<PID>/comm earlier" into tizen
Karol Lewandowski [Fri, 22 May 2020 14:12:03 +0000 (14:12 +0000)]
Merge "Read the /proc/<PID>/comm earlier" into tizen

4 years agoRead the /proc/<PID>/comm earlier 95/234095/2
Mateusz Moscicki [Thu, 21 May 2020 10:55:24 +0000 (12:55 +0200)]
Read the /proc/<PID>/comm earlier

Change-Id: Ied692bc4e770c9aa3b8f03f7a2515214bc40cb63

4 years agoClarify logs related to coredump handling 77/234077/2
Karol Lewandowski [Thu, 21 May 2020 10:48:30 +0000 (12:48 +0200)]
Clarify logs related to coredump handling

The coredump should not be created when minicoredumper (-s) works
correctly.  Make this clear in code and logs.

Change-Id: I2e4e160a46ac4be25143f310ffc336b121530cc8

4 years agoRelease 6.0.17 91/232591/1 accepted/tizen/unified/20200510.220332 submit/tizen/20200506.154637 submit/tizen/20200507.084828
Mateusz Moscicki [Wed, 6 May 2020 15:11:51 +0000 (17:11 +0200)]
Release 6.0.17

This release brings fixes

Change-Id: Iebcb0ec695edf3c589507c9d9a667fac5bb8cab7

4 years agoFix: app ids repeats in app's manifest xmls search logic 86/232586/7
Wiktor Gerstenstein [Wed, 6 May 2020 13:09:27 +0000 (15:09 +0200)]
Fix: app ids repeats in app's manifest xmls search logic

Change-Id: I3fe0ca9cfef80077c9d3abb40fb439fc0bb87203

4 years agoFix Coverity issue 87/232587/1
Mateusz Moscicki [Wed, 6 May 2020 10:52:36 +0000 (12:52 +0200)]
Fix Coverity issue

dirname() could return pointer to the local variable

Change-Id: I886df1d2abf73d49f20c11e7ed5eef4595d1c6c5

4 years agoCheck if the file operation failed by lack of disk space 63/232463/3
Mateusz Moscicki [Tue, 5 May 2020 15:41:39 +0000 (17:41 +0200)]
Check if the file operation failed by lack of disk space

Change-Id: I3921e4631d9d2a84110af0681777bae15e62cfbc

4 years agoMerge "Returns unique file paths from the maps file" into tizen
Karol Lewandowski [Tue, 5 May 2020 19:36:57 +0000 (19:36 +0000)]
Merge "Returns unique file paths from the maps file" into tizen

4 years agoReturns unique file paths from the maps file 50/232450/1
Mateusz Moscicki [Tue, 5 May 2020 08:01:23 +0000 (10:01 +0200)]
Returns unique file paths from the maps file

This prevents duplicate entries in the *.so_info file

Change-Id: I49c4d4949d4d0075b056891557fe027d82b017a0

4 years agoRelease 6.0.16 17/232317/1 submit/tizen/20200430.145229
Mateusz Moscicki [Thu, 30 Apr 2020 13:17:48 +0000 (15:17 +0200)]
Release 6.0.16

This release brings following changes:
 - Include packages in the *.so_info file that are associated with
   *.ni.dll
 - Copy application manifest xml

Change-Id: I12bf5e8e227f04e4d6b4714abe56c9944c508545

4 years agoAdd app's manifest xmls search logic 50/232150/10
Wiktor Gerstenstein [Tue, 28 Apr 2020 16:55:49 +0000 (18:55 +0200)]
Add app's manifest xmls search logic

Change-Id: I585cdc6e395efda52390c6059989d4da6afe5edb

4 years agoInclude packages in so_info file that are associated with *.ni.dll 61/231561/3
Mateusz Moscicki [Wed, 22 Apr 2020 10:04:25 +0000 (12:04 +0200)]
Include packages in so_info file that are associated with *.ni.dll

Change-Id: I114a866da9fc70915b616b39869d23cb9e7f22c7

4 years agoRemove duplicate g_object_unref 13/231513/2
INSUN PYO [Wed, 22 Apr 2020 07:39:39 +0000 (16:39 +0900)]
Remove duplicate g_object_unref

Reference:
 https://developer.gnome.org/gio/stable/GDBusConnection.html#g-dbus-connection-call-sync
 If the parameters GVariant is floating, it is consumed. This allows convenient 'inline' use of g_variant_new(), e.g.:

Change-Id: Icacb1a3e8d738a990fa498815bbadfe72bdf2349

4 years agoRelease 6.0.15 03/231003/1 accepted/tizen/unified/20200419.223914 submit/tizen/20200416.123008
Karol Lewandowski [Thu, 16 Apr 2020 11:36:07 +0000 (13:36 +0200)]
Release 6.0.15

This release brings following changes:
 - tizen-manifest.xml is included in report for tizen applications
 - unused temporary directories are cleaned up when creating new reports
 - shared object info is properly collected for binaries without build id

Change-Id: I955a6296b5fd422d66344c0a8bbda6fba75360db

4 years agoUse bool instead of int in remove.*() functions 38/230838/3
Mateusz Moscicki [Tue, 14 Apr 2020 11:36:19 +0000 (13:36 +0200)]
Use bool instead of int in remove.*() functions

In the modified places the int type was used as a bool, so the function
signatures were changed.

Change-Id: Ic172432c33c06d40c1f71ca8137606d7ea102acf

4 years agoMove unlocking and removing of the temp dir to a separate function 37/230837/2
Mateusz Moscicki [Tue, 14 Apr 2020 09:55:41 +0000 (11:55 +0200)]
Move unlocking and removing of the temp dir to a separate function

Change-Id: If38fcfda5737e8d39cb496692ca663e2a3d7c6a2

4 years agoAdd locking and cleaning temporary directory 63/230063/5
Mateusz Moscicki [Fri, 3 Apr 2020 13:42:39 +0000 (15:42 +0200)]
Add locking and cleaning temporary directory

This commit solves the problem of leaving many temporary directories
that were not deleted if the crash-worker has not finished working
properly.

Change-Id: I415403a2531b6e41ebf20a3b185790d9e21a8ca3

4 years agoFix report_basic test 65/230065/5
Mateusz Moscicki [Tue, 7 Apr 2020 08:30:24 +0000 (10:30 +0200)]
Fix report_basic test

Add a delay to m ake sure that crash-manager has the time to run

Change-Id: I26fd47126d1d8b14ed8da6547f88275e2cbba116

4 years agoFix libcrash-service test 64/230064/5
Mateusz Moscicki [Tue, 7 Apr 2020 08:06:06 +0000 (10:06 +0200)]
Fix libcrash-service test

Because of second trap, core_pattern didn't have the correct value
restored

Change-Id: I71c6f2c401c293769caa816fe2e767b30578d7b6

4 years agocrash-manager: Clarify when tizen-manifest.xml is copied 18/230218/2
Karol Lewandowski [Wed, 8 Apr 2020 14:33:50 +0000 (16:33 +0200)]
crash-manager: Clarify when tizen-manifest.xml is copied

Change-Id: Iba48fc54f9809c077b5ebc0fbe8463186abd767e

4 years agocrash-manager: Fix free of invalid pointer returned by dirname() 17/230217/2
Karol Lewandowski [Wed, 8 Apr 2020 14:33:18 +0000 (16:33 +0200)]
crash-manager: Fix free of invalid pointer returned by dirname()

This fixes SVACE issue (overwriting dst_dirpath pointer by dirname(3)
result, which should not be freed).

Change-Id: Iad2ed92c6111f8133e3c6363876ff3fad80557f3

4 years agoMerge "Add tizen-manifest.xml to crash-reports" into tizen
Karol Lewandowski [Wed, 8 Apr 2020 13:02:40 +0000 (13:02 +0000)]
Merge "Add tizen-manifest.xml to crash-reports" into tizen

4 years agoFix build id reading when the binary don't have it 56/230056/1
Mateusz Moscicki [Tue, 7 Apr 2020 11:27:12 +0000 (13:27 +0200)]
Fix build id reading when the binary don't have it

Change-Id: I82db306cad980104e096e8b738db24fc5e3547bb

4 years agoAdd tizen-manifest.xml to crash-reports 03/225403/23
Wiktor Gerstenstein [Wed, 19 Feb 2020 16:37:21 +0000 (17:37 +0100)]
Add tizen-manifest.xml to crash-reports

Change-Id: I6fc7f723ad33cd825e2c5f85b42c7b134a0f1f8b

4 years agoRelease 6.0.14 48/229648/3 accepted/tizen/unified/20200403.153141 submit/tizen/20200402.130550
Karol Lewandowski [Thu, 2 Apr 2020 11:40:03 +0000 (13:40 +0200)]
Release 6.0.14

This release brings /opt/usr reporting to dump_systemstate utility.

Change-Id: I1aada1d58681272703b7c64181d0c7aceccc3d84

4 years agodump_systemstate: report ran command faithfully 52/229652/2
Michal Bloch [Thu, 2 Apr 2020 12:14:45 +0000 (14:14 +0200)]
dump_systemstate: report ran command faithfully

Change-Id: Id4b830804ae420b60a7250c220a56a5695f80cff
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoMerge "dump_systemstate: Add /opt/usr disk usage section" into tizen
Karol Lewandowski [Thu, 2 Apr 2020 13:02:37 +0000 (13:02 +0000)]
Merge "dump_systemstate: Add /opt/usr disk usage section" into tizen

4 years agoMerge "dump_systemstate: Use compile-time parameter check in get_disk_used_percent...
Karol Lewandowski [Thu, 2 Apr 2020 12:59:48 +0000 (12:59 +0000)]
Merge "dump_systemstate: Use compile-time parameter check in get_disk_used_percent()" into tizen

4 years agoMerge "Fix cmp_backtraces test" into tizen
Karol Lewandowski [Thu, 2 Apr 2020 12:58:04 +0000 (12:58 +0000)]
Merge "Fix cmp_backtraces test" into tizen

4 years agoMerge "packaging: remove libebl dependency" into tizen
Karol Lewandowski [Thu, 2 Apr 2020 12:49:38 +0000 (12:49 +0000)]
Merge "packaging: remove libebl dependency" into tizen

4 years agoFix cmp_backtraces test 66/228966/2
Mateusz Moscicki [Thu, 26 Mar 2020 13:23:28 +0000 (14:23 +0100)]
Fix cmp_backtraces test

Change-Id: Ia628adfb80a4945d34e9847e864c903106dba3e6

4 years agodump_systemstate: Add /opt/usr disk usage section 47/229647/3
Karol Lewandowski [Thu, 2 Apr 2020 11:37:03 +0000 (13:37 +0200)]
dump_systemstate: Add /opt/usr disk usage section

Change-Id: Ib52cba397f7272c14dcb7623efc85535d4d98d8e

4 years agodump_systemstate: Use compile-time parameter check in get_disk_used_percent() 46/229646/3
Karol Lewandowski [Thu, 2 Apr 2020 11:32:36 +0000 (13:32 +0200)]
dump_systemstate: Use compile-time parameter check in get_disk_used_percent()

Guard functions with assert as it's programming error to invoke
it with null path.

Change-Id: I3a312f90c0553c1dd9e9233551c0d42b89c260f7

4 years agodump_systemstate: Also list files when reporting /tmp disk usage 45/229645/1
Karol Lewandowski [Thu, 2 Apr 2020 08:55:30 +0000 (10:55 +0200)]
dump_systemstate: Also list files when reporting /tmp disk usage

Change-Id: I0ea99ca0a05a7d620a4462d6dc44257aa6e4bee0

4 years agopackaging: remove libebl dependency 41/229241/1
Dongkyun Son [Mon, 30 Mar 2020 12:23:37 +0000 (21:23 +0900)]
packaging: remove libebl dependency

libebl is not needed anymore.

Change-Id: If88fa16b361c70c9155e5240a03cbede3e235074
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
4 years agoRelease 6.0.13 66/228366/1 accepted/tizen/unified/20200321.043827 submit/tizen/20200320.153607
Karol Lewandowski [Fri, 20 Mar 2020 15:12:50 +0000 (16:12 +0100)]
Release 6.0.13

This release introduces ability to disable creation of .so_info files.

Change-Id: I6bbc308e0d15b1872e43fd5c5f89142d76b9943d

4 years agosystem tests: Sort entries 04/228204/1
Karol Lewandowski [Thu, 19 Mar 2020 14:31:38 +0000 (15:31 +0100)]
system tests: Sort entries

Change-Id: I8b5fea6bcd1a9cc50b9efdf96820b444a96d534f

4 years agoAllow disabling so_info generation via config file 03/228203/1
Karol Lewandowski [Thu, 19 Mar 2020 14:06:45 +0000 (15:06 +0100)]
Allow disabling so_info generation via config file

Change-Id: I89d3b687225a7a85498344c9dd84c17ba4f3e33b

4 years agoRelease 6.0.12 53/227553/1 accepted/tizen/unified/20200315.214856 submit/tizen/20200313.115636
Karol Lewandowski [Thu, 12 Mar 2020 12:34:30 +0000 (13:34 +0100)]
Release 6.0.12

Notable features & changes:

 - dump_systemstate: move information about most of the programs to config files
 - dump_systemstate: add cmdflag= and order= support
 - crash-manager, service: add information about C# libraries to package info file (.so_info)
 - whole codebase: reduce default log level to INFO
 - drop separate spec for system-tests

Change-Id: If47fc36e26954309a2c18262f32a69053bab2eb3

4 years agodump_systemstate: Allow passing arbitrary flags for cmdflag= usage 87/227387/3
Karol Lewandowski [Wed, 11 Mar 2020 12:45:37 +0000 (13:45 +0100)]
dump_systemstate: Allow passing arbitrary flags for cmdflag= usage

Change-Id: I0099e5248f5665af41dbbc22ef17932213f68abd

4 years agoSave in the *.so_info records related to C# DLL files. 46/226546/9
Mateusz Moscicki [Tue, 3 Mar 2020 13:14:34 +0000 (14:14 +0100)]
Save in the *.so_info records related to C# DLL files.

Change-Id: Ibee68bec0fdf3ae07c64b1240093269ce51ec6a6

4 years agoCopy address of regions related to C# DLL files. 45/226545/9
Mateusz Moscicki [Tue, 3 Mar 2020 12:43:08 +0000 (13:43 +0100)]
Copy address of regions related to C# DLL files.

Change-Id: Ic2e7e4b78d0ba85efcb6c3735152c5a5bffb395e

4 years agoChange the way the process name is reading 35/227535/2
Mateusz Moscicki [Wed, 11 Mar 2020 09:38:38 +0000 (10:38 +0100)]
Change the way the process name is reading

Applications launched by process pool have a modified
/proc/<pid>/cmdline, so cmdline must be treated in a specific way.  Now
the process name is the content of /proc/<pid>/cmdline to the first
occurrence of ' ' (space) or '\0' (NULL byte).

Change-Id: I3af1b9d1df86540b16ea238baa0f03152545e408
Signed-off-by: Mateusz Moscicki <m.moscicki2@partner.samsung.com>
4 years agoMerge "dump_systemstate: Move most of the runnable programs to configuration files...
Karol Lewandowski [Wed, 11 Mar 2020 13:00:39 +0000 (13:00 +0000)]
Merge "dump_systemstate: Move most of the runnable programs to configuration files" into tizen

4 years agodump_systemstate ordering tests 97/227097/1
Michal Bloch [Mon, 9 Mar 2020 15:24:09 +0000 (16:24 +0100)]
dump_systemstate ordering tests

Change-Id: I17a0dac49bb8b013462d76c8f78be2693c356b3c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agodump_systemstate: Move most of the runnable programs to configuration files 76/226276/11
Karol Lewandowski [Fri, 28 Feb 2020 13:50:25 +0000 (14:50 +0100)]
dump_systemstate: Move most of the runnable programs to configuration files

Change-Id: I2b68d40de0f4309cc3a25dd6b2786bf5e0ff0902

4 years agodump_systemstate config: add `order` config entry 67/227067/2
Michal Bloch [Fri, 6 Mar 2020 13:21:45 +0000 (14:21 +0100)]
dump_systemstate config: add `order` config entry

Sort thereby

Change-Id: I1bfe5484a50763297048924d98374b0eaee66cf6
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agodump_systemstate: Allow extra programs to be turned on/off based on a cmdline flag 83/226283/5
Karol Lewandowski [Fri, 28 Feb 2020 10:25:01 +0000 (11:25 +0100)]
dump_systemstate: Allow extra programs to be turned on/off based on a cmdline flag

Change-Id: I287c46d5286e622c58d772b8063e62f66db82e51

4 years agoconfig: Ignore case of ReportType key values 09/226209/5
Karol Lewandowski [Thu, 27 Feb 2020 17:48:12 +0000 (18:48 +0100)]
config: Ignore case of ReportType key values

Change-Id: Ifb46e382eaf3b56681103b4220a85a93dd9e9847