For automated unit tests I wanted my program to run normally, but if it crashed, to add a stack trace to the output log. I came up with this command so I wouldn't have to mess around with core files. The one downside is that it does smoosh your program's stderr and stdout together. Show Sample Output
This does almost the same thing as the original, but it runs the full backtrace for _all_ the threads, which is pretty important when reporting a crash for a multithreaded software, since more often than not, the signal handler is executed in a different thread than the crash happened.
Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?
You must be signed in to comment.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for:
Very interesting post. Thanks for sharing! <a href="https://www.drywallchicago.com/">angies list</a>
I am helping my dad to <a href="https://www.treeservicesdelaware.com">take away trees</a> beside our house, when i got the time, I'll try these codes and see the results. Thanks!
<a href="https://www.google.com">Wow</a>
[url=https://www.google.com]wow[/url]
"Great":https://www.google.com
"Great":https://www.google.com
<a href="https://www.google.com">wow</a>
man 1s<a href="https://www.google.com">great</a>
<a href="https://www.yegpowdercoating.com/">edmonton powder coating</a>
<a href="https://www.kitchenremodelsydney.com.au/">kitchen renovations Sydney</a>
[Kitchen Renovations Sydney](https://www.kitchenremodelsydney.com.au)
<a href="http://www.flrescreening.com/">Screen enclosures lake buena vista</a>