Re: [Vala] How to use vala Linux.backtrace?
- From: Christian Johnson <_c_ mail com>
- To: vala-list gnome org
- Subject: Re: [Vala] How to use vala Linux.backtrace?
- Date: Thu, 28 Nov 2013 20:11:24 +0000 (UTC)
Andrea Del Signore <sejerpz > writes:
private static void print_backtrace () {
void*[] array = new void*[10];
int size = Linux.backtrace (array, 10);
string[] strings = Linux.backtrace_symbols (array, size);
for(int i=0; i< size; i++) {
print ("(%d): %s\n", i, strings[i]);
}
}
I get a segmentation fault when I try to access any element in the strings
array. (In the print method)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]