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

Added signal monitoring, sometimes crashes. #25

Open
janshao opened this issue Sep 27, 2024 · 1 comment
Open

Added signal monitoring, sometimes crashes. #25

janshao opened this issue Sep 27, 2024 · 1 comment

Comments

@janshao
Copy link

janshao commented Sep 27, 2024

OpenIM Server Version

3.8.0

Operating System and CPU Architecture

macOS (ARM)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

2024-09-27 04:24:07.271 �[37mDEBUG�[0m �[37m[PID:66611] �[0m [version:3.8.0] [interaction/long_conn_mgr.go:236] writePump start {"operationID": "1727411044340", "goroutine ID:": 83}
Received signal 16
2024-09-27 04:24:07.271 �[37mDEBUG�[0m �[37m[PID:66611] �[0m [version:3.8.0] [interaction/long_conn_mgr.go:285] heartbeat start {"operationID": "1727411044340", "goroutine ID:": 84}
Received signal 16
0 OpenIM-Native 0x0000000100995e80 $s13OpenIM_Native13signalHandler0D0ys5Int32V_tF + 1088
1 OpenIM-Native 0x0000000100996980 $s13OpenIM_Native13signalHandler0D0ys5Int32V_tFTo + 12
2 libsystem_platform.dylib 0x000000022e579c10 25852896-923D-32F0-B5C5-760C79CFC4D3 + 7184
3 OpenIM-Native 0x0000000100d72c0c runtime.tracebackPCs + 220
4 OpenIM-Native 0x0000000100d74898 runtime.callers.func1 + 152
5 OpenIM-Native 0x0000000100d7eb4c runtime.systemstack.abi0 + 108
0 OpenIM-Native 0x0000000100995e80 $s13OpenIM_Native13signalHandler0D0ys5Int32V_tF + 1088
1 OpenIM-Native 0x0000000100996980 $s13OpenIM_Native13signalHandler0D0ys5Int32V_tFTo + 12
2 libsystem_platform.dylib 0x000000022e579c10 25852896-923D-32F0-B5C5-760C79CFC4D3 + 7184
3 libsystem_c.dylib 0x00000001c84da0e4 nanosleep + 220
4 libsystem_c.dylib 0x00000001c84dae14 usleep + 68
5 OpenIM-Native 0x0000000100d82384 runtime.usleep_trampoline.abi0 + 20
6 OpenIM-Native 0x0000000100d81018 runtime.asmcgocall.abi0 + 200
2024-09-27 04:24:07.272 �[37mDEBUG�[0m �[37m[PID:66611] �[0m [version:3.8.0] [interaction/long_conn_mgr.go:661] conn start {"operationID": "1727411047629409468", "url": "ws://xxxxxxxxx:10001?sendID=9326718229&token=eyJhbGciOiJIUzI1CI6IkpXVCJ9.eyJVc2VySUQiOiI5MzI2NzE4MjI5IiwiUGxhdGZvcm1JRCI6MSwiZXhwIjoxNzMyNTA2uYmYiOjE3MjQ3MzA1NDQsImlhdCI6MTcyNDczMDg0NH0.Nka6arRDeWTIU-hWmt9oHtO9NvKvWNjfQI&platformID=1&operationID=1727411047629409468&isBackground=false&compression=gzip"}

以下为我项目中日志crash:
2024-09-27 14:29:04.506651+0800 GoHome[67611:7123335] signal:16
Stack:
0 GoHome 0x000000010128c2bc SignalHandler + 228
1 libsystem_platform.dylib 0x000000022e579c10 25852896-923D-32F0-B5C5-760C79CFC4D3 + 7184

2 Security 0x00000001c648f138 SecTrustGetVerifyTime + 152
3 Security 0x00000001c648f138 SecTrustGetVerifyTime + 152
4 Security 0x00000001c648f248 74FFA781-CAE6-30E0-97FA-B4BC3F3C28A8 + 950856
5 Security 0x00000001c6492d84 SecTrustGetCertificateCount + 36
6 GoHome 0x00000001023fd084 runtime.syscall_x509.abi0 + 52
7 GoHome 0x00000001023fb54c runtime.asmcgocall.abi0 + 124

Screenshots Link

截屏2024-09-27 14 38 14
@std-s
Copy link
Member

std-s commented Oct 29, 2024

You can go and have a look at Signal.

@std-s std-s changed the title appdelegate中添加signal监控,运行demo,初始化、登录过程中,捕获到SIGURG堆栈问题,有时会崩溃 Added signal monitoring, sometimes crashes. Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants