Bug 45407 - Capture Linux kernel crash information - Scripts run faulty in 4.2-x
Capture Linux kernel crash information - Scripts run faulty in 4.2-x
Status: RESOLVED FIXED
Product: Z_SDB
Classification: Unclassified
Component: Update needed
unspecified
Other Linux
: P5 normal
: ---
Assigned To: Philipp Hahn
https://help.univention.com/t/6383
:
Depends on: 25918
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-18 10:14 CEST by Nico Stöckigt
Modified: 2017-09-19 09:04 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.017
Enterprise Customer affected?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017091521000331
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Stöckigt univentionstaff 2017-09-18 10:14:41 CEST
The following 3 topics need to be updated in the artikel:


The generated Script '/var/lib/crash/collector.sh' - which is later called by init.d - contains the variable '$OUTPUT' which is NULL. Due to that the output should be written to '/root', which lacks permission, instead of '/var/lib/crash')

-----
8. kexec does not work with UCS 4.2 - an error is shown saying the reserved memory is not reserved.

=====

If we need a CoreDump because a task just hangs and is blocking the rest of the System,...

procs_sys_hang_task_panic=1 (default: 0) → PANIC=CRASHDUMP
Comment 1 Philipp Hahn univentionstaff 2017-09-18 17:24:04 CEST
See attachment 9219 [details]

(In reply to Nico Stöckigt from comment #0)
> The generated Script '/var/lib/crash/collector.sh' - which is later called
> by init.d - contains the variable '$OUTPUT' which is NULL. Due to that the
> output should be written to '/root', which lacks permission, instead of
> '/var/lib/crash')

Fixed.

> 8. kexec does not work with UCS 4.2 - an error is shown saying the reserved
> memory is not reserved.

No, it works.
It does not work with Xen, as Xen implements its own crash handler, which is incompatibel with kexec
.

> If we need a CoreDump because a task just hangs and is blocking the rest of
> the System,...
> 
> procs_sys_hang_task_panic=1 (default: 0) → PANIC=CRASHDUMP

Normally it's a bad idea to crash the kernel, just because a task hangs.