reboot / crash
#10
I got my 4th crash since Friday.

(11-08-2019, 01:53 AM)lispy Wrote: My Pinebook is barely usable. All browser usage crashes the OS and reboots. It started after updating to the latest updates. Maybe Winedivine had something to do with it?

I suggested already two times to provide debs for all of MrFixIT's updates. With debs we could easily and independently go back and forth new kernel versions, uboots and what else he provides.


I don't recall when I did what, but I *think* I got my first kernel crash before installing Winedivine.

Whoever created the Winedivine installer was sure that this is the greatest gift to mankind and did not provide an uninstaller. If you really want to uninstall Winedivine, perhaps uninstall chromium, delete all files left in /usr/lib/chromium-browser/ (that will be what the installer installed) and reinstall chromium, again.

Anyone tried setting up kdump? I did. Just that it does not work.

1. I built a kernel with kdump support.

# zgrep -i KEXEC /proc/config.gz
CONFIG_KEXEC_CORE=y
CONFIG_KEXEC=y

2. It turns out that kdump-tools do not support aarch64:

# systemctl status kdump- kdump-tools.service - Kernel crash dump capture service
Loaded: loaded (/lib/systemd/system/kdump-tools.service; enabled; vendor preset: enabled)
Active: active (exited) since Thu 2019-11-07 20:34:43 PST; 1min 14s ago
Process: 3108 ExecStop=/etc/init.d/kdump-tools stop (code=exited, status=0/SUCCESS)
Process: 3138 ExecStart=/etc/init.d/kdump-tools start (code=exited, status=0/SUCCESS)
Main PID: 3138 (code=exited, status=0/SUCCESS)

Nov 07 20:34:43 pinebook-pro systemd[1]: Starting Kernel crash dump capture service...
Nov 07 20:34:43 pinebook-pro kdump-tools[3138]: Starting kdump-tools: Unsupported machine type: aarch64
Nov 07 20:34:43 pinebook-pro kdump-tools[3138]: failed to load kdump kernel ... failed!
Nov 07 20:34:43 pinebook-pro systemd[1]: Started Kernel crash dump capture service.


The unsupported message comes from kexec-tools: kexec/phys_arch.c. There is support for arm64 but not aarch64. What the heck is the difference? Just simply overwriting one string with the other is not enough as we then bail out in the syscall to the kernel.

kexec_load(0xebc08000, 3, [{buf=0xf5a0d008, bufsz=25827336, mem=0xebc08000, memsz=25829376}, {buf=0xab36c728, bufsz=102504, mem=0xf3731000, memsz=106496}, {buf=0xab36c320, bufsz=1024, mem=0xf3b00000, memsz=4096}], KEXEC_ARCH_ARM|KEXEC_ON_CRASH) = -1 EINVAL (Invalid argument)

Uh, why is flag to kexec_load KEXEC_ARCH_ARM and not KEXEC_ARCH_ARM64? I fixed that, too.

Now kdump is set up:

# kdump-config status
current state : ready to kdump
root@pinebook-pro:~# kdump-config show
DUMP_MODE: kdump
USE_KDUMP: 1
KDUMP_SYSCTL: kernel.panic_on_oops=1
KDUMP_COREDIR: /var/crash
crashkernel addr: 0xebc00000
/boot/Image.bak
kdump initrd:

current state: ready to kdump

kexec command:
/sbin/kexec -p --command-line="rw root=/dev/mmcblk1p2 rootwait rootfstype=ext4 init=/sbin/init coherent_pool=1M ethaddr=5e:1d:04:11:80:3f eth1addr=5e:1d:04:11:80:5f serial=8ac3cf935afdad1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 zswap.enabled=1 video=HDMI-A-1:1920x1080@60 video=eDP-1:1920x1080@60 loglevel=3 vga=current earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 usbcore.autosuspend=-1 net.ifnames=0 irqpoll nr_cpus=1 nousb systemd.unit=kdump-tools.service ata_piix.prefer_ms_hyperv=0" /boot/Image.bak


When I manually crash the kernel with echo c > /proc/sysrq*, then kernel just freezes as if kdump is not set up. Damn. Let's see when I have time to look into that.

In the meantime, when I don't use my laptop, I switch with CTL-ALT-F1 to the console. I also disabled the panic=10 auto reboot. So, if the kernel crashes while I'm on the console, I expect to see its backtrace.


