Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIng-box for Android (SFA) 1.10.3 stable, x64, app crash during runnig config: runtime.printlock #2372

Closed
4 of 5 tasks
08atlas80 opened this issue Dec 16, 2024 · 3 comments
Closed
4 of 5 tasks
Labels
bug Something isn't working

Comments

@08atlas80
Copy link

Operating system

Android

System version

9

Installation type

sing-box for Android Graphical Client

If you are using a graphical client, please provide the version of the client.

1.10.3 x64

Version

No response

Description

Hello.
Here is problem with SIng-box for Android (SFA) 1.10.3 stable, x64, error during start: runtime.printlock.
Android 9 LineageOS.

Sing-box for Android, verison 1.8.14 works excellent on the same smartphone.
Both SFA 1.10.3 and 1.11.0-beta.11 works well on Android 13.

Reproduction

Install SFA 1.10.3 from GitHub.
Create config

{
  "log": {
    "level": "info",
    "timestamp": true
  }
}

Run config
SFA immediately closes.

Then check /storage/emulated/0/Android/data/io.nekohasekai.sfa/files/stderr.log
A bit differ log can be obtained with SFA 1.11.0-beta.11

Logs

runtime: newstack at runtime.printlock+0x78 sp=0x40000411a0 stack=[0x400003e000, 0x4000042000]
	morebuf={pc:0x7dd67bcc90 sp:0x40000411a0 lr:0x0}
	sched={pc:0x7dd67f2658 sp:0x40000411a0 lr:0x7dd67bcc90 ctxt:0x0}
runtime.callbackUpdateSystemStack(0x4000180008, 0x7d8eb965b0, 0x0)
	runtime/cgocall.go:257 +0x90 fp=0x4000041200 sp=0x40000411a0 pc=0x7dd67bcc90
runtime.cgocallbackg(0x7dd72267d0, 0x7d8eb966a8, 0x0)
	runtime/cgocall.go:322 +0x68 fp=0x4000041250 sp=0x4000041200 pc=0x7dd67bce58
runtime.cgocallbackg(0x7dd72267d0, 0x7d8eb966a8, 0x0)
	<autogenerated>:1 +0x1c fp=0x4000041280 sp=0x4000041250 pc=0x7dd683597c
runtime.cgocallback(0x40000412f8, 0x7dd7211460, 0x7dd7238308)
	runtime/asm_arm64.s:1131 +0xb0 fp=0x40000412b0 sp=0x4000041280 pc=0x7dd6833c40
runtime.systemstack_switch()
	runtime/asm_arm64.s:201 +0x8 fp=0x40000412c0 sp=0x40000412b0 pc=0x7dd6831808
runtime.cgocall(0x7dd7238308, 0x4000041338)
	runtime/cgocall.go:185 +0x70 fp=0x4000041300 sp=0x40000412c0 pc=0x7dd6824da0
main._Cfunc_cproxylibbox_PlatformInterface_WriteLog(0x2c, {0x7de7460440, 0x8c, {0x0, 0x0, 0x0, 0x0}})
	_cgo_gotypes.go:1148 +0x30 fp=0x4000041330 sp=0x4000041300 pc=0x7dd7211460
main.(*proxylibbox_PlatformInterface).WriteLog.func1(0x400013a78c, {0x7de7460440, 0x8c, {0x0, 0x0, 0x0, 0x0}})
	github.com/sagernet/sing-box/build/arm64/libbox/go_libboxmain.go:3604 +0x78 fp=0x4000041390 sp=0x4000041330 pc=0x7dd7221318
main.(*proxylibbox_PlatformInterface).WriteLog(0x400013a78c, {0x4000218050?, 0x400003c200?})
	github.com/sagernet/sing-box/build/arm64/libbox/go_libboxmain.go:3604 +0x44 fp=0x40000413d0 sp=0x4000041390 pc=0x7dd7221264
github.com/sagernet/sing-box/experimental/libbox.(*platformInterfaceWrapper).WriteMessage(0xc1d037b216b1c270?, 0x3e?, {0x4000218050?, 0xc1d037b21437a1ff?})
	github.com/sagernet/sing-box/experimental/libbox/service.go:236 +0x34 fp=0x4000041400 sp=0x40000413d0 pc=0x7dd7206814
