From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhenyu.ren@aliyun.com (zhenyu.ren) Date: Thu, 04 Jun 2015 11:00:42 +0800 Subject: [lttng-dev] =?utf-8?q?lttng_list_-u_return_=22Error=3A_Command_er?= =?utf-8?q?ror=22?= Message-ID: <---.GY------rzHGY$b39120f9-2664-4e5c-bb89-379e7494cb0d@aliyun.com> Hi,dev-team As the subject is my problem. It seems that the function get_cmdline_by_pid() will fail if kernel.pid_max > 100000 (i.e. 131072) static char *get_cmdline_by_pid(pid_t pid) { int ret; FILE *fp = NULL; char *cmdline = NULL; char path[20]; /* Can't go bigger than /proc/65535/cmdline */ I think path[20] is not big enough .Do you have any better idea? Thanks zhenyu.ren