Messages In This Thread
reboot / crash - by Der Geist der Maschine - 11-03-2019, 09:42 PM
RE: reboot / crash - by sinistermrcream - 11-05-2019, 09:56 AM
RE: reboot / crash - by dawncold - 11-06-2019, 05:39 PM
RE: reboot / crash - by Nappael - 11-06-2019, 06:02 PM
RE: reboot / crash - by Der Geist der Maschine - 11-06-2019, 11:53 PM
RE: reboot / crash - by Der Geist der Maschine - 11-07-2019, 10:24 AM
RE: reboot / crash - by MoonDog - 11-07-2019, 03:40 PM
RE: reboot / crash - by Der Geist der Maschine - 11-07-2019, 09:29 PM
RE: reboot / crash - by lispy - 11-08-2019, 01:53 AM
RE: reboot / crash - by Der Geist der Maschine - 11-08-2019, 10:08 AM
RE: reboot / crash - by kiloparsec - 11-10-2019, 08:05 PM
RE: reboot / crash - by hmuller - 11-10-2019, 09:24 PM
RE: reboot / crash - by Der Geist der Maschine - 11-10-2019, 10:35 PM
RE: reboot / crash - by kiloparsec - 11-12-2019, 08:40 PM
RE: reboot / crash - by bcnaz - 11-12-2019, 08:56 PM
RE: reboot / crash - by kiloparsec - 11-13-2019, 07:08 PM
RE: reboot / crash - by Der Geist der Maschine - 11-16-2019, 08:34 PM
RE: reboot / crash - by Eggmonkey - 11-17-2019, 07:40 AM
RE: reboot / crash - by Der Geist der Maschine - 11-17-2019, 09:26 AM
RE: reboot / crash - by Arwen - 11-17-2019, 11:33 AM
RE: reboot / crash - by Eggmonkey - 11-17-2019, 03:55 PM
RE: reboot / crash - by bcnaz - 11-17-2019, 02:51 PM
RE: reboot / crash - by bcnaz - 11-17-2019, 04:22 PM
RE: reboot / crash - by Arwen - 11-18-2019, 05:24 AM
RE: reboot / crash - by Der Geist der Maschine - 11-19-2019, 08:23 PM
RE: reboot / crash - by GLSRacer - 11-24-2019, 10:34 AM
RE: reboot / crash - by Der Geist der Maschine - 11-24-2019, 10:51 AM
RE: reboot / crash - by james64 - 01-23-2020, 03:12 PM
RE: reboot / crash - by Der Geist der Maschine - 01-24-2020, 12:06 PM
RE: reboot / crash - by Twix166 - 01-01-2020, 02:08 PM
RE: reboot / crash - by Der Geist der Maschine - 01-01-2020, 04:25 PM
RE: reboot / crash - by Twix166 - 01-02-2020, 02:30 AM
RE: reboot / crash - by Der Geist der Maschine - 01-02-2020, 04:14 AM
RE: reboot / crash - by xmixahlx - 01-23-2020, 06:18 PM
RE: reboot / crash - by james64 - 01-24-2020, 11:35 AM
RE: reboot / crash - by xmixahlx - 01-24-2020, 01:34 PM
RE: reboot / crash - by Baldnerd - 01-27-2020, 10:27 AM
RE: reboot / crash - by xmixahlx - 01-27-2020, 01:37 PM
RE: reboot / crash - by Baldnerd - 01-27-2020, 02:00 PM
RE: reboot / crash - by james64 - 01-29-2020, 04:14 PM
RE: reboot / crash - by Baldnerd - 02-10-2020, 07:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Video Flashing/adjusting on boot and reboot jbradley419 0 630 01-16-2024, 09:17 AM
Last Post: jbradley419
  Vertical Grey Bars on PBP Reboot MickTheGeek 5 5,558 06-04-2021, 02:43 AM
Last Post: dsimic
  Gimp makes stock Manjaro KDE/X11 crash stozi 3 4,974 04-21-2021, 08:15 AM
Last Post: stozi
  Keyboard settings not saved on reboot motezart 6 8,427 11-26-2020, 12:11 PM
Last Post: creaverse
  Vertical Grey Bars on PBP Reboot MickTheGeek 2 3,778 10-05-2020, 07:29 AM
Last Post: MickTheGeek
  Connection to specific AP fails after first reboot. DroneOn 2 3,740 07-13-2020, 06:15 PM
Last Post: DroneOn
  vertical bars reboot only mamboman777 2 4,120 07-09-2020, 12:51 PM
Last Post: mamboman777
Bug How about a hard power switch? + crash report Dendrocalamus64 7 11,058 05-24-2020, 04:03 PM
Last Post: Der Geist der Maschine
  Pinebook pro random reboot default Debian tso4ev 3 5,291 02-04-2020, 06:30 PM
Last Post: Baldnerd
  Blank Screen after reboot Sats 12 13,987 01-27-2020, 02:23 PM
Last Post: Sats

Forum Jump:


Users browsing this thread: 4 Guest(s)