Closed royjacobson closed 1 year ago
It's super cool! Can it be integrated into gdb?
On Tue, Sep 5, 2023, 4:08 PM Roy Jacobson @.***> wrote:
I've been wanting something like this for a while.
You can view, comment on, or merge this pull request online at:
https://github.com/romange/helio/pull/129 Commit Summary
- d151eb8 https://github.com/romange/helio/pull/129/commits/d151eb85f91942fe18a5703c78bb31259f8f56cc feat(fibers): Add utility for dumping the stacktraces of all fibers in a thread.
File Changes
(7 files https://github.com/romange/helio/pull/129/files)
- M util/fibers/CMakeLists.txt https://github.com/romange/helio/pull/129/files#diff-d12cb3e18f32c4e6c0839b53562b724f713f18b4d4aae9d95d051ad9e78fafb4 (2)
- M util/fibers/detail/fiber_interface.cc https://github.com/romange/helio/pull/129/files#diff-7e8651c7b37f5962c5bde986b10864652cb6f960302219b76f873661a978e3f5 (15)
- M util/fibers/detail/fiber_interface.h https://github.com/romange/helio/pull/129/files#diff-506d7b602acab7325378ccdba56ac52ca342af726ffb37147eeeafa3a1d943d5 (3)
- M util/fibers/detail/scheduler.cc https://github.com/romange/helio/pull/129/files#diff-4aa1a76864f90b7bb9af099f28214bea78af93b681e752882bd2cdf0610af09c (25)
- M util/fibers/detail/scheduler.h https://github.com/romange/helio/pull/129/files#diff-a00939ef3fed86bc74bda3238a575b69929918ed628a97e9627fee39b09420d6 (2)
- A util/fibers/stacktrace.cc https://github.com/romange/helio/pull/129/files#diff-85ce0428fe515a41a59f1ee4cc1aa3bef723450595ad8b9cc5b56a19f2719400 (62)
- A util/fibers/stacktrace.h https://github.com/romange/helio/pull/129/files#diff-e813a7e0efeff1e6ed4a1c275f0a386e387764508cc39927836912a3f96ea48b (13)
Patch Links:
— Reply to this email directly, view it on GitHub https://github.com/romange/helio/pull/129, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4BFCG5XJY7OPSI2YBWNZTXY4P4PANCNFSM6AAAAAA4LYPENI . You are receiving this because your review was requested.Message ID: @.***>
It's super cool! Can it be integrated into gdb?
I'm planning to add a DEBUG STACKTRACE
sub-command, not sure how to integrate this with gdb :sweat_smile:
Patch coverage: 100.00%
and project coverage change: +0.18%
:tada:
Comparison is base (
72f6dff
) 76.27% compared to head (48328b4
) 76.45%. Report is 3 commits behind head on master.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Yes, I want to see that the list of fibers is updated correctly after the migration . in fact, please dcheck that all fibers you traverse have the correct scheduler from the current thread.
On Sun, Sep 10, 2023, 10:18 AM Roy Jacobson @.***> wrote:
@.**** commented on this pull request.
In util/fibers/detail/scheduler.cc https://github.com/romange/helio/pull/129#discussion_r1320709442:
@@ -553,11 +555,18 @@ void Scheduler::ScheduleFromRemote(FiberInterface cntx) { void Scheduler::Attach(FiberInterface cntx) { cntx->scheduler_ = this;
- fibers_.push_back(*cntx);
There's a ProactorTest.Migrate test already, do you want to test specifically the combination of migration and the stack traces?
— Reply to this email directly, view it on GitHub https://github.com/romange/helio/pull/129#discussion_r1320709442, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4BFCATWQREIUFX5OPFOP3XZVSUJANCNFSM6AAAAAA4LYPENI . You are receiving this because your review was requested.Message ID: @.***>
I've been wanting something like this for a while.