Re: [Vala] How to use vala Linux.backtrace?



Christian Johnson <_c_    > writes:

I get a segmentation fault when I try to access any element in the strings
array. (In the print method)


I got around the problem by using the fd method the write directly to stdout.

void*[] array = new void*[10];
int size = Linux.backtrace (array, 10);
Linux.backtrace_symbols_fd (array, size, 1);

But I would still like to know what I was doing wrong...





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]