Giter Club home page Giter Club logo

Comments (50)

pymumu avatar pymumu commented on May 22, 2024

你用的是最新版本吗?
我看日志行号和最新版本不一致。你升级一下最新版本看看。

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

tim 20181209135550
是最新版的

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

(⊙o⊙)哦,不是,我试一下最新的是1745

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

[2018-12-09 14:11:10,855][ERROR][ fast_ping.c:339 ] sendto 2600:1417:a000::1730:c950, id 607, Permission denied
[2018-12-09 14:31:22,013][ERROR][ dns_client.c:612 ] decode failed, packet len = 13, tc = 0, id = 65034, from = 10.10.96.77
[2018-12-09 14:31:22,014][ERROR][ dns_client.c:612 ] decode failed, packet len = 13, tc = 0, id = 65034, from = 10.10.96.77
[2018-12-09 14:31:22,014][ERROR][ dns_client.c:612 ] decode failed, packet len = 13, tc = 0, id = 65034, from = 10.10.96.77
[2018-12-09 14:31:22,014][ERROR][ dns_client.c:612 ] decode failed, packet len = 13, tc = 0, id = 65034, from = 10.10.96.77
[2018-12-09 14:31:22,014][ERROR][ dns_client.c:612 ] decode failed, packet len = 13, tc = 0, id = 65034, from = 10.10.96.77
[2018-12-09 14:34:27,298][ERROR][ dns_client.c:1523] send query to 140.143.226.193 failed, Broken pipe
[2018-12-09 15:52:39,107][ERROR][ dns_client.c:1523] send query to 140.143.226.193 failed, Broken pipe
[2018-12-09 15:53:43,383][ERROR][ dns_client.c:618 ] message type error.
[2018-12-09 16:11:01,386][ERROR][ dns_client.c:618 ] message type error.
[2018-12-09 16:33:38,961][ERROR][ dns_client.c:618 ] message type error.
[2018-12-09 16:37:16,748][ERROR][ dns_client.c:618 ] message type error.
[2018-12-09 16:44:16,362][ERROR][ dns_client.c:618 ] message type error.
[2018-12-09 17:02:16,387][ERROR][ dns_client.c:618 ] message type error.
[2018-12-09 17:09:08,786][ERROR][ dns_client.c:618 ] message type error.
[2018-12-09 17:40:58,739][ERROR][ dns_client.c:618 ] message type error.
[2018-12-09 17:49:50,725][ERROR][ dns_client.c:1523] send query to 140.143.226.193 failed, Broken pipe
[2018-12-09 18:45:55,131][ERROR][ dns_client.c:618 ] message type error.
[2018-12-09 18:56:07,079][ERROR][ dns_client.c:1523] send query to 140.143.226.193 failed, Broken pipe
[2018-12-09 19:04:08,584][ERROR][ dns_client.c:618 ] message type error.
[2018-12-09 20:25:23,254][ERROR][ smartdns.c:278 ] process exit with signal 11

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

你安装的那个文件?
我编译一个调试版本给你,收集点定位信息

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

smartdns.1.2018.12.02-1745.mips_24kc.ipk

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

smartdns.1.2018.12.10-2316.mips_24kc.zip
编译了一个debug版本,进程挂掉的话,会在/tmp目录下生成一个core文件。

到时把那个core文件发一下。

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

[2018-12-11 20:42:44,891][ERROR][ dns_client.c:1523] send query to 123.207.13.111 failed, Resource temporarily unavailable
[2018-12-11 20:42:44,900][ERROR][ dns_client.c:1523] send query to 123.207.13.111 failed, Resource temporarily unavailable
[2018-12-11 20:42:44,941][ERROR][ dns_server.c:278 ] BUG: refcnt is -1
[2018-12-11 20:42:44,941][ERROR][ smartdns.c:278 ] process exit with signal 6
才看到,还没用debug版本,这是最近发生的错误。

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

[2018-12-16 07:14:22,938][ERROR][ dns_client.c:1530] send query to 1.0.0.1 failed, Broken pipe
[2018-12-16 07:14:22,946][ERROR][ dns_client.c:1530] send query to 1.0.0.1 failed, Broken pipe
[2018-12-16 07:21:46,830][ERROR][ dns_client.c:1530] send query to 1.0.0.1 failed, Connection reset by peer
[2018-12-16 07:21:46,834][ERROR][ dns_client.c:1530] send query to 1.0.0.1 failed, Broken pipe
[2018-12-16 07:21:46,838][ERROR][ dns_client.c:1530] send query to 1.0.0.1 failed, Broken pipe
[2018-12-16 07:21:46,844][ERROR][ dns_client.c:1530] send query to 1.0.0.1 failed, Broken pipe
[2018-12-16 07:31:49,682][ERROR][ dns_client.c:1530] send query to 193.112.15.186 failed, Connection reset by peer
[2018-12-16 07:31:49,687][ERROR][ dns_client.c:1530] send query to 193.112.15.186 failed, Broken pipe
[2018-12-16 07:31:49,694][ERROR][ dns_client.c:1530] send query to 193.112.15.186 failed, Broken pipe
[2018-12-16 07:31:49,697][ERROR][ dns_client.c:1530] send query to 193.112.15.186 failed, Broken pipe
[2018-12-16 07:31:49,704][ERROR][ dns_client.c:1530] send query to 193.112.15.186 failed, Broken pipe
[2018-12-16 07:31:49,714][ERROR][ dns_client.c:1530] send query to 193.112.15.186 failed, Broken pipe
[2018-12-16 07:31:49,718][ERROR][ dns_client.c:1530] send query to 193.112.15.186 failed, Broken pipe
tim 20181216092833
这回退出原因未知,没发现有core文件

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

