Skip to content

SIGFAULT carshing due bad HOST name #6315

Closed

Description

@axet

Integrity requirements

  • I have read all the comments in the issue template and ensured that this issue meet the requirements.
  • 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.
  • I provided the complete config and logs, rather than just providing the truncated parts based on my own judgment.
  • I searched issues and did not find any similar issues.
  • The problem can be successfully reproduced in the latest Release

Description

Following confing causing xray to crash due to incorrect host name (containing slash).

{
  "outbounds": [
{
  "protocol": "vless",
  "settings": {
    "vnext": [
      {
        "address": "1111",
        "port": 20118,
        "users": [
          {
            "id": "142dd8b5-0b9e-4018-a961-2370d50cc435",
            "encryption": "none"
          }
        ]
      }
    ]
  },
  "streamSettings": {
    "network": "xhttp",
    "security": "none",
    "xhttpSettings": {
      "host": "hub.docker.com/?tets",
      "mode": "stream-one"
    }
  },
}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe434ed]

goroutine 19 [running]:
github.com/xtls/xray-core/transport/internet/splithttp.(*Config).FillStreamRequest(0x2875c7c14a80, 0x0, {0x0, 0x0}, {0x2875c7930030?, 0x7f957241fe08?})
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/transport/internet/splithttp/config.go:296 +0x4d
github.com/xtls/xray-core/transport/internet/splithttp.(*DefaultDialerClient).OpenStream(0x2875c7922040, {0x16317b8, 0x2875c79160c0}, {0x2875c7930030, 0x20}, {0x0, 0x0}, {0x161c8a0, 0x2875c79201e0}, 0x0)
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/transport/internet/splithttp/client.go:63 +0x28e
github.com/xtls/xray-core/transport/internet/splithttp.Dial({0x16317b8, 0x2875c79160c0}, {{0x1631b18, 0x2875c7beeb38}, 0x4e96, 0x2}, 0x2875c7bf4850)
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/transport/internet/splithttp/dialer.go:472 +0x10c6
github.com/xtls/xray-core/transport/internet.Dial({0x16317b8, 0x2875c79160c0}, {{0x1631b18?, 0x2875c7beeb38?}, 0xeb38?, 0x2875?}, 0x0?)
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/transport/internet/dialer.go:63 +0x168
github.com/xtls/xray-core/app/proxyman/outbound.(*Handler).Dial(0x2875c7c39200, {0x16317b8, 0x2875c79160c0}, {{0x1631b18, 0x2875c7beeb38}, 0x4e96, 0x2})
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/proxyman/outbound/handler.go:316 +0x971
github.com/xtls/xray-core/proxy/vless/outbound.(*Handler).Process.func2()
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/proxy/vless/outbound/outbound.go:194 +0x4c
github.com/xtls/xray-core/common/retry.(*retryer).On(0x2875c78f9720, 0x2875c78f97d0)
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/common/retry/retry.go:27 +0xc3
github.com/xtls/xray-core/proxy/vless/outbound.(*Handler).Process(0x2875c7c3e960, {0x16317b8, 0x2875c79160c0}, 0x2875c791c020, {0x162f190, 0x2875c7c39200})
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/proxy/vless/outbound/outbound.go:192 +0x385
github.com/xtls/xray-core/app/proxyman/outbound.(*Handler).Dispatch(0x2875c7c39200, {0x16317b8, 0x2875c79160c0}, 0x2875c791c020)
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/proxyman/outbound/handler.go:242 +0x930
github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).routedDispatch(0x2875c7c3e780, {0x16317b8, 0x2875c79160c0}, 0x2875c791c020, {{0x1631b88, 0x2875c7912020}, 0x1bb, 0x2})
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/dispatcher/default.go:518 +0xaa2
github.com/xtls/xray-core/app/dispatcher.(*DefaultDispatcher).DispatchLink(0x2875c7c3e780, {0x16317b8, 0x2875c79160c0}, {{0x1631b88?, 0x2875c7912020?}, 0x3c30?, 0x2875?}, 0x2875c791c020)
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/dispatcher/default.go:358 +0x38a
github.com/xtls/xray-core/common/mux.(*Server).DispatchLink(0x2875c7beb730?, {0x16317b8?, 0x2875c79160c0?}, {{0x1631b88?, 0x2875c7912020?}, 0x60?, 0x2875?}, 0x2875c791c020?)
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/common/mux/server.go:64 +0xda
github.com/xtls/xray-core/proxy/socks.(*Server).processTCP(0x2875c7c3af60, {0x16317b8, 0x2875c7a9c0f0}, {0x7f952911f0a0, 0x2875c7a9e000}, {0x16367c0, 0x2875c7beb730}, {0x2875c7aac00c, 0x1, 0x1})
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/proxy/socks/server.go:163 +0xae9
github.com/xtls/xray-core/proxy/socks.(*Server).Process(0x2875c7c3af60, {0x16317b8, 0x2875c7a9c0f0}, 0x2, {0x7f952911f0a0, 0x2875c7a9e000}, {0x16367c0, 0x2875c7beb730})
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/proxy/socks/server.go:96 +0x35f
github.com/xtls/xray-core/app/proxyman/inbound.(*tcpWorker).callback(0x2875c7c31400, {0x7f952911f0a0, 0x2875c7a9e000})
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/proxyman/inbound/worker.go:130 +0x949
created by github.com/xtls/xray-core/app/proxyman/inbound.(*tcpWorker).Start.func1 in goroutine 18
	/home/axet/.go/pkg/mod/github.com/xtls/[email protected]/app/proxyman/inbound/worker.go:151 +0x7a

Reproduction Method

run xray with config above.

Client config

above

Server config

above

Client log

above

Server log

above

Activity

  1. axet commented on Jun 12, 2026

    @axet
    Author

    symbol "@" also crashing xray

  2. bytecategory commented on Jun 12, 2026

    @bytecategory
    Contributor

    标题拼写错了,carshing应该改成crashing

  3. axet commented on Jun 13, 2026

    @axet
    Author

    Yes. It should work. Thanks.

  4. reopened this on Jun 18, 2026
  5. added a commit that references this issue on Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions