SagerNet / v2ray-core

A platform for building proxies to bypass network restrictions (for SagerNet :)
Other
230 stars 29 forks source link

Shadowsocks_sing crash #11

Open chromer030 opened 2 years ago

chromer030 commented 2 years ago

What version of V2Ray are you using?

5.0.9

What's your scenario of using V2Ray?

Various tasks via Socks.

What problems have you encountered?

crash on shadowsocks_sing

What's your expectation?

Please attach your configuration here

Server configuration:

// Please attach your server configuration here.

Client configuration:

// Please attach your client configuration here.

Please attach error logs here

Server error log:

// Please attach your server error log here.

Client error log:

// Please attach your client error log here.

Please attach access log here

// Please attach your server access log here.

Other configurations (such as Nginx) and logs here

If V2Ray cannot start up, please attach output from --test command

If V2Ray service is abnormal, please attach journal log here

V2Ray 5.0.9 (V2Fly, a community-driven edition of V2Ray.) SagerNet (go1.18.1 linux/amd64)                                                                                                          
A unified platform for anti-censorship.                                                                                                                                                            
panic: runtime error: invalid memory address or nil pointer dereference                                                                                                                            
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xf30ee0]                                                                                                                             

goroutine 1 [running]:                                                                                                                                                                             
github.com/v2fly/v2ray-core/v5/infra/conf/cfgcommon.(*Address).Build(...)                                                                                                                          
        github.com/v2fly/v2ray-core/v5/infra/conf/cfgcommon/common.go:56                                                                                                                           
github.com/v2fly/v2ray-core/v5/infra/conf/v4.(*ShadowsocksSingClientConfig).Build(0xc000430960)                                                                                                    
        github.com/v2fly/v2ray-core/v5/infra/conf/v4/shadowsocks_sing.go:20 +0x20                                                                                                                  
github.com/v2fly/v2ray-core/v5/infra/conf/v4.(*OutboundDetourConfig).Build(0xc0004eb908)                                                                                                           
        github.com/v2fly/v2ray-core/v5/infra/conf/v4/v2ray.go:275 +0x710                                                                                                                           
github.com/v2fly/v2ray-core/v5/infra/conf/v4.(*Config).Build(0xc0000e00f0)                                                                                                                         
        github.com/v2fly/v2ray-core/v5/infra/conf/v4/v2ray.go:557 +0x1e1e                                                                                                                          
github.com/v2fly/v2ray-core/v5/main/formats.makeLoaderFunc.func1({0x1044860, 0xc00000c750})                                                                                                        
        github.com/v2fly/v2ray-core/v5/main/formats/formats.go:54 +0xff                                                                                                                            
github.com/v2fly/v2ray-core/v5.loadSingleConfigAutoFormat({0x1044860?, 0xc00000c738?})                                                                                                             
        github.com/v2fly/v2ray-core/v5/config.go:142 +0x25d                                      
github.com/v2fly/v2ray-core/v5.LoadConfig({0x123fe79, 0x4}, {0x1044860, 0xc00000c738})                                                                                                             
        github.com/v2fly/v2ray-core/v5/config.go:109 +0xd1                                       
github.com/v2fly/v2ray-core/v5/main/commands.startV2Ray()                                        
        github.com/v2fly/v2ray-core/v5/main/commands/run.go:195 +0x52                                                                                                                              
github.com/v2fly/v2ray-core/v5/main/commands.executeRun(0x1c8e100, {0xc00011a060, 0x2, 0x2})                                                                                                       
        github.com/v2fly/v2ray-core/v5/main/commands/run.go:82 +0xca                                                                                                                               
github.com/v2fly/v2ray-core/v5/main/commands/base.Execute()                                      
        github.com/v2fly/v2ray-core/v5/main/commands/base/execute.go:64 +0x638                                                                                                                     
main.main()                                     
        github.com/v2fly/v2ray-core/v5/main/main.go:16 +0x24f