Gcore extension module for the crash utility
Go to file
HATAYAMA Daisuke 9f16f6a487 coredump: fix unexpected truncation of generated core files
Backport from the upstream crash-gcore.

commit dbb542e10bfe1b2e21c7927bda9be1d301cfef65
Author: HATAYAMA Daisuke <d.hatayama@fujitsu.com>
Date:   Fri Jun 17 20:38:19 2022 +0900

    coredump: fix unexpected truncation of generated core files

    Core files generated by crash gcore command are sometimes unexpectedly
    truncated. Then, we can get aware of this from the following warning
    message output by gdb:

        BFD: warning: /root/./core.1.systemd is truncated: expected core file size >= 43606016, found: 43597824

    From the investigation, it turned out that this truncation is
    occurring when there is no write() operation after the area skipped by
    lseek(). Holes are generated only when there is write() operation.

    To fix this issue, use ftruncate() to allocate holes explicitly.

    Signed-off-by: HATAYAMA Daisuke <d.hatayama@fujitsu.com>

Signed-off-by: HATAYAMA Daisuke <d.hatayama@fujitsu.com>
2022-07-26 15:13:49 +09:00
.gitignore Update to latest upstream release v2 2021-12-20 06:18:09 +09:00
crash-gcore-1.6.3-coredump-fix-segmentation-fault-caused-by-type-misma.patch coredump: fix segmentation fault caused by type mismatch 2022-07-26 15:13:44 +09:00
crash-gcore-1.6.3-coredump-fix-unexpected-truncation-of-generated-core.patch coredump: fix unexpected truncation of generated core files 2022-07-26 15:13:49 +09:00
crash-gcore-1.6.3-coredump-use-MEMBER_-OFFSET-SIZE-instead-of-GCORE_-O.patch coredump: use MEMBER_{OFFSET, SIZE} instead of GCORE_{OFFSET, SIZE} 2022-07-26 15:13:32 +09:00
crash-gcore-1.6.3-elf-fix-warning-message-caused-by-type-mismatch-of-o.patch elf: fix warning message caused by type mismatch of offset types 2022-07-26 15:13:47 +09:00
crash-gcore-1.6.3-gcore-defs-remove-definitions-and-initializations-fo.patch gcore, defs: remove definitions and initializations for saved_auxv entries of offset and size tables 2022-07-26 15:13:38 +09:00
crash-gcore-1.6.3-gcore-fix-memory-allocation-failure-during-processin.patch gcore: fix memory allocation failure during processing NT_AUXV note 2022-07-26 15:13:40 +09:00
crash-gcore-1.6.3-x86-Fix-failure-of-collecting-vsyscall-mapping-due-t.patch x86: Fix failure of collecting vsyscall mapping due to change of enum type of vsyscall_mode 2022-07-26 15:13:42 +09:00
crash-gcore-command.spec Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild 2022-07-20 23:43:32 +00:00
README.md Added the README 2021-02-17 14:38:01 +00:00
sources Update to latest upstream release v2 2021-12-20 06:18:09 +09:00

crash-gcore-command

The crash-gcore-command package