Giter VIP home page Giter VIP logo

Comments (5)

nekohasekai avatar nekohasekai commented on September 13, 2024

Try adb2938

from sing-box.

dyhkwong avatar dyhkwong commented on September 13, 2024

same panic

INFO[0000] router: loaded geosite database: 1000 codes
INFO[0000] router: updated default interface WLAN, index 5
INFO[0000] inbound/tun[tun-in]: started at tun0
INFO[0000] sing-box started (0.222s)
INFO[0000] [1446869591] inbound/tun[tun-in]: inbound packet connection from 172.19.0.1:137
INFO[0000] [1446869591] inbound/tun[tun-in]: inbound packet connection to 172.19.0.3:137
DEBUG[0000] [1446869591] router: found process path: :System
INFO[0000] [1446869591] outbound/socks[proxy]: outbound packet connection to 172.19.0.3:137
panic: buffer overflow: cap 8116,start 0, need 10

goroutine 70 [running]:
github.com/sagernet/sing/common/buf.(*Buffer).ExtendHeader(0xc00011b260, 0xa)
        github.com/sagernet/[email protected]/common/buf/buffer.go:150 +0x1b9
github.com/sagernet/sing/protocol/socks.(*AssociatePacketConn).WritePacket(0xc0001fc0c0, 0xc00011b260, {{{0x0, 0xffffac130003}, 0xc000004060}, 0x89, {0x0, 0x0}})
        github.com/sagernet/[email protected]/protocol/socks/packet.go:102 +0x139
github.com/sagernet/sing/common/bufio.CopyPacketWithSrcBuffer({0x15ee3ade138?, 0xc0001fc0c0}, {0x15ee3ade198, 0xc00006f540})
        github.com/sagernet/[email protected]/common/bufio/conn.go:260 +0x163
github.com/sagernet/sing/common/bufio.CopyPacket({0x15ee3ade138, 0xc0001fc0c0}, {0x15ee3ade158?, 0xc0001980a0?})
        github.com/sagernet/[email protected]/common/bufio/conn.go:168 +0x151
github.com/sagernet/sing/common/bufio.CopyPacketConn.func1({0xe?, 0xc0001b1fd0?})
        github.com/sagernet/[email protected]/common/bufio/conn.go:360 +0x6c
github.com/sagernet/sing/common/task.Any.func1()
        github.com/sagernet/[email protected]/common/task/task.go:43 +0x37
created by github.com/sagernet/sing/common/task.Any
        github.com/sagernet/[email protected]/common/task/task.go:42 +0xa5

from sing-box.

nekohasekai avatar nekohasekai commented on September 13, 2024

2d3d46e

from sing-box.

dyhkwong avatar dyhkwong commented on September 13, 2024

Fixed by 2d3d46e, thanks.

from sing-box.

reeceyng avatar reeceyng commented on September 13, 2024

Server side panic when use smux

panic: runtime error: slice bounds out of range [:20737] with capacity 16384

goroutine 1726 [running]:
github.com/sagernet/sing/common/buf.(*Buffer).ReadFullFrom(0x7f0eac140c58?, {0x7f0eac140c58?, 0xc0009b50b0?}, 0x119c9f8?)
        /home/ubuntu/go/pkg/mod/github.com/sagernet/[email protected]/common/buf/buffer.go:205 +0xaf
github.com/sagernet/sing-box/common/mux.(*ServerPacketConn).ReadPacket(0xc000089ef0, 0xc000edfe80?)
        /home/ubuntu/go/pkg/mod/github.com/sagernet/[email protected]/common/mux/service.go:159 +0xd1
github.com/sagernet/sing/common/bufio.CopyPacket({0x7f0eac134768, 0xc0000149c8}, {0x7f0eac140d78?, 0xc000089ef0?})
        /home/ubuntu/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:188 +0x38f
github.com/sagernet/sing/common/bufio.CopyPacketConn.func1({0x0?, 0x0?})
        /home/ubuntu/go/pkg/mod/github.com/sagernet/[email protected]/common/bufio/conn.go:262 +0x6c
github.com/sagernet/sing/common/task.(*Group).Run.func1()
        /home/ubuntu/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:59 +0x93
created by github.com/sagernet/sing/common/task.(*Group).Run
        /home/ubuntu/go/pkg/mod/github.com/sagernet/[email protected]/common/task/task.go:58 +0x54a

from sing-box.

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.