<font size=2 face="sans-serif">Seems this only happens with </font><tt><font size=2>--buffers-uid</font></tt><font size=2 face="sans-serif">
...</font>
<br>
<br><font size=2 face="sans-serif">Here's the sequence of activation I
used:</font>
<br>
<br><tt><font size=2>/usr/bin/lttng-sessiond -d --no-kernel -q</font></tt>
<br><tt><font size=2>/usr/bin/lttng create ${LTTNG_SESSION_NAME} -o ${LTTNG_TRACES_PATH}</font></tt>
<br><tt><font size=2>/usr/bin/lttng enable-channel channel0 -u --subbuf-size
262144 --num-subbuf 32 --buffers-uid</font></tt>
<br><tt><font size=2>/usr/bin/lttng enable-event -u -a</font></tt>
<br><tt><font size=2>/usr/bin/lttng start ${LTTNG_SESSION_NAME}</font></tt>
<br>
<br><font size=2 color=#000080 face="sans-serif">Amit Margalit</font>
<br><font size=2 color=#808000 face="sans-serif">IBM XIV </font><font size=2 face="sans-serif">-
<i>Storage Reinvented</i></font>
<br><font size=2 face="sans-serif">XIV-NAS Development Team</font>
<br><font size=2 face="sans-serif">Tel. 03</font><font size=2 face="Arial">-689-7774</font>
<br><font size=2 face="Arial">Fax. 03-689-7230</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:      
 </font><font size=1 face="sans-serif">Amit Margalit/Israel/IBM@IBMIL</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:      
 </font><font size=1 face="sans-serif">lttng-dev@lists.lttng.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:      
 </font><font size=1 face="sans-serif">06/11/2013 08:32 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:    
   </font><font size=1 face="sans-serif">[lttng-dev]
