Files
sing-box-extended-mirror/experimental/libbox/debug.go
T

13 lines
165 B
Go
Raw Normal View History

2026-04-02 16:39:34 +08:00
package libbox
2026-04-09 19:34:27 +08:00
import (
"time"
"unsafe"
)
2026-04-02 16:39:34 +08:00
func TriggerGoPanic() {
time.AfterFunc(200*time.Millisecond, func() {
2026-04-09 19:34:27 +08:00
*(*int)(unsafe.Pointer(uintptr(0))) = 0
2026-04-02 16:39:34 +08:00
})
}