Note smash stacking bug
Former-commit-id: 6b73fbac57463b6f391fb73dfd243692b2434690
This commit is contained in:
parent
fb78c7fa48
commit
6314a21eb0
3
BUGS.rst
3
BUGS.rst
|
@ -60,3 +60,6 @@ Moreover, the non-normalized legendre functions that are used in translations.c
|
||||||
are likely to overflow for even smaller values of l.
|
are likely to overflow for even smaller values of l.
|
||||||
Therefore TODO: modify translations.c in a way that uses normalised legendre functions everywhere.
|
Therefore TODO: modify translations.c in a way that uses normalised legendre functions everywhere.
|
||||||
|
|
||||||
|
Memory management
|
||||||
|
-----------------
|
||||||
|
When compiled with optimizations, I get stack smashing error in qpms_trans_calculator_get_2DFT_longrange_AB_arrays().
|
||||||
|
|
|
@ -1274,7 +1274,6 @@ int qpms_trans_calculator_get_shortrange_AB_arrays(const qpms_trans_calculator *
|
||||||
bes, leg);
|
bes, leg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Long-range parts
|
// Long-range parts
|
||||||
static inline complex double qpms_trans_calculator_get_2DFT_longrange_A_precalcbuf(const qpms_trans_calculator *c,
|
static inline complex double qpms_trans_calculator_get_2DFT_longrange_A_precalcbuf(const qpms_trans_calculator *c,
|
||||||
int m, int n, int mu, int nu, sph_t k_sph /* theta must be M_PI_2 */,
|
int m, int n, int mu, int nu, sph_t k_sph /* theta must be M_PI_2 */,
|
||||||
|
@ -1423,7 +1422,7 @@ int qpms_trans_calculator_get_2DFT_longrange_AB_arrays_buf(const qpms_trans_calc
|
||||||
assert(0);
|
assert(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME i get stack smashing error inside the following function if compiled with optimizations
|
||||||
int qpms_trans_calculator_get_2DFT_longrange_AB_arrays(const qpms_trans_calculator *c,
|
int qpms_trans_calculator_get_2DFT_longrange_AB_arrays(const qpms_trans_calculator *c,
|
||||||
complex double *Adest, complex double *Bdest,
|
complex double *Adest, complex double *Bdest,
|
||||||
size_t deststride, size_t srcstride,
|
size_t deststride, size_t srcstride,
|
||||||
|
|
Loading…
Reference in New Issue