The cpu count was expecting memory to be zeroed on allocation. Caused
stream open errors and zero-sized metadata files (and unability to open
channel files).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
struct lttng_consumer_channel *channel;
int ret;
- channel = malloc(sizeof(*channel));
+ channel = zmalloc(sizeof(*channel));
if (channel == NULL) {
perror("malloc struct lttng_consumer_channel");
goto end;
msg.u.channel.mmap_len,
msg.u.channel.max_sb_size);
if (new_channel == NULL) {
- fprintf(stderr, "AAAAA\n");
lttng_consumer_send_error(ctx, CONSUMERD_OUTFD_ERROR);
goto end_nosignal;
}
msg.u.stream.output,
msg.u.stream.path_name);
if (new_stream == NULL) {
- fprintf(stderr, "BBBBBB\n");
lttng_consumer_send_error(ctx, CONSUMERD_OUTFD_ERROR);
goto end;
}