25 Commits

Author SHA1 Message Date
Khem Raj ffc64e9c6f recipes: Start WORKDIR -> UNPACKDIR transition
Replace references of WORKDIR with UNPACKDIR where it makes sense to do
so in preparation for changing the default value of UNPACKDIR.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-23 08:44:44 -07:00
Khem Raj 855b4182a5 minicoredumper: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-27 09:48:30 -08:00
Wang Mingyu 437703d59d minicoredumper: upgrade 2.0.6 -> 2.0.7
Changelog:
===========
* Fix robust mutex list dumping if a robust mutex uses the
  PTHREAD_PRIO_INHERIT attribute.
* Avoid bogus error messages when dumping registered data for
  non-crashing processes.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-27 09:48:30 -08:00
Khem Raj 7ddce19779 minicoredumber: Fix ptest reporting
Fixes
     AssertionError:-
     ptests which had no test results:
     ['minicoredumper']

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-04 13:10:06 -07:00
Wang Mingyu 91efc432e4 minicoredumper: upgrade 2.0.3 -> 2.0.6
Changelog:
===========
 * Support comm names with spaces.
 * Also dump write-only memory segments.
 * Abort memory read if the crashed program is killed while the
   minicoredumper is actively reading memory. This fixes a possible
   endless loop in said scenario.
 * Known problems:
     - If tar is active, core files larger than 8GB will be
       truncated. If it is known that the core files will be >8GB and
       the full core file is needed, tar must be disabled.
     - If tar is active, core files larger than 8GB will be
       truncated. If it is known that the core files will be >8GB and
       the full core file is needed, tar must be disabled.
     - If tar is active, core files larger than 8GB will be
       truncated. If it is known that the core files will be >8GB and
       the full core file is needed, tar must be disabled.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-07 08:59:27 -07:00
Mingli Yu d477cbb526 minicoredumper: correct the sysvinit service file attribute
Add the execute attribute for sysvinit service file to fix the
below error:
  $ service minicoredumper status
  minicoredumper: unrecognized service

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-05-15 19:44:46 -07:00
Wang Mingyu c840260ff4 minicoredumper: upgrade 2.0.2 -> 2.0.3
0001-minicoredumper_demo-Use-optnone-attribute-with-clang.patch
removed since it's included in 2.0.3

Changelog:
==========
* Dump zero-blocks as 4KB blocks instead of single bytes to speed up
   piping to the compressor. (Only relevant if tar is not used.)

 * Drop core data exceeding the ustar 8GB limit. The core file is
   appropriately truncated and the actions are logged. This fixes tar
   file corruption for core files >8GB.

 * Known problems:

     - If tar is active, core files larger than 8GB will be
       truncated. If it is known that the core files will be >8GB and
       the full core file is needed, tar must be disabled.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-18 13:19:36 -08:00
Khem Raj 5c43f2b9a1 minicoredumper: Upgrade to 2.0.2 release
Drop patches already upstreamed.
Add patch to fix tests with clang compiler

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-04 16:59:40 -08:00
Simone Weiss 963f55df9e minicoredumper: Add ptest
Add the demo from minicoredumper - that is intended as a test for it -
as a ptest for minicoredumper.

Result example:

root@qemux86-64:~# ptest-runner minicoredumper
START: ptest-runner
2023-02-02T12:27
BEGIN: /usr/lib/minicoredumper/ptest
minicoredumper_demo
expecting Segmentation fault with core dump ...
[   21.791878] minicoredumper_[330]: segfault at 0 ip 00000000004014f2 sp
00007ffe4271f870 error 4 in minicoredumper_demo[401000+1000] likely on CPU 0
(core 0, socket 0)
[   21.793886] Code: 00 b8 00 00 00 00 e8 7d fb ff ff 83 bd 5c ff ff ff 01 75
2f 48 c7 45 e8 00 00 00 00 bf 58 21 40 00 e8 52 fb ff ff 48 8b 45 e8 <0f> b6
00 0f be c0 89 c6 bf 77 21 40 00 b8 00 00 00 00 e8 47 ff
/usr/lib/minicoredumper/ptest/run-ptest: line 6:   330 Segmentation fault
minicoredumper_demo
minicoredumper
SUCCESS
DURATION: 3
END: /usr/lib/minicoredumper/ptest
2023-02-02T12:28
STOP: ptest-runner
TOTAL: 1 FAIL: 0
root@qemux86-64:~#

Please note the Segmentation fault is intended to provoke a coredump.

Signed-off-by: Simone Weiss <simone.weiss@elektrobit.com>
Signed-off-by: Kai Tomerius <kai.tomerius@elektrobit.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-03 07:47:10 -08:00
Sakib Sajal e231c86e28 minicoredumper: retry elf parsing as long as needed
Maximum number of tries, in rare cases, is insufficient for
elf parse. Backport patch that fixes the issue.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-06-30 07:01:38 -04:00
Khem Raj 14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj af43242a22 minicoredumper: Replace pthread_mutexattr_setrobust_np with pthread_mutexattr_setrobust
Remove unused patch 0001-minicoredumper-Initialize-pointer-to-config-struct-t.patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 08:27:27 -07:00
Pierre-Jean Texier 110fa8902d minicoredumper: update SRC_URI to use github instead
Change SRC_URI:

 - all minicoredumper related sources moved to https://github.com/diamon/minicoredumper

>From the NEWS:

The Linux Foundation will be shutting down their git service for workgroups.
The minicoredumper repository and bug tracking has been moved to the DiaMon
Workgroup account on github.com. We thank the Linux Foundation for providing
us the git service over the last 5 years.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-02 08:55:20 -07:00
Adrian Bunk c6351749d6 meta-oe: Replace EXCLUDE_FROM_WORLD_libc-musl = "1" with COMPATIBLE_HOST_libc-musl = 'null'
This gives users a proper error message when trying to build
a known non-building package.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-30 09:27:56 -07:00
Pierre-Jean Texier 0fc61f4b96 minicoredumper: Update to 2.0.1
- Drop upstreamed patch
- Update COPYING file checksum: the copyright date changes
	 and there is a convertion to SPDX Format.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-01-10 23:27:12 -08:00
Khem Raj 7e0fa293b7 recipes: Exclude non-buildable recipes from world for musl build
These recipes need to be fixed for musl, until they are needed
on musl lets remove them from world builds

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-20 23:58:58 -07:00
Khem Raj 8195786545 minicoredumper: Update to latest
Drop upstreamed patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-18 14:09:33 -07:00
Christophe PRIOUZEAU d1cfe7a70c minicoredumper: relocate admin-binaries to sbin
Change path of minicoredumper on init/service script to /usr/sbin.

Since the commit "relocate admin-binaries to sbin" on minicoredumper,
minicoredumper binaries are installed on /usr/sbin directory instead
of /usr/bin.
src/minicoredumper/Makefile.am: sbin_PROGRAMS = minicoredumper

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-23 15:32:05 -07:00
texierp 26ba552614 minicoredumper: fixes for sysvinit and systemd
The sysv initscript and systemd service assumes minicoredumper is
installed in /usr/bin/. In our case minicoredumper is installed in
/usr/sbin/ by default. Therefore, fix this path.

Signed-off-by: Pierre-Jean TEXIER <texier.pj2@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-05-23 15:32:05 -07:00
Khem Raj 7a873e61d5 minicoredumper: Switch src_uri to upstream lf git
COPYING file changed since copyright is now assined to linutronix from Erricson

Fix build on arm

Fixes error like
corestripper.c:1245:4: error: format specifies type 'unsigned long' but the arg
ument has type 'long long' [-Werror,-Wformat]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-09-13 11:13:22 +02:00
Khem Raj 18835b0a5f minicoredumper: Initialize struct config
Fixes build error with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-13 13:19:03 +02:00
Khem Raj 82dbf3f408 minicoredumper: Update to 2.0.0
* Clarify licensing and switch to github for fetching
* Delete empty /var/run
  Fixes
  minicoredumper-2.0.0: minicoredumper: Files/directories were installed but not shipped in any package:
    /run

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-04-06 13:00:09 +02:00
Roy Li a63b404c30 minicoredumper: add the recipe
minicoredumper provides an alternate core dump facility for Linux
to allow minimal and customized crash dumps

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-07-29 11:00:58 +02:00