Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-settings.php on line 18

Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/comment-template.php on line 0

Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/comment-template.php on line 0

Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/comment-template.php on line 0

Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/comment-template.php on line 0
Joshua Zhu’s Blog » 2009 » August » 20
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/plugin.php on line 339

Archive for August 20, 2009

A Handy Strace Option


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::the_content() should not be called statically in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-includes/plugin.php on line 166

Strict Standards: Non-static method GA_Filter::ga_parse_article_link() should not be called statically in /home/zhuzhaoyuan/blog.zhuzhaoyuan.com/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 440

I didn’t notice the ‘-ff’ option of strace until I came across it today. By turning it on, not only fork(2)s can be followed, but also each process’s trace will be written to tracefile.pid, where pid is the process id of each process. Typical usage might look like this:

# strace -o tracelog.txt -ff -T command

This option can be quite handy, when debugging programs that spawn child processes.

Comments (28)