vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.38k stars 3.17k forks source link

升级至0.42.04beta后不定时出现内核报错 #1370

Closed Re2peR closed 3 years ago

Re2peR commented 3 years ago

OpenClash 调试日志

生成时间: 2021-04-29 06:50:06 插件版本: v0.42.04-beta 隐私提示: 上传此日志前请注意检查、屏蔽公网IP、节点、密码等相关敏感信息

===================== 系统信息 =====================

主机型号: Phicomm N1 固件版本: OpenWrt SNAPSHOT r3166-d037aff9e LuCI版本: git-21.110.12495-2c780cc-1 内核版本: 5.4.113-flippy-57+o 处理器架构: aarch64_cortex-a53

此项在使用Tun模式时应为ACCEPT

防火墙转发: ACCEPT

此项有值时建议到网络-接口-lan的设置中禁用IPV6的DHCP

IPV6-DHCP:

此项结果应仅有配置文件的DNS监听地址

Dnsmasq转发设置: 127.0.0.1#7874

===================== 依赖检查 =====================

dnsmasq-full: 已安装 coreutils: 已安装 coreutils-nohup: 已安装 bash: 已安装 curl: 已安装 jsonfilter: 已安装 ca-certificates: 已安装 ipset: 已安装 ip-full: 已安装 iptables-mod-tproxy: 已安装 kmod-ipt-tproxy: 已安装 iptables-mod-extra: 已安装 kmod-ipt-extra: 已安装 libcap: 已安装 libcap-bin: 已安装 ruby: 已安装 ruby-yaml: 已安装 ruby-psych: 已安装 ruby-pstore: 已安装 ruby-dbm: 已安装 kmod-tun(TUN模式): 已安装 luci-compat(Luci-19.07): 已安装

===================== 内核检查 =====================

运行状态: 运行中 进程pid: 29480 运行权限: 29480: = cap_dac_override,cap_net_bind_service,cap_net_admin,cap_net_raw,cap_sys_resource+eip 运行用户: nobody 已选择的架构: linux-armv8

下方无法显示内核版本号时请确认您的内核版本是否正确或者有无权限

Tun内核版本: 2021.04.08 Tun内核文件: 存在 Tun内核运行权限: 正常

Game内核版本: premium-23-g5e4b94d Game内核文件: 存在 Game内核运行权限: 正常

Dev内核版本: Dev内核文件: 不存在 Dev内核运行权限: 否

===================== 插件设置 =====================

当前配置文件: /etc/openclash/config/config.yaml 启动配置文件: /etc/openclash/config.yaml 运行模式: fake-ip-mix 默认代理模式: rule UDP流量转发(tproxy): 停用 DNS劫持: 启用 自定义DNS: 停用 IPV6-DNS解析: 停用 禁用Dnsmasq缓存: 停用 自定义规则: 停用 仅允许内网: 停用 仅代理命中规则流量: 停用 仅允许常用端口流量: 停用 绕过中国大陆IP: 停用

启动异常时建议关闭此项后重试

混合节点: 停用 保留配置: 启用

启动异常时建议关闭此项后重试

第三方规则: 启用

===================== 配置文件 =====================

proxy-groups:

===================== 防火墙设置 =====================

NAT chain

Generated by iptables-save v1.8.4 on Thu Apr 29 06:50:09 2021

*nat :PREROUTING ACCEPT [251716:92348322] :INPUT ACCEPT [302302:95707840] :OUTPUT ACCEPT [47122:2969565] :POSTROUTING ACCEPT [50141:3212021] :MINIUPNPD - [0:0] :MINIUPNPD-POSTROUTING - [0:0] :openclash - [0:0] :openclash_output - [0:0] :postrouting_lan_rule - [0:0] :postrouting_rule - [0:0] :postrouting_vpn_rule - [0:0] :postrouting_wan_rule - [0:0] :prerouting_lan_rule - [0:0] :prerouting_rule - [0:0] :prerouting_vpn_rule - [0:0] :prerouting_wan_rule - [0:0] :zone_lan_postrouting - [0:0] :zone_lan_prerouting - [0:0] :zone_vpn_postrouting - [0:0] :zone_vpn_prerouting - [0:0] :zone_wan_postrouting - [0:0] :zone_wan_prerouting - [0:0] -A PREROUTING -d 8.8.4.4/32 -p tcp -m tcp --dport 53 -j ACCEPT -A PREROUTING -d 8.8.8.8/32 -p tcp -m tcp --dport 53 -j ACCEPT -A PREROUTING -p udp -m udp --dport 53 -j REDIRECT --to-ports 53 -A PREROUTING -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 53 -A PREROUTING -m comment --comment "!fw3: Custom prerouting rule chain" -j prerouting_rule -A PREROUTING -i eth0 -m comment --comment "!fw3" -j zone_lan_prerouting -A PREROUTING -i tun0 -m comment --comment "!fw3" -j zone_vpn_prerouting -A PREROUTING -p udp -m udp --dport 53 -m comment --comment dns_hijack -j REDIRECT --to-ports 53 -A PREROUTING -p tcp -m tcp --dport 53 -m comment --comment dns_hijack -j REDIRECT --to-ports 53 -A PREROUTING -p tcp -j openclash -A OUTPUT -j openclash_output -A POSTROUTING -m comment --comment "!fw3: Custom postrouting rule chain" -j postrouting_rule -A POSTROUTING -o eth0 -m comment --comment "!fw3" -j zone_lan_postrouting -A POSTROUTING -o tun0 -m comment --comment "!fw3" -j zone_vpn_postrouting -A openclash -m set --match-set localnetwork dst -j RETURN -A openclash -p tcp -j REDIRECT --to-ports 7892 -A openclash_output -p tcp -m tcp --sport 1688 -j RETURN -A openclash_output -p tcp -m tcp --sport 10240 -j RETURN -A openclash_output -p tcp -m tcp --sport 1194 -j RETURN -A openclash_output -m set --match-set localnetwork dst -j RETURN -A openclash_output -d 198.18.0.0/16 -p tcp -m owner ! --uid-owner 65534 -j REDIRECT --to-ports 7892 -A openclash_output -p tcp -m owner ! --uid-owner 65534 -j REDIRECT --to-ports 7892 -A zone_lan_postrouting -j MINIUPNPD-POSTROUTING -A zone_lan_postrouting -m comment --comment "!fw3: Custom lan postrouting rule chain" -j postrouting_lan_rule -A zone_lan_prerouting -j MINIUPNPD -A zone_lan_prerouting -m comment --comment "!fw3: Custom lan prerouting rule chain" -j prerouting_lan_rule -A zone_vpn_postrouting -m comment --comment "!fw3: Custom vpn postrouting rule chain" -j postrouting_vpn_rule -A zone_vpn_postrouting -m comment --comment "!fw3" -j FULLCONENAT -A zone_vpn_prerouting -m comment --comment "!fw3: Custom vpn prerouting rule chain" -j prerouting_vpn_rule -A zone_vpn_prerouting -m comment --comment "!fw3" -j FULLCONENAT -A zone_wan_postrouting -m comment --comment "!fw3: Custom wan postrouting rule chain" -j postrouting_wan_rule -A zone_wan_postrouting -m comment --comment "!fw3" -j FULLCONENAT -A zone_wan_prerouting -m comment --comment "!fw3: Custom wan prerouting rule chain" -j prerouting_wan_rule -A zone_wan_prerouting -m comment --comment "!fw3" -j FULLCONENAT COMMIT

Completed on Thu Apr 29 06:50:09 2021

Mangle chain

Generated by iptables-save v1.8.4 on Thu Apr 29 06:50:09 2021

*mangle :PREROUTING ACCEPT [1880806:1525374837] :INPUT ACCEPT [1873997:1524867228] :FORWARD ACCEPT [5413:462937] :OUTPUT ACCEPT [1076379:1095626067] :POSTROUTING ACCEPT [1081856:1096106451] :openclash - [0:0] :openclash_dns_hijack - [0:0] :openclash_output - [0:0] -A PREROUTING -p udp -j openclash -A PREROUTING -p tcp -m tcp --dport 53 -j openclash_dns_hijack -A OUTPUT -j openclash_output -A openclash -p udp -m udp --dport 1194 -j RETURN -A openclash -p udp -m udp --dport 500 -j RETURN -A openclash -p udp -m udp --dport 546 -j RETURN -A openclash -p udp -m udp --dport 68 -j RETURN -A openclash -m set --match-set localnetwork dst -j RETURN -A openclash -j MARK --set-xmark 0x162/0xffffffff -A openclash_dns_hijack -d 8.8.8.8/32 -j MARK --set-xmark 0x162/0xffffffff -A openclash_dns_hijack -d 8.8.4.4/32 -j MARK --set-xmark 0x162/0xffffffff -A openclash_output -p udp -m udp --sport 1194 -j RETURN -A openclash_output -p udp -m udp --sport 500 -j RETURN -A openclash_output -p udp -m udp --sport 546 -j RETURN -A openclash_output -p udp -m udp --sport 68 -j RETURN -A openclash_output -m set --match-set localnetwork dst -j RETURN -A openclash_output -d 198.18.0.0/16 -p udp -m owner ! --uid-owner 65534 -j MARK --set-xmark 0x162/0xffffffff COMMIT

Completed on Thu Apr 29 06:50:09 2021

===================== IPSET状态 =====================

Name: cn Name: ct Name: cnc Name: cmcc Name: crtc Name: cernet Name: gwbn Name: othernet Name: music Name: mwan3_connected_v4 Name: mwan3_connected_v6 Name: mwan3_source_v6 Name: mwan3_dynamic_v4 Name: mwan3_dynamic_v6 Name: mwan3_custom_v4 Name: mwan3_custom_v6 Name: china Name: localnetwork Name: mwan3_connected

===================== 路由表状态 =====================

route -n

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 198.18.0.0 0.0.0.0 255.255.0.0 U 0 0 0 utun

ip route list

default via 192.168.1.1 dev eth0 proto static 192.168.0.0/16 dev eth0 proto kernel scope link src 192.168.1.2 198.18.0.0/16 dev utun proto kernel scope link src 198.18.0.1

ip rule show

0: from all lookup local 32761: from all fwmark 0x162 lookup 354 32762: from all fwmark 0x162 lookup 354 32763: from all fwmark 0x162 lookup 354 32764: from all fwmark 0x162 lookup 354 32765: from all fwmark 0x162 lookup 354 32766: from all lookup main 32767: from all lookup default

===================== Tun设备状态 =====================

utun: tun pi filter

===================== 端口占用状态 =====================

tcp 0 0 198.18.0.1:7777 0.0.0.0: LISTEN 29480/clash tcp 0 0 :::7891 ::: LISTEN 29480/clash tcp 0 0 :::7892 ::: LISTEN 29480/clash tcp 0 0 :::7893 ::: LISTEN 29480/clash tcp 0 0 :::9090 ::: LISTEN 29480/clash tcp 0 0 :::7890 ::: LISTEN 29480/clash udp 0 0 198.18.0.1:7777 0.0.0.0: 29480/clash udp 0 0 127.0.0.1:7874 0.0.0.0: 29480/clash udp 0 0 :::7891 ::: 29480/clash udp 0 0 :::7892 ::: 29480/clash udp 0 0 :::7893 :::* 29480/clash

===================== 测试本机DNS查询 =====================

Server: 127.0.0.1 Address: 127.0.0.1#53

Name: www.baidu.com Address 1: 198.18.0.167 *** Can't find www.baidu.com: No answer

===================== resolv.conf.d =====================

Interface lan

nameserver 192.168.1.1

===================== 测试本机网络连接 =====================

HTTP/1.1 200 OK Accept-Ranges: bytes Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform Connection: keep-alive Content-Length: 277 Content-Type: text/html Date: Wed, 28 Apr 2021 22:50:09 GMT Etag: "575e1f60-115" Last-Modified: Mon, 13 Jun 2016 02:50:08 GMT Pragma: no-cache Server: bfe/1.0.8.18

===================== 测试本机网络下载 =====================

HTTP/1.1 200 OK Connection: keep-alive Content-Length: 80 Cache-Control: max-age=300 Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandbox Content-Type: text/plain; charset=utf-8 ETag: "44842fbfd0d46b48a8ccab1ec8255bfc4e6c18fe30fb6696e6f50a8fe80df561" Strict-Transport-Security: max-age=31536000 X-Content-Type-Options: nosniff X-Frame-Options: deny X-XSS-Protection: 1; mode=block X-GitHub-Request-Id: C57C:7687:1ED771:2C8CA6:60887D4E Accept-Ranges: bytes Date: Wed, 28 Apr 2021 22:50:10 GMT Via: 1.1 varnish X-Served-By: cache-hkg17932-HKG X-Cache: HIT X-Cache-Hits: 1 X-Timer: S1619650210.069559,VS0,VE266 Vary: Authorization,Accept-Encoding Access-Control-Allow-Origin: * X-Fastly-Request-ID: 2c3e7db2ed57570629fa57c5ab166c487b17e430 Expires: Wed, 28 Apr 2021 22:55:10 GMT Source-Age: 0

===================== 最近运行日志 =====================

time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Fox Now" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Fox+" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Steam" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Tencent Video" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider iQiyi" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider WeTV" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Apple TV" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider DAZN" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider PBS" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Discovery Plus" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Bilibili" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider encoreTVB" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider HBO" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Soundcloud" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider PROXY" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider myTV SUPER" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider JOOX" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Spotify" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Apple News" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Hulu" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider BBC iPlayer" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Special" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Scholar" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Abema TV" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider KKTV" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Letv" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Youku" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Reject" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Speedtest" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Netflix" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider ViuTV" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Japonx" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Netease Music" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Line TV" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Microsoft" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider KKBOX" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Pandora" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Amazon" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Pornhub" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Disney Plus" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider ABC" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Domestic" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Bahamut" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Telegram" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider PayPal" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Apple" time="2021-04-29T05:15:26+08:00" level=info msg="Start initial rule provider Domestic IPs" time="2021-04-29T05:15:27+08:00" level=info msg="Start initial rule provider YouTube" time="2021-04-29T05:15:27+08:00" level=info msg="DNS server listening at: 127.0.0.1:7874" 2021-04-29 05:15:29 Groups History:【config.yaml】 Restore Successful

以上为日志,但不知道为什么没有记录到报错信息,报错信息如下

2021-04-21 18:47:56 Watchdog: Clash Core Problem, Restart. github.com/Dreamacro/clash/tunnel/tunnel.go:280 +0x23c created by github.com/Dreamacro/clash/tunnel.handleUDPConn github.com/Dreamacro/clash/tunnel/tunnel.go:302 +0x148 github.com/Dreamacro/clash/tunnel.handleUDPConn.func2(0x0, 0x4000a6ad40, 0x400015e360, 0x4000c41cb0, 0x18, 0x4001509480, 0x400014be00, 0x4000c41c98, 0x13, 0x8545a8, ...) github.com/Dreamacro/clash/adapters/outboundgroup/selector.go:31 +0x4c github.com/Dreamacro/clash/adapters/outboundgroup.(Selector).DialUDP(0x4000532700, 0x4001509480, 0xcb9fe0, 0x124212fd87ec98a1, 0xb2e4483bb9ec39a6, 0x400014bed8) github.com/Dreamacro/clash/adapters/outboundgroup/selector.go:31 +0x4c github.com/Dreamacro/clash/adapters/outboundgroup.(Selector).DialUDP(0x4000532000, 0x4001509480, 0x40011a3b01, 0x4283a0, 0x4000532700, 0x40011a3b01) github.com/Dreamacro/clash/adapters/outbound/trojan.go:109 +0x5dc github.com/Dreamacro/clash/adapters/outbound.(*Trojan).DialUDP(0x40003c96e0, 0x4001509480, 0x0, 0x0, 0x84e2f0, 0x40002a6a00) goroutine 8283 [running]:

[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x3bb98c] panic: runtime error: invalid memory address or nil pointer dereference

Re2peR commented 3 years ago

换低版本tun内核暂时稳定