procount / pinn

An enhanced Operating System installer for the Raspberry Pi
1.12k stars 123 forks source link

[Pi5] Lock-ups #770

Open procount opened 9 months ago

procount commented 9 months ago

Model: Pi5 PINN: v3.8.9 Occasionally and randomly, PINN will freeze, requiring a reboot. This seems to happen just after the wifi has established and the IP address has been set.

Poopi commented 8 months ago

100% reproducible when moving the USB mouse

procount commented 8 months ago

Yes I had suspected something similar myself.

Poopi commented 8 months ago

Do you have a beta branch somewhere to look at?

Poopi commented 7 months ago

Was thinking about source code rather that binaries that I already checked...

procount commented 7 months ago

I need to get it into a fit state first, then I'll consider pushing it up. The odd thing is that apart from the removal of the alternate bootloading mechanism, the PINN source code is virtually the same as before. The 6.1 kernel is the same across all the models, but only the 64-bit version for the Pi5 exhibits this issue. I think it's more of a kernel issue, unless it's the kernel that's highlighting a latent problem in the application 🤷‍♂️

Poopi commented 7 months ago

I do think it is the latter. I do have an old Xiaomi keyboard that generates spurious messages in kernel. When PINN hangs I can simply remove the dongle and the boot continues....

procount commented 4 months ago

When it locks up, it seems to be stuck here:

(gdb) backtrace
#0  0xf6cc81c8 in pthread_cond_wait () from /home/pi5/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/lib/libpthread.so.0
#1  0x015f9750 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) bt
#0  0xf6cc81c8 in pthread_cond_wait () from /home/pi5/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/lib/libpthread.so.0
#1  0x015f9750 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

So, probably a thread or stack error.....?