If a WireGuard outbound with domain name in server field are listed in a selector outbound, sing-box will crash. If it is changed to IP address instead, sing-box won't crash. If the WireGuard outbound is put into final field directly, it won't crash, either.
I've tracked it down and the problem causing crash was introduced between 1.8.0-beta.4 and 1.8.0-beta.6. In 1.8.0-beta.4 the following configuration file won't crash sing-box (although sing-box will stuck retrying DNS lookup, say dns: lookup failed for reddit.com: exchange6: connect udp 1.1.1.1:53: no route to host | exchange4: connect udp 1.1.1.1:53: no route to host), and starting from 1.8.0-beta.6 sing-box will crash (invalid memory address or nil pointer dereference).
[X] I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
[X] I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
[X] I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
[X] I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
Operating system
Windows
System version
Windows 11 Enterprise 23H2 (22631.3672)
Installation type
Original sing-box Command Line
If you are using a graphical client, please provide the version of the client.
No response
Version
Description
If a WireGuard outbound with domain name in
server
field are listed in a selector outbound, sing-box will crash. If it is changed to IP address instead, sing-box won't crash. If the WireGuard outbound is put intofinal
field directly, it won't crash, either.I've tracked it down and the problem causing crash was introduced between
1.8.0-beta.4
and1.8.0-beta.6
. In1.8.0-beta.4
the following configuration file won't crash sing-box (although sing-box will stuck retrying DNS lookup, saydns: lookup failed for reddit.com: exchange6: connect udp 1.1.1.1:53: no route to host | exchange4: connect udp 1.1.1.1:53: no route to host
), and starting from1.8.0-beta.6
sing-box will crash (invalid memory address or nil pointer dereference).Reproduction
In elevated command prompt, run:
The content of
config.json
:Logs
Supporter
Integrity requirements