You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 :)
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?
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.
Activity
mikem8361 commentedon Oct 21, 2019
clrstack -alldisplays all the managed stack traces.wmascia commentedon Oct 21, 2019
It sure does. Sorry/thanks.
mikem8361 commentedon Oct 21, 2019
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.wmascia commentedon Oct 21, 2019
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.
mikem8361 commentedon Oct 21, 2019
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?
wmascia commentedon Oct 21, 2019
TBH I'm not entirely sure how to answer that (linux newb), but not 'recent'. dotnet --version is 2.1.301 if that helps.
mikem8361 commentedon Oct 21, 2019
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.
wmascia commentedon Oct 28, 2019
Ok thanks @mikem8361 !
mikem8361 commentedon Oct 28, 2019
I'm reopening to use this issue to update the SOS help to better doc this option.
[-]libsosplugin clrstack all ?[/-][+]Better doc clrstack -all option[/+]Better doc clrstack -all and other options. Issue: dotnet#576
Better doc clrstack -all and other options. Issue: dotnet#576
Better doc clrstack -all and other options. Issue: dotnet#576
Better doc clrstack -all and other options. Issue: dotnet#576
Fix various issues (#690)
mikem8361 commentedon Dec 15, 2019
Fixed with PR #690
Merge latest master into release/stable (#993)