smart版本
tim 20181216093015

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

你的使用场景是什么样的,还有dns服务器的配置

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

晚上挂迅雷下东西,dns的话用的数量比较多,查询方式包括tls,TCP,UDP三种都有。
刚才又发生了退出,
[2018-12-16 09:54:17,413][ERROR][ dns_client.c:1530] send query to 140.143.226.193 failed, Broken pipe
[2018-12-16 09:54:17,422][ERROR][ dns_client.c:1530] send query to 140.143.226.193 failed, Broken pipe
[2018-12-16 09:54:17,432][ERROR][ dns_client.c:1530] send query to 140.143.226.193 failed, Broken pipe
[2018-12-16 09:54:17,436][ERROR][ dns_client.c:1530] send query to 140.143.226.193 failed, Broken pipe
[2018-12-16 09:55:49,468][ERROR][ dns_client.c:1530] send query to 120.132.13.50 failed, Broken pipe
[2018-12-16 09:55:49,474][ERROR][ dns_client.c:1530] send query to 120.132.13.50 failed, Broken pipe
[2018-12-16 09:56:41,076][ERROR][ dns_client.c:1530] send query to 193.112.15.186 failed, Broken pipe
[2018-12-16 09:57:00,681][ERROR][ dns_server.c:508 ] BUG: refcnt is -1, domain xxxxx.xx
同样没有core文件,同时也在使用迅雷下东西
xxxxx.xx是代理服务器SSR的网址,这个和使用ssr有关吗

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

有作为TCP服务器吗?TCP有个地方可能导致异常退出。

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

config server
option name 'pdomo'
option ip '193.112.15.186'
option port '2323'
option type 'tcp'

config server
option name 'pdomo'
option ip '101.132.183.99'
option port '2323'
option type 'tcp'
config server
option port '2333'
option type 'tcp'
option ip '140.143.226.193'

config server
option port '2333'
option type 'tcp'
option ip '120.132.13.50'
config server
option port '5353'
option type 'tcp'
option name 'pureDNS'
option ip '123.207.13.111'
config server
option port '53'
option type 'tcp'
option name 'TWNICDNS'
option ip '101.101.101.101'

config server
option port '53'
option type 'tcp'
option name 'TWNICDNS'
option ip '101.102.103.104'

config server
option type 'tcp'
option name 'APNIC'
option ip '1.1.1.1'
option port '53'

config server
option type 'tcp'
option name 'APNIC'
option ip '1.0.0.1'
option port '53'
config server
option ip '8.8.8.8'
option port '53'
option type 'tcp'
config server
option ip '9.9.9.9'
option port '53'
option type 'tcp'

config server
option ip '149.112.112.112'
option port '53'
option type 'tcp'

config server
option ip '208.67.220.220'
option port '5353'
option type 'tcp'

config server
option ip '208.67.220.220'
option port '443'
option type 'tcp'
config server
option ip '176.103.130.130'
option port '53'
option type 'tcp'

config server
option ip '77.88.8.8'
option port '53'
option type 'tcp'

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

有用TCP访问smartdns吗?
还有你用的安装包时哪个?我给你个版本看看。

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

smartdns.1.2018.12.10-2316.mips_24kc.ipk
我之前是将SSR的解析dns设为192.168.1.1

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

smartdns_build.zip

可以试一下这个,这个还没正式发布。
增加了ipset和ip黑名单。

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

(^o^)/,我先试试

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

[2018-12-17 17:29:15,592][ERROR][ dns_client.c:1522] send query to 140.143.226.193 failed, Broken pipe
[2018-12-17 17:29:25,269][ERROR][ dns_client.c:1522] send query to 120.132.13.50 failed, Broken pipe
[2018-12-17 17:29:25,772][ERROR][ dns_client.c:1522] send query to 101.132.183.99 failed, Broken pipe
[2018-12-17 17:29:25,775][ERROR][ dns_client.c:1522] send query to 101.132.183.99 failed, Broken pipe
[2018-12-17 17:29:25,903][ERROR][ dns_client.c:1522] send query to 120.132.13.50 failed, Broken pipe
[2018-12-17 17:29:26,279][ERROR][ dns_client.c:1522] send query to 120.132.13.50 failed, Broken pipe
[2018-12-17 17:29:38,184][ERROR][ dns_client.c:1522] send query to 120.132.13.50 failed, Broken pipe
[2018-12-17 17:29:38,188][ERROR][ dns_client.c:1522] send query to 120.132.13.50 failed, Broken pipe
[2018-12-17 17:29:38,193][ERROR][ dns_client.c:1522] send query to 120.132.13.50 failed, Broken pipe
[2018-12-17 17:29:38,245][ERROR][ smartdns.c:285 ] process exit with signal 11
[2018-12-17 17:29:38,257][ERROR][ smartdns.c:285 ] process exit with signal 10
这次没有使用迅雷,也没有使用smartdns作为SSR的上游服务器

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

我现在将smartdns设置成53端口,看会不会出现这个现象

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

进程收到10信号比较奇怪,感觉是外部因素导致的进程退出
正常情况和监听哪个端口应该没关系。

你之前监听的什么端口?

执行一下dmesg看看有什么信息

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

之前是5354端口,但是换了之后到现在还没出现错误。
现在执行dmesg的信息
root@OpenWrt:# root@OpenWrt:# dmesg
-ash: root@OpenWrt:#: not found
root@OpenWrt:
# [ 0.000000] Linux version 4.9.145 (lean@ubuntu) (gcc version
7.3.0 (OpenWrt GCC 7.3.0 r1003-d524395b) ) #0 Sat Dec 15 05:40:35 2018
-ash: syntax error: unexpected "("
root@OpenWrt:# [ 0.000000] MyLoader: sysp=e8de8071, boardp=0cbc452b, parts=0
ec920f1
ash: missing ]
root@OpenWrt:
# [ 0.000000] bootconsole [early0] enabled
ash: missing ]
root@OpenWrt:# [ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
-ash: syntax error: unexpected "("
root@OpenWrt:
# [ 0.000000] SoC: Atheros AR7161 rev 2
ash: missing ]
root@OpenWrt:# [ 0.000000] Determined physical RAM map:
ash: missing ]
root@OpenWrt:
# [ 0.000000] memory: 08000000 @ 00000000 (usable)
-ash: syntax error: unexpected "("
root@OpenWrt:# [ 0.000000] Initrd not found or empty - disabling initrd
ash: missing ]
[ 0.100805] futex hash table entries: 256 (order: -1, 3072 bytes)
root@OpenWrt:
# [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, line
size 32 bytes.
ash: missing ]
[ 2.826396] pci_bus 0000:00: root bus resource [io 0x0000]
root@OpenWrt:# [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache alias
es, linesize 32 bytes
ash: missing ]
[ 2.853437] pci 0000:00:12.0: [168c:ff1d] type 00 class 0x020000
root@OpenWrt:
# [ 0.000000] Zone ranges:
ash: missing ]
[ 2.860192] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
root@OpenWrt:# [ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ff
ffff]
ash: missing ]
root@OpenWrt:
# [ 0.000000] Movable zone start for each node
ash: missing ]
root@OpenWrt:# [ 0.000000] Early memory node ranges
ash: missing ]
root@OpenWrt:
# [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007f
fffff]
ash: missing ]
root@OpenWrt:# [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00
00000007ffffff]
ash: missing ]
root@OpenWrt:
# [ 0.000000] On node 0 totalpages: 32768
ash: missing ]
root@OpenWrt:# [ 0.000000] free_area_init_node: node 0, pgdat 804543a4, node
_mem_map 81000020
ash: missing ]
root@OpenWrt:
# [ 0.000000] Normal zone: 256 pages used for memmap
ash: missing ]
root@OpenWrt:# [ 0.000000] Normal zone: 0 pages reserved
ash: missing ]
root@OpenWrt:
# [ 0.000000] Normal zone: 32768 pages, LIFO batch:7
ash: missing ]
root@OpenWrt:# [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
ash: missing ]
root@OpenWrt:
# [ 0.000000] pcpu-alloc: [0] 0
ash: missing ]
root@OpenWrt:# [ 0.000000] Built 1 zonelists in Zone order, mobility groupin
g on. Total pages: 32512
ash: missing ]
root@OpenWrt:
# [ 0.000000] Kernel command line: board=WNDR3700 mtdparts=spi
0.0:320k(u-boot)ro,128k(u-boot-env)ro,15872k(firmware),64k(art)ro console=ttyS0,
115200 rootfstype=squashfs noinitrd
-ash: syntax error: unexpected "("
root@OpenWrt:# [ 0.000000] PID hash table entries: 512 (order: -1, 2048 byte
s)
-ash: syntax error: unexpected "("
root@OpenWrt:
# [ 0.000000] Dentry cache hash table entries: 16384 (order: 4,
65536 bytes)
-ash: syntax error: unexpected "("
root@OpenWrt:# [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 3
2768 bytes)
-ash: syntax error: unexpected "("
root@OpenWrt:
# [ 0.000000] Writing ErrCtl register=00000000
ash: missing ]
root@OpenWrt:# [ 0.000000] Readback ErrCtl register=00000000
ash: missing ]
root@OpenWrt:
# [ 0.000000] Memory: 124964K/131072K available (3434K kernel c
ode, 169K rwdata, 448K rodata, 292K init, 201K bss, 6108K reserved, 0K cma-reser
ved)
-ash: syntax error: unexpected "("
root@OpenWrt:# [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1
, Nodes=1
ash: missing ]
root@OpenWrt:
# [ 0.000000] NR_IRQS:51
ash: missing ]
root@OpenWrt:# [ 0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.0
00MHz, Ref:40.000MHz
ash: missing ]
root@OpenWrt:
# [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0
xffffffff, max_idle_ns: 5621354254 ns
ash: missing ]
root@OpenWrt:# [ 0.000008] sched_clock: 32 bits at 340MHz, resolution 2ns, w
raps every 6316128254ns
ash: missing ]
root@OpenWrt:
# [ 0.007798] Calibrating delay loop... 452.19 BogoMIPS (lpj=22
60992)
-ash: syntax error: unexpected "("
root@OpenWrt:# [ 0.070514] pid_max: default: 32768 minimum: 301
ash: missing ]
root@OpenWrt:
# [ 0.075211] Mount-cache hash table entries: 1024 (order: 0, 4
096 bytes)
-ash: syntax error: unexpected "("
root@OpenWrt:# [ 0.081817] Mountpoint-cache hash table entries: 1024 (order:
0, 4096 bytes)
-ash: syntax error: unexpected "("
root@OpenWrt:
# [ 0.090942] clocksource: jiffies: mask: 0xffffffff max_cycles
: 0xffffffff, max_idle_ns: 19112604462750000 ns
ash: missing ]
root@OpenWrt:# [ 0.100805] futex hash table entries: 256 (order: -1, 3072 by
tes)
-ash: syntax error: unexpected "("
root@OpenWrt:
# [ 0.107351] NET: Registered protocol family 16
ash: missing ]
root@OpenWrt:# [ 0.112934] MIPS: machine is NETGEAR WNDR3700/WNDR3800/WNDRMA
C
ash: missing ]
root@OpenWrt:
# [ 2.572923] random: fast init done
ash: missing ]
root@OpenWrt:# [ 2.795632] registering PCI controller with io_map_base unset
ash: missing ]
root@OpenWrt:
# [ 2.801368] Can't analyze schedule() prologue at 803b6e5c

