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

process crash when running perflog on macos #1480

Closed
1 of 2 tasks
singular-seal opened this issue Jun 1, 2023 · 4 comments · Fixed by #1481
Closed
1 of 2 tasks

process crash when running perflog on macos #1480

singular-seal opened this issue Jun 1, 2023 · 4 comments · Fixed by #1481
Labels
bug type bug

Comments

@singular-seal
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Version

OS - macos 13.3.1 (a)
Kvrocks - 2.4.0

Minimal reproduce step

1.config set profiling-sample-commands set
2.config set profiling-sample-ratio 100
3.config set profiling-sample-record-threshold-ms 0
4.set a 1

Then the process crashed.

What did you expect to see?

shows 'OK'

What did you see instead?

process crashed

Anything Else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@singular-seal singular-seal added the bug type bug label Jun 1, 2023
@git-hulk
Copy link
Member

git-hulk commented Jun 1, 2023

Hi @singular-seal

Can you paste the core stack in logs file?

@singular-seal
Copy link
Author

E20230601 21:40:46.598451 2739503 main.cc:86] ======= Ooops! kvrocks unstable (commit 4218a2b) got signal: Segmentation fault: 11 (11) =======
E20230601 21:40:46.608981 2739503 main.cc:101] 1 libsystem_platform.dylib 0x00007ff804ee35ed _sigtramp + 29 _sigtramp
E20230601 21:40:46.609074 2739503 main.cc:103] 2 ??? 0x0000000000003f40 0x0 + 16192
E20230601 21:40:46.609315 2739503 main.cc:101] 3 kvrocks 0x000000010e5e7cab _ZN5redis10Connection27RecordProfilingSampleIfNeedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEy + 203 redis::Connection::RecordProfilingSampleIfNeed()
E20230601 21:40:46.609545 2739503 main.cc:101] 4 kvrocks 0x000000010e5e691a _ZN5redis10Connection15ExecuteCommandsEPNSt3__15dequeINS1_6vectorINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS7_IS9_EEEENS7_ISB_EEEE + 3930 redis::Connection::ExecuteCommands()
E20230601 21:40:46.609745 2739503 main.cc:101] 5 kvrocks 0x000000010e5e56fe _ZN5redis10Connection6OnReadEP11bufferevent + 142 redis::Connection::OnRead()
E20230601 21:40:46.609944 2739503 main.cc:101] 6 kvrocks 0x000000010eae9197 bufferevent_run_deferred_callbacks_unlocked + 215 bufferevent_run_deferred_callbacks_unlocked
E20230601 21:40:46.610144 2739503 main.cc:101] 7 kvrocks 0x000000010eaf3e47 event_process_active_single_queue + 887 event_process_active_single_queue
E20230601 21:40:46.610344 2739503 main.cc:101] 8 kvrocks 0x000000010eaf13ae event_base_loop + 1582 event_base_loop
E20230601 21:40:46.610559 2739503 main.cc:101] 9 kvrocks 0x000000010e60f968 _ZN6Worker3RunENSt3__111__thread_idE + 24 Worker::Run()
E20230601 21:40:46.610762 2739503 main.cc:101] 10 kvrocks 0x000000010e61102a _ZNSt3__114__thread_proxyB6v15006INS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN4util12CreateThreadIZN12WorkerThread5StartEvE3$1EE8StatusOrINS_6threadEEPKcT_EUlvE_EEEEEPvSJ + 74 _ZNSt3__114__thread_proxyB6v15006INS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN4util12CreateThreadIZN12WorkerThread5StartEvE3$1EE8StatusOrINS_6threadEEPKcT_EUlvE_EEEEEPvSJ
E20230601 21:40:46.610807 2739503 main.cc:101] 11 libsystem_pthread.dylib 0x00007ff804eb61d3 _pthread_start + 125 _pthread_start
E20230601 21:40:46.610857 2739503 main.cc:101] 12 libsystem_pthread.dylib 0x00007ff804eb1bd3 thread_start + 15 thread_start

@git-hulk
Copy link
Member

git-hulk commented Jun 1, 2023

@singular-seal Thanks for your feedback, I found the root cause, will fix it soon.

@singular-seal
Copy link
Author

@singular-seal Thanks for your feedback, I found the root cause, will fix it soon.

Thanks a lot for the quick response.

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

Successfully merging a pull request may close this issue.

2 participants