![]() |
Blitz Support : |
From: Todd Veldhuizen (tveldhui_at_[hidden])
Date: 2005-04-24 15:44:10
---------------------------- Original Message ----------------------------
Subject: Bug report rejected?
From: "Chris Neff" <caneff_at_[hidden]>
Date: Sun, April 24, 2005 22:10
To: blitz-bugs-owner_at_[hidden]
--------------------------------------------------------------------------
My apologies if this is the wrong way to submit what I believe should be a
bug. Should I be posting this to another list instead?
-Chris Neff
---------- Forwarded message ----------
From: Chris Neff <caneff_at_[hidden]>
Date: 24-Apr-2005 13:08
Subject: Segmentation fault?
To: blitz-bugs_at_[hidden]
This program seg faults on the following:
______________________
$ g++ -v
Reading specs from /usr/lib/gcc-lib/x86_64-redhat -linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=x86_64-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)
______________________
Here is the code. I believe that this shouldn't segfault, but it does
after it prints out. I am running Blitz++ 0.8.0:
______________________
#include <blitz/array.h>
using namespace blitz;
typedef TinyVector<double, 2> vector2d;
typedef Array<vector2d, 2> vectorField;
typedef Array<double, 2> scalarField;
int main()
{
firstIndex i;
secondIndex j;
vectorField v,v2;
allocateArrays(shape(8,8), v, v2);
v = 1;
v2 = 0;
v[1] = i;
v[2] = j;
cout << v << endl;
}
_______________________
Thanks for the amazing program!
-Chris Neff