Open GoogleCodeExporter opened 9 years ago
Original comment by sum...@gmail.com
on 24 Dec 2014 at 8:40
Hi Kevin,
This is an interesting bug. I cannot simply identify the problem by just
looking at the source. Below is the code we are failing:
cs->_items = ymalloc(size * sizeof(_cstackitem));
if (cs->_items == NULL) {
yfree(cs);
return NULL;
}
for(i=0; i<size; i++) {
cs->_items[i].ckey = 0;
cs->_items[i].t0 = 0; --> Here we fail.
}
The cstackitem is defined as following:
typedef struct {
long long t0;
void *ckey;
} _cstackitem;
Can you tell me the size of a sizeof(long long) on your system? I am trying to
understand what is different for your OS/Cpu that leads to this error?
Original comment by sum...@gmail.com
on 24 Dec 2014 at 8:46
This might be an issue with the compiler.
That is an old one(GCC 3.4.3) which has a history of misaligment errors. There
we can try two things:
1) Simply, we can try this with a newer compiler.
2) Or change the long long in the _cstackitem structure to (long) and
re-compile yappi to see if this fixes the current problem.
Original comment by sum...@gmail.com
on 24 Dec 2014 at 9:09
Thanks for the respons and I will try have a try and get back.
Kevin
Original comment by kevin.li...@gmail.com
on 30 Dec 2014 at 1:29
Original issue reported on code.google.com by
kevin.li...@gmail.com
on 23 Dec 2014 at 3:31