eyecreate
Member
I'm trying to compile a C program for the pandora. Doing some debugging, it seems to throw a sigsegv on function entering when the function has a char [] variable in it. Also, whenever I inspect using gdb command "info locals", most the variables in the function are empty, but the char[] variable has quite a lot of data listed for it. Any Ideas?
#define LEN 4096
char *do_things(void) {
char *happy = NULL;
char crash[LEN]; //comment me and any code using me out and I don't throw sigsegv
}
Library of code with issue: http://download.owncloud.com/download/ocsync-0.70.3.tar.bz2
GUI program on top I've been running: http://download.owncloud.com/download/mirall-1.2.0.tar.bz2
The spot identified by the compiler is in csync_mis.c : csync_get_user_home_dir
UPDATE:I've made a bug report on the dev's tracker in hopes they might be able to shed more light too:
https://github.com/owncloud/mirall/issues/400
#define LEN 4096
char *do_things(void) {
char *happy = NULL;
char crash[LEN]; //comment me and any code using me out and I don't throw sigsegv
}
Code:
(gdb) info locals
happy = ""
crash = "\000\000\000\000\000\005\346\000\000"...
Library of code with issue: http://download.owncloud.com/download/ocsync-0.70.3.tar.bz2
GUI program on top I've been running: http://download.owncloud.com/download/mirall-1.2.0.tar.bz2
The spot identified by the compiler is in csync_mis.c : csync_get_user_home_dir
UPDATE:I've made a bug report on the dev's tracker in hopes they might be able to shed more light too:
https://github.com/owncloud/mirall/issues/400
Last edited by a moderator: