Boost logo

Ublas :

From: Giacomo Piccolo (littolo_at_[hidden])
Date: 2006-11-14 10:20:28


Hello to everybody,

I tried to run this simple code but it doesn't seem to work.It seems there
are some problem with unbounded_array in storage.hpp header. I tried to fix
it but i don't know how to do it.
Can anybody help me?
Here's the backtrace of that segmentation fault problem.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 6962)]
0x401d6521 in free () from /lib/libc.so.6
(gdb) bt
#0 0x401d6521 in free () from /lib/libc.so.6
#1 0x4010b0a1 in operator delete(void*) (ptr=0x8000000) at ../../../../gcc-
3.4.1/libstdc++-v3/libsupc++/del_op.cc:40
#2 0x0804aee9 in __gnu_cxx::new_allocator<double>::deallocate(double*,
unsigned) (this=0xbffff74c, __p=0x80744a0)
    at /usr/local/gcc-3.4.1
/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../include/c++/3.4.1/ext/new_allocator.h:86
#3 0x0804a470 in ~unbounded_array (this=0xbffff74c) at
/usr/local/include/boost/numeric/ublas/storage.hpp:144
#4 0x0804a015 in ~compressed_matrix (this=0xbffff720) at trial.cc:15
#5 0x08049f1d in main () at trial.cc:40
#6 0x401791c4 in __libc_start_main () from /lib/libc.so.6

bye,
Giacomo