[ 2.815383] PCI host bridge to bus 0000:00
[ 2.819536] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
[ 2.826396] pci_bus 0000:00: root bus resource [io 0x0000]
[ 2.831964] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 2.838736] pci_bus 0000:00: No busn resource found for root bus, will use
[bus 00-ff]
[ 2.846687] pci 0000:00:11.0: [168c:ff1d] type 00 class 0x020000
[ 2.846696] pci 0000:00:11.0: fixup device configuration
[ 2.853208] pci 0000:00:11.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[ 2.853261] pci 0000:00:11.0: PME# supported from D0 D3hot
[ 2.853437] pci 0000:00:12.0: [168c:ff1d] type 00 class 0x020000
[ 2.853445] pci 0000:00:12.0: fixup device configuration
[ 2.859985] pci 0000:00:12.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[ 2.860033] pci 0000:00:12.0: PME# supported from D0 D3hot
[ 2.860192] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 2.860219] pci 0000:00:11.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
[ 2.867001] pci 0000:00:12.0: BAR 0: assigned [mem 0x10010000-0x1001ffff]
[ 2.873815] pci 0000:00:11.0: using irq 40 for pin 1
[ 2.878763] pci 0000:00:12.0: using irq 41 for pin 1
[ 2.884318] clocksource: Switched to clocksource MIPS
[ 2.890167] NET: Registered protocol family 2
[ 2.895246] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.902211] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.908611] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.915055] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 2.920883] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 2.927341] NET: Registered protocol family 1
[ 2.931730] PCI: CLS 0 bytes, default 32
[ 2.936317] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 2.948253] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.954075] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIOR
ITY) (c) 2001-2006 Red Hat, Inc.
[ 2.971204] io scheduler noop registered
[ 2.975173] io scheduler deadline registered (default)
[ 2.980540] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 2.987254] console [ttyS0] disabled
[ 3.010878] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1

  1. is a 16550A

[ 3.019580] console [ttyS0] enabled
[ 3.026540] bootconsole [early0] disabled
[ 3.037355] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 3.043565] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 3.048677] 4 cmdlinepart partitions found on MTD device spi0.0
[ 3.054584] Creating 4 MTD partitions on "spi0.0":
[ 3.059365] 0x000000000000-0x000000050000 : "u-boot"
[ 3.065972] 0x000000050000-0x000000070000 : "u-boot-env"
[ 3.072934] 0x000000070000-0x000000ff0000 : "firmware"
[ 3.090974] 2 netgear-fw partitions found on MTD device firmware
[ 3.097018] 0x000000070000-0x0000001cc440 : "kernel"
[ 3.103167] 0x0000001cc440-0x000000ff0000 : "rootfs"
[ 3.109579] mtd: device 4 (rootfs) set to be root filesystem
[ 3.115317] 1 squashfs-split partitions found on MTD device rootfs
[ 3.121496] 0x0000008b0000-0x000000ff0000 : "rootfs_data"
[ 3.128654] 0x000000ff0000-0x000001000000 : "art"
[ 3.135382] Realtek RTL8366S ethernet switch driver version 0.2.2
[ 3.141506] rtl8366s rtl8366s: using GPIO pins 5 (SDA) and 7 (SCK)
[ 3.147825] rtl8366s rtl8366s: RTL8366 ver. 1 chip found
[ 3.204057] libphy: rtl8366s: probed
[ 3.208224] libphy: Fixed MDIO Bus: probed
[ 3.546018] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 3.886235] ag71xx ag71xx.1: connected to PHY at rtl8366s:04 [uid=001cc960,
driver=Generic PHY]
[ 3.895556] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:RGMII
[ 3.902996] NET: Registered protocol family 10
[ 3.910330] NET: Registered protocol family 17
[ 3.914961] 8021q: 802.1Q VLAN Support v1.8
[ 3.925730] VFS: Mounted root (squashfs filesystem) readonly on device 31:4
.
[ 3.933651] Freeing unused kernel memory: 292K
[ 3.938126] This architecture does not have kernel memory protection.
[ 4.637047] init: Console is alive
[ 4.640650] init: - watchdog -
[ 6.041456] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 6.160096] usbcore: registered new interface driver usbfs
[ 6.165720] usbcore: registered new interface driver hub
[ 6.171089] usbcore: registered new device driver usb
[ 6.180470] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 6.188447] ehci-platform: EHCI generic platform driver
[ 6.193739] ehci-platform ehci-platform: EHCI Host Controller
[ 6.199555] ehci-platform ehci-platform: new USB bus registered, assigned b
us number 1
[ 6.207585] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 6.234354] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 6.241359] hub 1-0:1.0: USB hub found
[ 6.245474] hub 1-0:1.0: 2 ports detected
[ 6.251801] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 6.259204] ohci-platform: OHCI generic platform driver
[ 6.264563] ohci-platform ohci-platform: Generic Platform OHCI controller
[ 6.271366] ohci-platform ohci-platform: new USB bus registered, assigned b
us number 2
[ 6.279349] ohci-platform ohci-platform: irq 14, io mem 0x1c000000
[ 6.359143] hub 2-0:1.0: USB hub found
[ 6.363160] hub 2-0:1.0: 2 ports detected
[ 6.368102] kmodloader: done loading kernel modules from /etc/modules-boot.
d/*
[ 6.385776] init: - preinit -
[ 7.219794] ar71xx: pll_reg 0xb8050010: 0x11110000
[ 7.219812] eth0: link up (1000Mbps/Full duplex)
[ 7.329679] random: procd: uninitialized urandom read (4 bytes read)
[ 10.528262] mount_root: loading kmods from internal overlay
[ 10.586590] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[ 10.594841] kmodloader: done loading kernel modules from //etc/modules-boot
.d/*
[ 10.913498] jffs2: notice: (417) jffs2_build_xattr_subsystem: complete buil
ding xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead,
0 orphan) found.
[ 10.929444] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 10.943059] block: extroot: not configured
[ 11.021833] jffs2: notice: (415) jffs2_build_xattr_subsystem: complete buil
ding xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead,
0 orphan) found.
[ 11.038703] mount_root: loading kmods from internal overlay
[ 11.094180] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/
modules-boot.d/*
[ 11.106281] kmodloader: done loading kernel modules from /tmp/overlay/upper
/etc/modules-boot.d/*
[ 11.359579] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 11.370529] block: extroot: not configured
[ 11.375624] mount_root: switching to jffs2 overlay
[ 11.441302] urandom-seed: Seeding with /etc/urandom.seed
[ 11.547245] eth0: link down
[ 11.560757] procd: - early -
[ 11.563733] procd: - watchdog -
[ 12.206725] procd: - watchdog -
[ 12.210116] procd: - ubus -
[ 12.337630] random: ubusd: uninitialized urandom read (4 bytes read)
[ 12.346587] random: ubusd: uninitialized urandom read (4 bytes read)
[ 12.353337] random: ubusd: uninitialized urandom read (4 bytes read)
[ 12.360542] procd: - init -
[ 12.828449] kmodloader: loading kernel modules from /etc/modules.d/*
[ 12.855400] gre: GRE over IPv4 demultiplexor driver
[ 12.862133] ip_gre: GRE over IPv4 tunneling driver
[ 12.879954] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 12.915739] Netfilter messages via NETLINK v0.30.
[ 12.926365] ip_set: protocol 6
[ 13.030632] u32 classifier
[ 13.033343] input device check on
[ 13.037055] Actions configured
[ 13.056329] Mirror/redirect action on
[ 13.131721] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 13.172665] Loading modules backported from Linux version v4.19.7-0-g61c68f
2a2af0
[ 13.180190] Backport generated by backports.git v4.19.7-1-0-g148b072d
[ 13.208988] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 13.361924] ctnetlink v0.93: registering with nfnetlink.
[ 13.567762] usbcore: registered new interface driver usblp
[ 13.670534] xt_time: kernel timezone is -0000
[ 13.731050] fast-classifier (PBR safe v2.1b): starting up
[ 13.736666] fast-classifier (PBR safe v2.1b): registered
[ 13.790509] PPP generic driver version 2.4.2
[ 13.797375] PPP MPPE Compression module registered
[ 13.803746] NET: Registered protocol family 24
[ 13.846021] PCI: Enabling device 0000:00:11.0 (0000 -> 0002)
[ 13.856539] ath: phy0: Ignoring endianness difference in EEPROM magic bytes
.
[ 13.865134] ath: EEPROM regdomain: 0x0
[ 13.865139] ath: EEPROM indicates default country code should be used
[ 13.865142] ath: doing EEPROM country->regdmn map search
[ 13.865152] ath: country maps to regdmn code: 0x3a
[ 13.865157] ath: Country alpha2 being used: US
[ 13.865160] ath: Regpair used: 0x3a
[ 13.879624] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 13.881397] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=40
[ 13.984713] PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
[ 13.995280] ath: phy1: Ignoring endianness difference in EEPROM magic bytes
.
[ 14.003842] ath: EEPROM regdomain: 0x0
[ 14.003846] ath: EEPROM indicates default country code should be used
[ 14.003849] ath: doing EEPROM country->regdmn map search
[ 14.003860] ath: country maps to regdmn code: 0x3a
[ 14.003864] ath: Country alpha2 being used: US
[ 14.003867] ath: Regpair used: 0x3a
[ 14.020558] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 14.022337] ieee80211 phy1: Atheros AR9280 Rev:2 mem=0xb0010000, irq=41
[ 14.034886] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 15.579838] urandom_read: 5 callbacks suppressed
[ 15.579846] random: jshn: uninitialized urandom read (4 bytes read)
[ 18.080501] xt_FULLCONENAT: RFC3489 Full Cone NAT module
[ 18.080501] xt_FULLCONENAT: Copyright (C) 2018 Chion Tang <[email protected]
e>
[ 22.781330] ar71xx: pll_reg 0xb8050010: 0x11110000
[ 22.786606] eth0: link up (1000Mbps/Full duplex)
[ 22.791305] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 22.817989] br-lan: port 1(eth0.1) entered blocking state
[ 22.823387] br-lan: port 1(eth0.1) entered disabled state
[ 22.829174] device eth0.1 entered promiscuous mode
[ 22.833962] device eth0 entered promiscuous mode
[ 22.885269] br-lan: port 1(eth0.1) entered blocking state
[ 22.890666] br-lan: port 1(eth0.1) entered forwarding state
[ 22.896401] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 22.955933] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 23.993104] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 23.999889] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 25.395671] ar71xx: pll_reg 0xb8050014: 0x1099
[ 25.400125] eth1: link up (100Mbps/Full duplex)
[ 25.427964] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 27.641333] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 27.743350] br-lan: port 2(wlan1) entered blocking state
[ 27.748736] br-lan: port 2(wlan1) entered disabled state
[ 27.754450] device wlan1 entered promiscuous mode
[ 27.779219] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 27.898741] br-lan: port 3(wlan0) entered blocking state
[ 27.904055] br-lan: port 3(wlan0) entered disabled state
[ 27.909786] device wlan0 entered promiscuous mode
[ 27.914703] br-lan: port 3(wlan0) entered blocking state
[ 27.920011] br-lan: port 3(wlan0) entered forwarding state
[ 28.754403] br-lan: port 3(wlan0) entered disabled state
[ 31.086416] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[ 31.093194] br-lan: port 2(wlan1) entered blocking state
[ 31.098560] br-lan: port 2(wlan1) entered forwarding state
[ 32.430005] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 32.437125] br-lan: port 3(wlan0) entered blocking state
[ 32.442445] br-lan: port 3(wlan0) entered forwarding state
[ 38.031129] random: crng init done
[20337.925883] do_page_fault(): sending SIGSEGV to smartdns for invalid write
access to 00000004
[20337.934974] epc = 004079d4 in smartdns[400000+30000]
[20337.940244] ra = 00407a40 in smartdns[400000+30000]
[47873.022679] do_page_fault(): sending SIGSEGV to smartdns for invalid write
access to 00000004
[47873.031840] epc = 004079d4 in smartdns[400000+30000]
[47873.037292] ra = 00407a40 in smartdns[400000+30000]

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

[2018-12-18 22:00:30,382][ERROR][ dns_client.c:1522] send query to 8.8.8.8 failed, Connection reset by peer
[2018-12-18 22:00:30,390][ERROR][ dns_client.c:1522] send query to 8.8.8.8 failed, Broken pipe
[2018-12-18 22:00:30,396][ERROR][ dns_client.c:1522] send query to 8.8.8.8 failed, Broken pipe
[2018-12-18 22:00:30,629][ERROR][ dns_client.c:1522] send query to 8.8.8.8 failed, Broken pipe
[2018-12-18 22:00:30,634][ERROR][ dns_client.c:1522] send query to 8.8.8.8 failed, Broken pipe
[2018-12-18 22:01:36,229][ERROR][ dns_client.c:1522] send query to 1.0.0.1 failed, Broken pipe
[2018-12-18 22:03:35,318][ERROR][ dns_server.c:353 ] send failed.
[2018-12-18 22:05:08,711][ERROR][ dns_client.c:1522] send query to 193.112.15.186 failed, Broken pipe
[2018-12-18 22:24:13,186][ERROR][ dns_server.c:278 ] BUG: refcnt is -1
[2018-12-18 22:24:13,190][ERROR][ smartdns.c:285 ] process exit with signal 6
[2018-12-18 22:24:13,753][ERROR][ smartdns.c:285 ] process exit with signal 11

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

最后还是崩溃了,只是时间长了很多。

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

你的网络质量很差啊。是移动的网络吗?

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

是移动的校园网

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

Archive.zip

再看看吧,我这里压力测试没出现,问题定位周期可能比较久。
如果还出现,尝试关闭smartdns的tcp端口,仅用udp提供服务

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

现在关闭了tcp服务器,只用tls

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

推测问题出现在smartdns作为TCP服务器的时候,和上游配置无关。上面那个安装包修改了一个可能的地方。
所以先不更改配置,用我上面发的那个程序,再配合你之前的配置验证下看看。

不行再将smartdns的TCP服务器关掉。(不是上游TCP配置)

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

OK

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

再次崩溃,[2018-12-21 09:57:16,784][ERROR][ dns_client.c:619 ] message type error.
[2018-12-21 09:59:47,824][ERROR][ dns_server.c:537 ] BUG: refcnt is -1, domain apnic1.dnsnode.net
[2018-12-21 09:59:47,827][ERROR][ smartdns.c:283 ] process exit with signal 6, code = -6, errno = 0, pid = 9241, self = 9241, addr = 0x2419

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

有什么办法可以让他自动重启吗

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

你把TCP服务器关掉(非上游服务器),然后再看看。

我这里压力测试两天了,10个客户端并发请求,每秒1000次,没法复现。

mips系统没有办法打印调用栈。最好是你把coredump文件收集一下。
否则我这里现在比较难找到问题原因。

如果你要自动重启,需要自己写脚本监控。

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

TCP服务器上次就已经关闭

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

压力测试很久(包括模拟网络不通,模拟服务器不通,多个IP有些响应,有些不响应),无法复现。
看代码,没有找到可能的地方。
可能是那个特殊配置导致触发了BUG。

详细描述一下你的使用场景

  1. 在什么设备里面运行。
  2. 有多少个客户端。
  3. 是否局域网使用。

把你的配置信息作为文件发给我。包括
/etc/config/smartdns/
/var/etc/smartdns/

另外,如果可以的话。

收集一下coredump文件。

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

主机名 | OpenWrt
主机型号 | NETGEAR WNDR3800 CPU:680Mhz
架构 | Atheros AR7161 rev 2
固件版本 | OpenWrt R8.1.12 By Lean / LuCI Master (git-18.296.11678-2bbc1e3)
内核版本 | 4.9.145
局域网使用
局域网内通常3-5个个设备
smartdns.txt
smartdns.conf.txt

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

coredump文件似乎没有生成,找不到系统的coredump文件

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

smartdns_build.zip

你先拿我压力测试过的版本看看。
我在用你的配置复现看看。

另外,你的上游配置太多,对smartdns压力不小,作业也不会特别明显,还可能拖慢响应速度。
并且最大只支持32个上游,多余的配置都无用了。

建议是,优选几个可信,速度好的上游,上游包含TLS,TCP服务器。
个数控制再20个以下。

from smartdns.

jx-xysm avatar jx-xysm commented on May 22, 2024

嗯嗯

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

Release 18应该解决了此问题,请取用验证。

如还有问题,请reopen issuel

from smartdns.

Masstone avatar Masstone commented on May 22, 2024

我最新版本用作tcp服务器的时候也出现了很多这样的日志

[2019-09-24 11:21:56,900][ERROR][ fast_ping.c:415 ] sendto 17.252.204.85, id 2449, Operation not permitted
[2019-09-24 11:21:56,901][ERROR][ fast_ping.c:415 ] sendto 17.252.156.27, id 2452, Operation not permitted
[2019-09-24 11:22:02,498][ERROR][ fast_ping.c:415 ] sendto 157.240.15.35, id 2521, Operation not permitted
[2019-09-24 11:22:02,504][ERROR][ fast_ping.c:415 ] sendto 31.13.86.1, id 2522, Operation not permitted
[2019-09-24 11:22:38,310][ERROR][ fast_ping.c:415 ] sendto 18.215.96.138, id 2609, Operation not permitted
[2019-09-24 11:22:38,310][ERROR][ fast_ping.c:415 ] sendto 184.73.84.110, id 2610, Operation not permitted
[2019-09-24 11:22:38,310][ERROR][ fast_ping.c:415 ] sendto 3.209.163.60, id 2611, Operation not permitted
[2019-09-24 11:22:38,310][ERROR][ fast_ping.c:415 ] sendto 34.194.28.213, id 2613, Operation not permitted
[2019-09-24 11:22:38,310][ERROR][ fast_ping.c:415 ] sendto 34.192.22.186, id 2614, Operation not permitted
[2019-09-24 11:22:38,310][ERROR][ fast_ping.c:415 ] sendto 34.192.141.36, id 2615, Operation not permitted
[2019-09-24 11:22:38,311][ERROR][ fast_ping.c:415 ] sendto 54.210.33.191, id 2616, Operation not permitted
[2019-09-24 11:22:38,311][ERROR][ fast_ping.c:415 ] sendto 52.73.93.105, id 2618, Operation not permitted
[2019-09-24 11:22:42,959][ERROR][ fast_ping.c:415 ] sendto 17.248.159.112, id 3170, Operation not permitted
[2019-09-24 11:22:42,959][ERROR][ fast_ping.c:415 ] sendto 17.248.159.244, id 3172, Operation not permitted
[2019-09-24 11:22:42,959][ERROR][ fast_ping.c:415 ] sendto 17.250.120.45, id 3173, Operation not permitted
[2019-09-24 11:22:42,959][ERROR][ fast_ping.c:415 ] sendto 17.248.159.81, id 3175, Operation not permitted
[2019-09-24 11:22:45,837][ERROR][ fast_ping.c:415 ] sendto 17.57.145.7, id 3344, Operation not permitted
[2019-09-24 11:22:45,837][ERROR][ fast_ping.c:415 ] sendto 17.57.145.6, id 3348, Operation not permitted
[2019-09-24 11:22:45,838][ERROR][ fast_ping.c:415 ] sendto 17.57.145.4, id 3349, Operation not permitted
[2019-09-24 11:22:45,862][ERROR][ fast_ping.c:415 ] sendto 17.57.145.71, id 3350, Operation not permitted
[2019-09-24 11:22:45,863][ERROR][ fast_ping.c:415 ] sendto 17.57.145.69, id 3354, Operation not permitted

from smartdns.

zonyitoo avatar zonyitoo commented on May 22, 2024

aarch64 架构下遇到 SIGSEGV 。附件中是 core 文件及 smartdns 二进制

smartdns-core.zip

@pymumu 可以看看具体是什么原因。在日志里我没看到有特别明显有用的日志,在某一时间点突然间就挂掉了。

/usr/sbin/smartdns -v
smartdns 1.2020.09.08-2235

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

这个问题一直没有定位到原因,可能和ssl有关系。

from smartdns.

yubanmeiqin9048 avatar yubanmeiqin9048 commented on May 22, 2024

sendto 2001::, id 1, Permission denied
process exit with signal 11
42版本复现
平台:armv7
环境:ImmortalWrt 21.02.6 r20007-6e54cb5d37

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

发复现的配置,可能的域名,还有对应的log。

from smartdns.

yubanmeiqin9048 avatar yubanmeiqin9048 commented on May 22, 2024

发复现的配置,可能的域名,还有对应的log。

我定义的配置为(未定义的配置均为luci默认配置,第二DNS未开启,未配置dnsmasq,luci自定义设置全部注释,以下配置为根据luci中的设置还原):

server-name smartdns

bind [::]:7162

proxy-server socks5://192.168.0.1:7891 -name Proxy

server-https https://8.8.4.4/dns-query -proxy Proxy -host-name dns.google -http-host dns.google -group remote
server-https https://1.0.0.1/dns-query -proxy Proxy -host-name cloudflare-dns.com -http-host cloudflare-dns.com -group remote
server-https https://94.140.15.15/dns-query -proxy Proxy -host-name dns.adguard.com -http-host dns.adguard.com -group remote

server-https https://120.53.53.53/dns-query -group local -host-name doh.pub -http-host doh.pub
server-https https://223.5.5.5/dns-query -group local -host-name dns.alidns.com -http-host dns.alidns.com

domain-set -name cn -type list -file /path/to/smartdns/accelerated-domains.china.txt
domain-set -name gfw -type list -file /path/to/smartdns/accelerated-domains.gfw.txt

nameserver /domain-set:cn/local
address /tracker.publicbt.com/#

domain-rules /domain-set:gfw/ -n remote -c none -r fastest-response -d no -no-serve-expired

当时我没开LOG,我是发现内网的dns查询完全瘫痪的时候上去打开的日志
打开日志之后的操作:进luci点重启,起不来,多次尝试重启无果后重启设备,重启设备之后smartdns正常启动
重启的日志是:
sendto 2001::, id 1, Permission denied
process exit with signal 11
process exit with signal 11
process exit with signal 11
process exit with signal 11
process exit with signal 11
...
很遗憾没有其他更多的有用信息了..

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

是用的最新代码,还是release 42版本?

还有,发一下完整的log,包括“process exit with signal”

from smartdns.

yubanmeiqin9048 avatar yubanmeiqin9048 commented on May 22, 2024

用的是imm软件源中的版本

root@ImmortalWrt:~# smartdns -v
smartdns 42

当时重启得比较着急,完整的包含时间戳的日志已经没了(忘记保存下来了)
不过日志就是上面那些,点重启之后一直重复报,没有其他信息
process exit with signal 11

from smartdns.

pymumu avatar pymumu commented on May 22, 2024

看看能不能找到复现方法把,要不然也不知道异常原因。

这个可能是短时间内,有某个请求出发了同一个BUG。

from smartdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.