Skip to content

Better doc clrstack -all option #576

Closed

Description

@wmascia

Hi All,

How can I get the clrstack for all threads with libsosplugin in lldb? I'm only aware of external solutions, i.e. yn_thread_clrstack in https://github.com/espider/yinuo (from @FaikHakanBilgen). I would expect ‘clrstack all’ to do it. Is there an equivalent for ~*e? Or do we need to add 'clrstack all' ?

Thanks,

Wade
.

Activity

  1. mikem8361 commented on Oct 21, 2019

    @mikem8361
    Contributor

    clrstack -all displays all the managed stack traces.

  2. added
    question
    on Oct 21, 2019
  3. self-assigned this
    on Oct 21, 2019
  4. wmascia commented on Oct 21, 2019

    @wmascia
    Author

    It sure does. Sorry/thanks.

  5. mikem8361 commented on Oct 21, 2019

    @mikem8361
    Contributor

    Looks like I forgot the -all option in the opening line of the soshelp. There is a description in the body of the text, but it should be added to the CLRStack [-a] [-l] [-p] [-n] [-f] header.

  6. added this to the 3.0 milestone on Oct 21, 2019
  7. wmascia commented on Oct 21, 2019

    @wmascia
    Author

    Thanks! FWIW I don't see the description in the body of the text which pertains to all threads. I only see the description of -a (all) which says it's a short-cut for -l and -p combined. So between that plus history w/ !sos.clrstack -all, where it means all args rather than all threads, I never considered -all. You may want to go w/ -allthreads to disambiguate between the two, or at least list -all separately in the body and try to clarify -all vs -a. Also I guessed all w/ no dash based on bt all. So I guess you could go with all (no dash) for all threads and -all (with dash) as the long form of -a, but still that's a little icky :)

    Anyway food for thought. Thanks again.

  8. mikem8361 commented on Oct 21, 2019

    @mikem8361
    Contributor

    The -all option has been there for a long time, but it wasn't documented until recently and it looks like it wasn't complete. What version of SOS are you using?

  9. wmascia commented on Oct 21, 2019

    @wmascia
    Author

    TBH I'm not entirely sure how to answer that (linux newb), but not 'recent'. dotnet --version is 2.1.301 if that helps.

  10. mikem8361 commented on Oct 21, 2019

    @mikem8361
    Contributor

    I assumed that you were using the "new" SOS from this repo (how to install) but it sounds like you are using the lldb plugin (libsosplugin.so) and SOS from the 2.1 runtime directory itself. If so, that is why there isn't any mention of the -all option in the help.

    SOS now ships out-of-band and new features/document updates are happening more often that the runtime updates.

  11. wmascia commented on Oct 28, 2019

    @wmascia
    Author

    Ok thanks @mikem8361 !

  12. mikem8361 commented on Oct 28, 2019

    @mikem8361
    Contributor

    I'm reopening to use this issue to update the SOS help to better doc this option.

  13. removed
    question
    on Oct 28, 2019
  14. changed the title [-]libsosplugin clrstack all ?[/-] [+]Better doc clrstack -all option[/+] on Oct 28, 2019
  15. modified the milestones: 3.0, 3.1 on Oct 28, 2019
  16. added
    documentation
    on Nov 20, 2019
  17. mikem8361 commented on Dec 15, 2019

    @mikem8361
    Contributor

    Fixed with PR #690

  18. ghost locked as resolved and limited conversation to collaborators on Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentation

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions