{"action":"closed","issue":{"url":"https://api.github.com/repos/namhyung/uftrace/issues/48","repository_url":"https://api.github.com/repos/namhyung/uftrace","labels_url":"https://api.github.com/repos/namhyung/uftrace/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/namhyung/uftrace/issues/48/comments","events_url":"https://api.github.com/repos/namhyung/uftrace/issues/48/events","html_url":"https://github.com/namhyung/uftrace/issues/48","id":198111163,"number":48,"title":"Stuck when --tid option is given more than twice","user":{"login":"honggyukim","id":19642328,"avatar_url":"https://avatars.githubusercontent.com/u/19642328?v=3","gravatar_id":"","url":"https://api.github.com/users/honggyukim","html_url":"https://github.com/honggyukim","followers_url":"https://api.github.com/users/honggyukim/followers","following_url":"https://api.github.com/users/honggyukim/following{/other_user}","gists_url":"https://api.github.com/users/honggyukim/gists{/gist_id}","starred_url":"https://api.github.com/users/honggyukim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honggyukim/subscriptions","organizations_url":"https://api.github.com/users/honggyukim/orgs","repos_url":"https://api.github.com/users/honggyukim/repos","events_url":"https://api.github.com/users/honggyukim/events{/privacy}","received_events_url":"https://api.github.com/users/honggyukim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-30T06:47:30Z","updated_at":"2016-12-30T08:37:05Z","closed_at":"2016-12-30T08:37:05Z","body":"`--tid` option is to show only specified thread output but if `--tid` option is used twice, uftrace stucks and does not finish.\r\n```\r\n$ uftrace replay --tid 17490 -D 1\r\n# DURATION    TID     FUNCTION\r\n            [17490] | base::_GLOBAL__N_1::ThreadFunc() {\r\n\r\nuftrace stopped tracing with remaining functions\r\n================================================\r\ntask: 17490\r\n[5] base::MessagePumpDefault::Run\r\n[4] base::MessageLoop::RunHandler\r\n[3] base::RunLoop::Run\r\n[2] base::Thread::Run\r\n[1] base::Thread::ThreadMain\r\n[0] base::_GLOBAL__N_1::ThreadFunc\r\n\r\n$ uftrace replay --tid 17471 -D 1\r\n# DURATION    TID     FUNCTION\r\n  16.943 ms [17471] | _GLOBAL__N_1::SpinLock_InitHelper::SpinLock_InitHelper();\r\n  26.989 ms [17471] | LoggerRegisterHelperChildProcessMsg_Shutdown::LoggerRegisterHelperChildProcessMsg_Shutdown();\r\n  60.363 us [17471] | LoggerRegisterHelperChildProcessMsg_GetChildNonPersistentHistogramData::LoggerRegisterHelperChildProcessMsg_GetChildNonPersistentHistogramData();\r\n  32.766 us [17471] | LoggerRegisterHelperAccessibilityMsg_SetFocus::LoggerRegisterHelperAccessibilityMsg_SetFocus();\r\n  58.275 us [17471] | LoggerRegisterHelperAccessibilityHostMsg_LocationChanges::LoggerRegisterHelperAccessibilityHostMsg_LocationChanges();\r\n    ...\r\n  56.909 us [17471] | SkRTConf::SkRTConf();\r\n  56.835  s [17471] | main();\r\n  74.205 us [17471] | SkRTConfRegistry::~SkRTConfRegistry();\r\n   3.217 ms [17471] | GoogleInitializer::~GoogleInitializer();\r\n```\r\nHere is the problematic example:\r\n```\r\n$ uftrace replay --tid 17490 --tid 17471 -D 1\r\n  ( ... does not finish ... )\r\n```\r\nI know that the correct usage of --tid is as follows:\r\n```\r\n--tid=TID[,TID,...]\r\n      Only print functions called by the given threads.  To see the list of threads in the data file, you can use uftrace report --threads or uftrace info.\r\n```\r\nBut it's better to prevent using `--tid` option is used more than twice."}}
{"actor":{"display_login":"namhyung"}}