LTTng bugs repository: Issueshttps://bugs.lttng.org/https://bugs.lttng.org/themes/lttng/favicon/a.ico?14249722912014-11-11T02:47:11ZLTTng bugs repository
Redmine Babeltrace - Bug #857 (Invalid): babeltrace will exit (often with a core dump) if an index file i...https://bugs.lttng.org/issues/8572014-11-11T02:47:11Zcraig harmercharmer-lttng.org@punchdown.org
<p>If a ".idx" file is truncated for some reason then babeltrace will fail to open the trace session and, in most cases core dump. Output looks like:</p>
<pre>
charmer@ch3[hds-src] babeltrace /home/charmer/lttng-traces/auto-20141110-184157
read index file header: Success
Segmentation fault (core dumped)
</pre> Babeltrace - Feature #852 (Invalid): babeltrace python bindings do not make visible the "hostname...https://bugs.lttng.org/issues/8522014-10-30T00:56:32Zcraig harmercharmer-lttng.org@punchdown.org
<p>I'm using babeltrace 1.2.2.</p>
<p>The python bindings for babeltrace do not make the "hostname" field available, even though its present in the trace file.</p>
<p>Here is the first event in the tracefile as printed by babeltrace:</p>
<p>[17:09:08.849944204] (+?.?????????) ch3 pcs_paxosclient:sync_publish_entry: { cpu_id = 6 }, { vpid = 12882, vtid = 12882, procname = "md_test", pthread_id = 139715261524352 }, { }</p>
<p>I wrote a python script that gets all the fields in each scope and prints the contents of each field. It also prints event.get("hostname") directly for good measure. The output for the first event looks like:</p>
<p>[1414541348849944204]: pcs_paxosclient:sync_publish_entry:<br />hostname is: None<br />scope 3 field 'vpid' <type 'long'>: '12882'<br /> field 'vtid' <type 'long'>: '12882'<br /> field 'procname' <type 'str'>: 'md_test'<br /> field 'pthread_id' <type 'long'>: '139715261524352'<br />scope 2 field 'id' <type 'str'>: 'extended'<br /> field 'v' <type 'dict'>: '{'timestamp': 15985732118075L, 'id': 169L}'<br />scope 1 field 'timestamp_begin' <type 'long'>: '15985672518003'<br /> field 'timestamp_end' <type 'long'>: '16011668489057'<br /> field 'content_size' <type 'long'>: '8388272'<br /> field 'packet_size' <type 'long'>: '8388608'<br /> field 'events_discarded' <type 'long'>: '0'<br /> field 'cpu_id' <type 'long'>: '6'<br />scope 0 field 'magic' <type 'long'>: '3254525889'<br /> field 'uuid' <type 'list'>: '[76L, 42L, 65L, 101L, 66L, 68L, 79L, 161L, 179L, 59L, 78L, 234L, 84L, 76L, 22L, 68L]'</p>