Help debugging 2.2.0rc2 core dump in lttng-sessiond</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=2 face="sans-serif">Hello,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I've deployed 2.2.0rc2 on one of our systems, and I've getting a core dump
(due to segfault) on lttng-sessiond.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Should I post all the data here, or should this be done 1x1 with one of
the developers?</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Anyway, basic information:</font><font size=3> <br>
</font><tt><font size=2><br>
Core was generated by `/usr/bin/lttng-sessiond -d --no-kernel -q'.</font></tt><font size=3>
</font><tt><font size=2><br>
Program terminated with signal 11, Segmentation fault.</font></tt><font size=3>
</font><tt><font size=2><br>
#0  ustctl_duplicate_ust_object_data (dest=dest@entry=0x7f958c000ad8,
src=0x0) at ustctl.c:800</font></tt><font size=3> </font><tt><font size=2><br>
800             if (src->handle != -1)
{</font></tt><font size=3> </font><tt><font size=2><br>
(gdb) p *dest</font></tt><font size=3> </font><tt><font size=2><br>
$9 = (struct lttng_ust_object_data *) 0x0</font></tt><font size=3> </font><tt><font size=2><br>
(gdb) up</font></tt><font size=3> </font><tt><font size=2><br>
#1  0x00000000004182c6 in duplicate_channel_object (ua_chan=0x7f958c0009b0,
reg_chan=0x679cd0) at ust-app.c:2000</font></tt><font size=3> </font><tt><font size=2><br>
2000            ret = ustctl_duplicate_ust_object_data(&ua_chan->obj,
reg_chan->obj.ust);</font></tt><font size=3> </font><tt><font size=2><br>
(gdb) p ua_chan->obj</font></tt><font size=3> </font><tt><font size=2><br>
$10 = (struct lttng_ust_object_data *) 0x0</font></tt><font size=3> </font><tt><font size=2><br>
(gdb) p *ua_chan</font></tt><font size=3> </font><tt><font size=2><br>
$11 = {enabled = 1, handle = -1, is_sent = 0, key = 2, tracing_channel_id
= 0, expected_stream_count = 0, name = "channel0", '\000' <repeats
247 times>, obj = 0x0, attr = {</font></tt><font size=3> </font><tt><font size=2><br>
    type = LTTNG_UST_CHAN_PER_CPU, subbuf_size = 262144, num_subbuf
= 32, overwrite = 0, switch_timer_interval = 0, read_timer_interval = 0,
output = LTTNG_UST_MMAP, chan_id = 0, <br>
    uuid = '\000' <repeats 15 times>}, streams = {count
= 0, head = {next = 0x7f958c000b20, prev = 0x7f958c000b20}}, session =
0x677320, ctx = 0x7f958c000bc0, events = 0x7f958c000920, <br>
  tracefile_size = 0, tracefile_count = 0, node = {key = 0x7f958c0009d4
"channel0", node = {next = 0x6763a0, reverse_hash = 261524217965576192},
head = {next = {next = 0x0}, func = 0}}, <br>
  ust_objd_node = {key = 0, node = {next = 0x0, reverse_hash = 0},
head = {next = {next = 0x0}, func = 0}}, rcu_head = {next = {next = 0x0},
func = 0}}</font></tt><font size=3> </font><tt><font size=2><br>
(gdb) p *reg_chan</font></tt><font size=3> </font><tt><font size=2><br>
$12 = {key = 0, consumer_key = 1, streams = {next = 0x679ce0, prev = 0x679ce0},
stream_list_lock = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers
= 0, __kind = 0, __spins = 0, <br>
      __list = {__prev = 0x0, __next = 0x0}}, __size = '\000'
<repeats 39 times>, __align = 0}, node = {key = 0, node = {next =
0x0, reverse_hash = 15577886586086949907}, head = {next = {</font></tt><font size=3>
</font><tt><font size=2><br>
        next = 0x0}, func = 0}}, obj = {ust = 0x0}}</font></tt><font size=3>
</font><tt><font size=2><br>
(gdb) bt</font></tt><font size=3> </font><tt><font size=2><br>
#0  ustctl_duplicate_ust_object_data (dest=dest@entry=0x7f958c000ad8,
src=0x0) at ustctl.c:800</font></tt><font size=3> </font><tt><font size=2><br>
#1  0x00000000004182c6 in duplicate_channel_object (ua_chan=0x7f958c0009b0,
reg_chan=0x679cd0) at ust-app.c:2000</font></tt><font size=3> </font><tt><font size=2><br>
#2  send_channel_uid_to_ust (reg_chan=reg_chan@entry=0x679cd0, app=app@entry=0x664d00,
ua_sess=ua_sess@entry=0x677320, ua_chan=ua_chan@entry=0x7f958c0009b0) at
ust-app.c:2161</font></tt><font size=3> </font><tt><font size=2><br>
#3  0x0000000000418f78 in create_channel_per_uid (ua_chan=0x7f958c0009b0,
ua_sess=0x677320, usess=<optimized out>, app=0x664d00) at ust-app.c:2263</font></tt><font size=3>
</font><tt><font size=2><br>
#4  do_create_channel (app=app@entry=0x664d00, usess=usess@entry=0x666f80,
ua_sess=0x677320, ua_chan=ua_chan@entry=0x7f958c0009b0) at ust-app.c:2341</font></tt><font size=3>
</font><tt><font size=2><br>
#5  0x000000000041df83 in ust_app_global_update (usess=0x666f80, sock=sock@entry=20)
at ust-app.c:4043</font></tt><font size=3> </font><tt><font size=2><br>
#6  0x000000000042306f in update_ust_app (app_sock=20) at main.c:680</font></tt><font size=3>
</font><tt><font size=2><br>
#7  thread_dispatch_ust_registration (data=<optimized out>)
at main.c:1465</font></tt><font size=3> </font><tt><font size=2><br>
#8  0x00007f95974dd5f0 in start_thread () from /lib64/libpthread.so.0</font></tt><font size=3>
</font><tt><font size=2><br>
#9  0x00007f959724c87d in clone () from /lib64/libc.so.6</font></tt><font size=3>
</font><tt><font size=2><br>
#10 0x0000000000000000 in ?? ()</font></tt><font size=3> </font><tt><font size=2><br>
(gdb) info threads</font></tt><font size=3> </font><tt><font size=2><br>
  Id   Target Id         Frame <br>
  9    Thread 0x7f9594357710 (LWP 967) 0x00007f959724cf03
in epoll_wait () from /lib64/libc.so.6</font></tt><font size=3> </font><tt><font size=2><br>
  8    Thread 0x7f9594558710 (LWP 966) 0x00007f959724cf03
in epoll_wait () from /lib64/libc.so.6</font></tt><font size=3> </font><tt><font size=2><br>
  7    Thread 0x7f9593b53710 (LWP 971) 0x00007f959724cf03
in epoll_wait () from /lib64/libc.so.6</font></tt><font size=3> </font><tt><font size=2><br>
  6    Thread 0x7f9593f55710 (LWP 969) 0x00007f959724cf03
in epoll_wait () from /lib64/libc.so.6</font></tt><font size=3> </font><tt><font size=2><br>
  5    Thread 0x7f9598d85900 (LWP 964) 0x00007f95974ddda5
in pthread_join () from /lib64/libpthread.so.0</font></tt><font size=3>
</font><tt><font size=2><br>
  4    Thread 0x7f9593952710 (LWP 984) 0x00007f959724cf03
in epoll_wait () from /lib64/libc.so.6</font></tt><font size=3> </font><tt><font size=2><br>
  3    Thread 0x7f9593751710 (LWP 3941) 0x00007f95972492a9
in syscall () from /lib64/libc.so.6</font></tt><font size=3> </font><tt><font size=2><br>
  2    Thread 0x7f9593d54710 (LWP 970) 0x00007f959724cf03
in epoll_wait () from /lib64/libc.so.6</font></tt><font size=3> </font><tt><font size=2><br>
* 1    Thread 0x7f9594156710 (LWP 968) ustctl_duplicate_ust_object_data
(dest=dest@entry=0x7f958c000ad8, src=0x0) at ustctl.c:800</font></tt><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
Any help is appreciated.</font><font size=3> <br>
<br>
</font><font size=2 color=#000080 face="sans-serif"><br>
Amit Margalit</font><font size=3> </font><font size=2 color=#808000 face="sans-serif"><br>
IBM XIV </font><font size=2 face="sans-serif">- <i>Storage Reinvented</i></font><font size=3>
</font><font size=2 face="sans-serif"><br>
XIV-NAS Development Team</font><font size=3> </font><font size=2 face="sans-serif"><br>
Tel. 03</font><font size=2 face="Arial">-689-7774</font><font size=3> </font><font size=2 face="Arial"><br>
Fax. 03-689-7230</font><tt><font size=2>_______________________________________________<br>
lttng-dev mailing list<br>
lttng-dev@lists.lttng.org<br>
</font></tt><a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev"><tt><font size=2>http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</font></tt></a><tt><font size=2><br>
</font></tt>
<br>