[vsipl++] vsip::Matrix Segmentation Fault (was Re: [vsipl++] hypot function throw specification mismatch )

Gaetano Mendola gmendola at mbigroup.it
Mon Dec 15 15:02:34 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you,
unfortunately our old code didn't initialize the library,
the  problem is now gone.

Regards
Gaetano Mendola


Stefan Seefeld wrote:
> 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
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJRnGJ7UpzwH2SGd4RAroGAJ9x2IJzRKnWwCbUbIc2qFujElicVQCfbYl0
LJdIPdncyUyzBtMQUh3RtUM=
=PWy2
-----END PGP SIGNATURE-----



More information about the vsipl++ mailing list