<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif"> I
am producing stacktraces by calling backtrace to get the</font>
<br><font size=2 face="sans-serif">stack and backtrace_symbols to print
each frame. backtrace_symbols</font>
<br><font size=2 face="sans-serif">is returning some extra unprintable
characters at the start of each</font>
<br><font size=2 face="sans-serif">array entry.</font>
<br>
<br><font size=2 face="sans-serif"> each
array entry starts with this unprintable character (repeats</font>
<br><font size=2 face="sans-serif">7 times followed by \n).</font>
<br>
<br><font size=2 face="sans-serif"> 0X8ff</font>
<br>
<br>
<br>
<div>
<br><font size=2 face="sans-serif">void *arr[NUM_STACKFRAMES];<br>
int nSize = backtrace(arr, NUM_STACKFRAMES);<br>
char **sym = backtrace_symbols(arr, nSize);<br>
int ii;<br>
for (ii = 0; ii < nSize; ii++) {<br>
printf("%s\n", sym[ii]);<br>
}<br>
free(sym);</font>
<br>
<br>
<br><font size=2 face="sans-serif">Is there a way to get each stack entry
without seeing</font>
<br><font size=2 face="sans-serif">the unprintable characters ?</font>
<br>
<br><font size=2 face="sans-serif">Tom</font>
<br></div>