github.com/sagernet/sing-box/log.(*observableLogger).Log(0x400000e030, {0x7dd751cc98, 0x7dd7d54600}, 0x3c?, {0x4000020080, 0x4, 0x4})
	github.com/sagernet/sing-box/log/observable.go:139 +0x410 fp=0x4000041520 sp=0x4000041400 pc=0x7dd6b8ced0
github.com/sagernet/sing-box/log.(*observableLogger).InfoContext(...)
	github.com/sagernet/sing-box/log/observable.go:180
github.com/sagernet/sing-box/log.(*observableLogger).Info(0x20f?, {0x4000020080?, 0x8?, 0x400012e240?})
	github.com/sagernet/sing-box/log/observable.go:152 +0x44 fp=0x4000041570 sp=0x4000041520 pc=0x7dd6b8d094
github.com/sagernet/sing-box/route.(*Router).notifyNetworkUpdate(0x40002cc008, 0x4000166ec8?)
	github.com/sagernet/sing-box/route/router.go:1313 +0x1dc fp=0x40000415e0 sp=0x4000041570 pc=0x7dd719f28c
github.com/sagernet/sing-box/route.(*Router).notifyNetworkUpdate-fm(0x40002cc008?)
	<autogenerated>:1 +0x30 fp=0x4000041600 sp=0x40000415e0 pc=0x7dd71bd460
github.com/sagernet/sing-box/experimental/libbox.(*platformDefaultInterfaceMonitor).UpdateDefaultInterface(0x4000226080, {0x4000010234, 0x5}, 0x20f)
	github.com/sagernet/sing-box/experimental/libbox/monitor.go:133 +0x47c fp=0x40000416e0 sp=0x4000041600 pc=0x7dd7202e7c
main.proxylibbox_InterfaceUpdateListener_UpdateDefaultInterface(0x41768?, {0x7de7d3c640, 0x5, {0x0, 0x0, 0x0, 0x0}}, 0x20f)
	github.com/sagernet/sing-box/build/arm64/libbox/go_libboxmain.go:2696 +0xb0 fp=0x4000041720 sp=0x40000416e0 pc=0x7dd721d2f0
_cgoexp_9dfb7411b9a1_proxylibbox_InterfaceUpdateListener_UpdateDefaultInterface(0x40000417b8?)
	_cgo_gotypes.go:4075 +0x38 fp=0x4000041760 sp=0x4000041720 pc=0x7dd722c758
runtime.cgocallbackg1(0x7dd722c720, 0x7d8eb977b0, 0x0)
	runtime/cgocall.go:442 +0x21c fp=0x4000041830 sp=0x4000041760 pc=0x7dd67bd18c
runtime.cgocallbackg(0x7dd722c720, 0x7d8eb977b0, 0x0)
	runtime/cgocall.go:361 +0xf4 fp=0x4000041880 sp=0x4000041830 pc=0x7dd67bcee4
runtime.cgocallbackg(0x7dd722c720, 0x7d8eb977b0, 0x0)
	<autogenerated>:1 +0x1c fp=0x40000418b0 sp=0x4000041880 pc=0x7dd683597c
runtime.cgocallback(0x4000041928, 0x7dd7211114, 0x7dd723810c)
	runtime/asm_arm64.s:1131 +0xb0 fp=0x40000418e0 sp=0x40000418b0 pc=0x7dd6833c40
runtime.systemstack_switch()
	runtime/asm_arm64.s:201 +0x8 fp=0x40000418f0 sp=0x40000418e0 pc=0x7dd6831808
runtime.cgocall(0x7dd723810c, 0x4000041968)
	runtime/cgocall.go:185 +0x70 fp=0x4000041930 sp=0x40000418f0 pc=0x7dd6824da0
main._Cfunc_cproxylibbox_PlatformInterface_StartDefaultInterfaceMonitor(0x2c, 0xffffffe6)
	_cgo_gotypes.go:1055 +0x34 fp=0x4000041960 sp=0x4000041930 pc=0x7dd7211114
main.(*proxylibbox_PlatformInterface).StartDefaultInterfaceMonitor(0x400013a78c, {0x7dd750ace8?, 0x4000226080?})
	github.com/sagernet/sing-box/build/arm64/libbox/go_libboxmain.go:3543 +0x88 fp=0x40000419b0 sp=0x4000041960 pc=0x7dd7220cc8
github.com/sagernet/sing-box/experimental/libbox.(*platformDefaultInterfaceMonitor).Start(0x7dd7d0a2b0?)
	github.com/sagernet/sing-box/experimental/libbox/monitor.go:39 +0x3c fp=0x40000419e0 sp=0x40000419b0 pc=0x7dd720219c
github.com/sagernet/sing-box/route.(*Router).PreStart(0x40002cc008)
	github.com/sagernet/sing-box/route/router.go:461 +0x188 fp=0x4000041a60 sp=0x40000419e0 pc=0x7dd7194a38
github.com/sagernet/sing-box.(*Box).preStart(0x40002d7720)
	github.com/sagernet/sing-box/box.go:266 +0x5e4 fp=0x4000041be0 sp=0x4000041a60 pc=0x7dd71e7064
github.com/sagernet/sing-box.(*Box).start(0x40002d7720)
	github.com/sagernet/sing-box/box.go:278 +0x28 fp=0x4000041d80 sp=0x4000041be0 pc=0x7dd71e7668
github.com/sagernet/sing-box.(*Box).Start(0x40002d7720)
	github.com/sagernet/sing-box/box.go:220 +0x30 fp=0x4000041e10 sp=0x4000041d80 pc=0x7dd71e67e0
github.com/sagernet/sing-box/experimental/libbox.(*BoxService).Start(...)
	github.com/sagernet/sing-box/experimental/libbox/service.go:76
main.proxylibbox_BoxService_Start(0xffffff01?)
	github.com/sagernet/sing-box/build/arm64/libbox/go_libboxmain.go:117 +0x3c fp=0x4000041e40 sp=0x4000041e10 pc=0x7dd721273c
_cgoexp_9dfb7411b9a1_proxylibbox_BoxService_Start(0x7d8eb98fb8)
	_cgo_gotypes.go:1664 +0x28 fp=0x4000041e60 sp=0x4000041e40 pc=0x7dd7225f28
runtime.cgocallbackg1(0x7dd7225f00, 0x7d8eb98fb8, 0x0)
	runtime/cgocall.go:442 +0x21c fp=0x4000041f30 sp=0x4000041e60 pc=0x7dd67bd18c
runtime.cgocallbackg(0x7dd7225f00, 0x7d8eb98fb8, 0x0)
	runtime/cgocall.go:361 +0xf4 fp=0x4000041f80 sp=0x4000041f30 pc=0x7dd67bcee4
runtime.cgocallbackg(0x7dd7225f00, 0x7d8eb98fb8, 0x0)
	<autogenerated>:1 +0x1c fp=0x4000041fb0 sp=0x4000041f80 pc=0x7dd683597c
runtime.cgocallback(0x0, 0x0, 0x0)
	runtime/asm_arm64.s:1131 +0xb0 fp=0x4000041fe0 sp=0x4000041fb0 pc=0x7dd6833c40
runtime.goexit({})
	runtime/asm_arm64.s:1223 +0x4 fp=0x4000041fe0 sp=0x4000041fe0 pc=0x7dd6833d34
fatal error: runtime: stack split at bad time

Supporter

Integrity 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 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.
  • 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.
  • 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.
@08atlas80 08atlas80 changed the title SIng-box for Android (SFA) 1.10.3 stable, x64, error during start: runtime.printlock SIng-box for Android (SFA) 1.10.3 stable, x64, error during runnig config: runtime.printlock Dec 16, 2024
@08atlas80
Copy link
Author

08atlas80 commented Dec 20, 2024

Hello.
New version of SFA 1.10.4 stable still crashes on Android 8, 9 with the same reason (log):
runtime: newstack at runtime.printlock+0x78

I found issue at GoLang Github page: golang/go#68760

Here is info, may be it can help to solve crash on old Android version.
golang/go#68760 (comment)

$ git clone https://go.googlesource.com/go
$ cd go
$ git checkout release-branch.go1.23
$ git revert 3560cf0afb3c29300a6c88ccd98256949ca7a6f6
$ cd src
$ ./make.bash

@08atlas80 08atlas80 changed the title SIng-box for Android (SFA) 1.10.3 stable, x64, error during runnig config: runtime.printlock SIng-box for Android (SFA) 1.10.3 stable, x64, app crash during runnig config: runtime.printlock Dec 20, 2024
@nekohasekai nekohasekai added the bug Something isn't working label Dec 26, 2024
@nekohasekai
Copy link
Member

Try 1.11.0-beta.15

@08atlas80
Copy link
Author

Try 1.11.0-beta.15
Hello!
Tried 1.11.0-beta.15. Great! Issue solved. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants