Project

General

Profile

Actions

Bug #399

closed

SessionD dies (coredumps) during session activation

Added by Jesus Garcia over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
Start date:
11/14/2012
Due date:
% Done:

100%

Estimated time:

Description

lttng-sessiond dies during session activation and produces a core dump.
The session activation has been done using the lttng API.
The provided log was produced by running sessiond/consumerd with verbose options.
The log also shows syslog and saflog output as well as print statements from the Trace common component.
NOTE: verbose mode is only shown before sessiond dies. After it gets relaunched, it goes back to normal.

The following part of the log captures the last messages seen from sessiond/consumerd:

Error: Error ustctl create event com_ericsson_cba_trace_testapp_hightraf:HundredPerSec for app pid: 25204 with ret -1028
lttng-sessiond: ust-app.c:1277: create_ust_app_event: Assertion `ret == -LTTNG_UST_ERR_EXIST' failed.
DEBUG1: Incoming command on sock [in consumer_thread_sessiond_poll() at consumer.c:2505]
DEBUG1: Consumer received unexpected message size 0 (expects 4416) [in lttng_ustconsumer_recv_cmd() at ust-consumer.c:109]
PERROR: sendmsg: Broken pipe [in lttcomm_send_unix_sock() at unix.c:204]
DEBUG1: Communication interrupted on command socket [in consumer_thread_sessiond_poll() at consumer.c:2516]
DEBUG1: consumer_thread_receive_fds exiting [in consumer_thread_sessiond_poll() at consumer.c:2526]
DEBUG1: poll num_rdy : 1 [in consumer_thread_data_poll() at consumer.c:2251]
DEBUG1: consumer_data_pipe wake up [in consumer_thread_data_poll() at consumer.c:2275]
DEBUG1: Consumer delete flagged data stream [in validate_endpoint_status_data_stream() at consumer.c:1938]
DEBUG1: polling thread exiting [in consumer_thread_data_poll() at consumer.c:2403]
DEBUG1: Metadata event catched in thread [in consumer_thread_metadata_poll() at consumer.c:2030]
DEBUG1: Metadata thread pipe hung up [in consumer_thread_metadata_poll() at consumer.c:2051]
DEBUG1: Metadata poll thread exiting [in consumer_thread_metadata_poll() at consumer.c:2160]
PERROR: sendmsg: Broken pipe [in lttcomm_send_unix_sock() at unix.c:204]
DEBUG1: Consumer destroying it. Closing everything. [in lttng_consumer_destroy() at consumer.c:1196]

Here is the build info
CURRENT HEAD: foss/babeltrace 08ac0e0 (HEAD, origin/master, origin/HEAD) Fix SEEK_BEGIN for streams that do not contain any event
CURRENT HEAD: foss/lttng-tools da1d733 (HEAD, origin/master, origin/HEAD) Update CodingStyle
CURRENT HEAD: foss/lttng-ust dca6e79 (HEAD, origin/master, origin/HEAD) Remove LIBFORMAT config declaration, unused
CURRENT HEAD: foss/userspace-rcu f864c15 (HEAD, origin/master, origin/HEAD) urcu-qsbr: skip Q.S. reporting if already reported

Last 4 coredumps are attached as well:
rw------ 1 root root 67862528 Nov 14 12:33 lttng-sessiond.25521.SC-1.core
rw------ 1 root root 67731456 Nov 14 12:34 lttng-sessiond.25612.SC-1.core
rw------ 1 root root 67866624 Nov 14 12:34 lttng-sessiond.25694.SC-1.core
rw------ 1 root root 67731456 Nov 14 12:34 lttng-sessiond.25789.SC-1.core

Please let me know if more information is needed.

Jesus


Files

lttng-sessiond.25521.SC-1.core.gz (68.4 KB) lttng-sessiond.25521.SC-1.core.gz Jesus Garcia, 11/14/2012 02:39 PM
lttng-sessiond.25789.SC-1.core.gz (126 KB) lttng-sessiond.25789.SC-1.core.gz Jesus Garcia, 11/14/2012 02:43 PM
lttng-sessiond.25612.SC-1.core.gz (78.1 KB) lttng-sessiond.25612.SC-1.core.gz Jesus Garcia, 11/14/2012 02:43 PM
lttng-sessiond.25694.SC-1.core.gz (127 KB) lttng-sessiond.25694.SC-1.core.gz Jesus Garcia, 11/14/2012 02:43 PM
sessiond_dies_at_session_activation.txt (138 KB) sessiond_dies_at_session_activation.txt Jesus Garcia, 11/14/2012 02:43 PM
bug399-diff.patch (519 Bytes) bug399-diff.patch David Goulet, 11/14/2012 03:09 PM
Actions #2

Updated by David Goulet over 11 years ago

Can you try to apply the patch I've added to the ticket.

There is been a typo in commit 49c336c1679295a31b92223dca05feccfe3e3464 and this should fix at least the assert().

Thanks!

Actions #3

Updated by Jesus Garcia over 11 years ago

Hi David,

Sorry for the delay. The patch is good. I'm not seeing the sessiond crashes anymore.

Thanks a lot! :-)
Jesus

Actions #4

Updated by David Goulet over 11 years ago

  • Status changed from Confirmed to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF