Bug 295807 - Apple G5 TTY suddenly freezes
Summary: Apple G5 TTY suddenly freezes
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: powerpc (show other bugs)
Version: Unspecified
Hardware: powerpc Any
: --- Affects Only Me
Assignee: freebsd-ppc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-03 03:46 UTC by Javi Hotmail
Modified: 2026-06-03 13:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Javi Hotmail 2026-06-03 03:46:04 UTC
Experienced in FreeBSD 15.1-RC1 (more frequently) and 16.0 (Live-CD).

Perhaps related to (Bug 295806) in the sense that when USB 3.x devices are connected this happens more frequently.

The observed behaviour goes as follows:
tty will freeze, no input from mouse or keyboard will be registered and after 3/4 seconds fans will ramp up to full blast. This will be sustained for 30/40 seconds, at which point the tty will resume and screen will start refreshing again, keyboard and mouse will function again. Sometimes, just when the freeze occurs or just after the freeze, the machine will hard crash and reboot (this seems to happen only when the USB 3.x is connected, so I'm inclined to think that that is the connection with 295806.

Interestingly enough, I've discovered that if I am connected through SSH to this machine, the ssh connection will not freeze at all, unless I execute some command like: sysctl -a | grep temp, at which point will hang until the entire system resumes, then it will print the different hw temperatures correctly.

Javi.
Comment 1 Javi Hotmail 2026-06-03 13:59:11 UTC
I managed to get a dtrace of the kernel when it gets stuck; specifically:
dtrace -n 'profile:::profile-99 { stack(); }'

The trace shows the all the CPUs being stuck at:


 0  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  1  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  3  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  2  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

...

At the end of the 40 seconds, when it recovers, I see:
 0  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  1  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  3  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  2  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  0  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  1  50053                      :profile-99
              kernel`native_bs_rs_4+0x4
              kernel`native_bs_rs_4+0x4
              kernel`openpic_unmask+0x8c
              kernel`openpic_cpcht_unmask+0x48
              kernel`powerpc_intr_post_ithread+0x88
              kernel`ithread_loop+0x638
              kernel`fork_exit+0xcc
              kernel`fork_trampoline+0x1c

  2  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  3  50053                      :profile-99
              kernel`spinlock_exit+0x5c

  0  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  1  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  3  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  2  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  0  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  1  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  3  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  2  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  0  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  1  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  3  50053                      :profile-99
              kernel`powerpc_interrupt+0x1ac
              kernel`powerpc_interrupt+0x1ac
              0x7

  2  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  0  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

  1  50053                      :profile-99
              kernel`cpu_idle_60x+0x64

After that, it goes back to normal.

Javi.