<br><font size=2 face="Consolas">I have found a bug in lttng-tools-2.0.0/src/bin/lttng/lttng.c</font>
<br>
<br><font size=2 face="Consolas">I cross compiled this for one of our embedded
linux platforms, but I get a segmentation fault when running it. I have
determined that this is due to the getenv() function call in line 527 (see
excerpt below). It assumes that the environment variable USER is present.
In my system this variable is not present, and so getenv() was returning
NULL.</font>
<br>
<br><font size=2 face="Consolas">//----------------------------------------------------</font>
<br><font size=2 face="Consolas">// Excerpt
from lttng.c</font>
<br><font size=2 face="Consolas">//----------------------------------------------------</font>
<br><font size=2 face="Consolas">519 int main(int argc, char *argv[])</font>
<br><font size=2 face="Consolas">520 {</font>
<br><font size=2 face="Consolas">521 int ret;</font>
<br><font size=2 face="Consolas">522 </font>
<br><font size=2 face="Consolas">523 progname
= argv[0] ? argv[0] : "lttng";</font>
<br><font size=2 face="Consolas">524 </font>
<br><font size=2 face="Consolas">525 /* For
Mathieu Desnoyers a.k.a. Dr. Tracing */</font>
<br><font size=2 face="Consolas">526 if (strncmp(progname,
"drtrace", 7) == 0 ||</font>
<br><font size=2 face="Consolas">527
strncmp("compudj",
getenv("USER"), 7) == 0) {</font>
<br><font size=2 face="Consolas">528
MSG("%c[%d;%dmWelcome back Dr Tracing!%c[%dm\n",
27,1,33,27,0);</font>
<br><font size=2 face="Consolas">529 }</font>
<br>
<br><font size=2 face="Consolas">Thank you,</font>
<br><font size=2 face="Consolas">Ryan Kyser</font>