diff --git a/src/lxc/execute.c b/src/lxc/execute.c index 79a97cf88..597233908 100644 --- a/src/lxc/execute.c +++ b/src/lxc/execute.c @@ -58,11 +58,15 @@ static int execute_start(struct lxc_handler *handler, void* data) argc_add += 2; argv = malloc((argc + argc_add) * sizeof(*argv)); - if (!argv) + if (!argv) { + SYSERROR("Allocating init args failed"); goto out1; + } - if (!my_args->init_path) + if (!my_args->init_path) { + ERROR("Init path missing"); goto out2; + } argv[i++] = my_args->init_path; @@ -139,6 +143,7 @@ int lxc_execute(const char *name, char *const argv[], int quiet, { struct execute_args args = {.argv = argv, .quiet = quiet}; + TRACE("Doing lxc_execute"); handler->conf->is_execute = 1; return __lxc_start(name, handler, &execute_start_ops, &args, lxcpath, backgrounded, error_num); diff --git a/src/lxc/start.c b/src/lxc/start.c index d7f079979..ce5cb3366 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -1971,6 +1971,7 @@ int lxc_start(const char *name, char *const argv[], struct lxc_handler *handler, .argv = argv, }; + TRACE("Doing lxc_start"); return __lxc_start(name, handler, &start_ops, &start_arg, lxcpath, backgrounded, error_num); }