[vsipl++] vsip::Matrix Segmentation Fault (was Re: [vsipl++] hypot function throw specification mismatch )
Stefan Seefeld
stefan at codesourcery.com
Mon Dec 15 12:57:07 UTC 2008
Gaetano,
Gaetano Mendola wrote:
> Hi Stefan,
> the patch you provided resolves the compiling problem.
That's good to hear.
> This morning running our regression tests using vsip 2.0 (last used was
> 1.4) I experienced a Segmentation fault.
> Digging in the problem I was able to isolate the faulty code and I was
> able to create a distilled application that show the problem.
>
> $ cat main.cpp
>
> #include <vsip/math.hpp>
>
> int main() {
int main(int argc, char **argv) {
> typedef vsip::complex<float> Complex;
You should initialize the library here, using e.g.
vsip::vsipl init(argc, argv);
> vsip::Matrix<Complex> myMatrix(3, 65537);
Without the library initialization above this may fail because the
library's memory allocator isn't set up.
> return 0;
> }
Regards,
Stefan
--
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718
More information about the vsipl++
mailing list