Created
April 25, 2011 12:23
-
-
Save sergey-miryanov/940443 to your computer and use it in GitHub Desktop.
bs test failed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zerg@bakumatsu:~/src/bs-eagle/blue-sky$ gdb python | |
GNU gdb (GDB) 7.2-ubuntu | |
Copyright (C) 2010 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... | |
Reading symbols from /usr/bin/python...Reading symbols from /usr/lib/debug/usr/bin/python2.6...done. | |
done. | |
(gdb) b bs_arrbase.h:102 | |
No source file named bs_arrbase.h. | |
Make breakpoint pending on future shared library load? (y or [n]) y | |
Breakpoint 1 (bs_arrbase.h:102) pending. | |
(gdb) r /usr/bin/ipython | |
Starting program: /usr/bin/python /usr/bin/ipython | |
[Thread debugging using libthread_db enabled] | |
Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) | |
Type "copyright", "credits" or "license" for more information. | |
IPython 0.10 -- An enhanced Interactive Python. | |
? -> Introduction and overview of IPython's features. | |
%quickref -> Quick reference. | |
help -> Python's own help system. | |
object? -> Details about 'object'. ?object also works, ?? prints more. | |
In [1]: from numpy import zeros as Z | |
In [2]: import bs | |
[New Thread 0x7ffff0321700 (LWP 29886)] | |
[New Thread 0x7fffefb20700 (LWP 29887)] | |
[Mon Apr 25 18:21:07 2011]: Main Blue-Sky Config Parser: No config file "/etc/blue-sky/blue-sky.conf" | |
[Mon Apr 25 18:21:07 2011]: boost::filesystem::directory_iterator::construct: No such file or directory: "/home/zerg/src/bs-eagle/blue-sky/share/blue-sky/plugins" | |
[Mon Apr 25 18:21:07 2011]: boost::filesystem::directory_iterator::construct: No such file or directory: "/home/zerg/src/bs-eagle/blue-sky/share/blue-sky/plugins" | |
[Mon Apr 25 18:21:07 2011]: boost::filesystem::directory_iterator::construct: No such file or directory: "/home/zerg/.blue-sky/plugins" | |
[Mon Apr 25 18:21:07 2011]: boost::filesystem::directory_iterator::construct: No such file or directory: "/home/zerg/.blue-sky/plugins" | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_mtx_d.so (bs_bos_core_base) | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_bos_core_d.so (bs_bos_core_base, bs_mtx, bs_lsolvers, bs_bos_core_data_storage, bs_mesh, bs_scal, bs_pvt) | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_lsolvers_d.so (bs_bos_core_base, bs_mtx) | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_bos_core_data_storage_d.so (bs_bos_core_base, bs_mtx) | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_scal_d.so (bs_bos_core_base, bs_mtx) | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_pvt_d.so (bs_bos_core_base, bs_mtx, bs_scal) | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_mesh_d.so (bs_bos_core_base, bs_mtx, bs_bos_core_data_storage) | |
0(0) 1(6) 2(1) 3(3) 4(4) 5(8) 6(5) 7(7) 8(2) | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libcommon_types_d.so ::: | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_bos_core_base_d.so ::: 1.0.0 | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_mtx_d.so ::: 1.0.0 | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_lsolvers_d.so ::: 1.0.0 | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_bos_core_data_storage_d.so ::: 1.0.0 | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_mesh_d.so ::: 1.0.0 | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_scal_d.so ::: 1.0.0 | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_pvt_d.so ::: 1.0.0 | |
[Mon Apr 25 18:21:07 2011]: /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_bos_core_d.so ::: | |
[Mon Apr 25 18:21:07 2011]: BlueSky kernel Python subsystem initialized successfully under namespace bs | |
BlueSky plugin /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libcommon_types_d.so loaded, Python subsystem initialized (namespace bs.comm) | |
bos_out log has been registered! | |
bos_warn log has been registered! | |
bos_err log has been registered! | |
BlueSky plugin /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_bos_core_base_d.so loaded, Python subsystem initialized (namespace bs.bs_bos_core_base) | |
BlueSky plugin /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_mtx_d.so loaded, Python subsystem initialized (namespace bs.mx) | |
BlueSky plugin /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_lsolvers_d.so loaded, Python subsystem initialized (namespace bs.lsolvers) | |
BlueSky plugin /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_bos_core_data_storage_d.so loaded, Python subsystem initialized (namespace bs.bs_bos_core_data_storage) | |
BlueSky plugin /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_mesh_d.so loaded, Python subsystem initialized (namespace bs.bs_mesh) | |
BlueSky plugin /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_scal_d.so loaded, Python subsystem initialized (namespace bs.bs_scal) | |
BlueSky plugin /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_pvt_d.so loaded, Python subsystem initialized (namespace bs.bs_pvt) | |
BlueSky plugin /home/zerg/src/bs-eagle/blue-sky/exe/debug/plugins/libbs_bos_core_d.so loaded, Python subsystem initialized (namespace bs.bs_bos_core) | |
In [3]: bs.t | |
bs.test_anyobj bs.test_nparray_d bs.test_nparray_f bs.test_nparray_i bs.test_nparray_l bs.test_return_d bs.type_descriptor bs.type_info | |
In [3]: bs.te | |
bs.test_anyobj bs.test_nparray_d bs.test_nparray_f bs.test_nparray_i bs.test_nparray_l bs.test_return_d | |
In [3]: bs.test_n | |
bs.test_nparray_d bs.test_nparray_f bs.test_nparray_i bs.test_nparray_l | |
In [3]: bs.test_nparray_d (Z (10), Z (10)) | |
10 | |
0 | |
Breakpoint 1, blue_sky::bs_arrbase<double>::begin (this=0x12a5ea0) at kernel/include/bs_arrbase.h:102 | |
102 if(this->size() > 0) | |
(gdb) l | |
97 virtual void clear() { | |
98 resize(0); | |
99 } | |
100 | |
101 virtual iterator begin() { | |
102 if(this->size() > 0) | |
103 return &ss(0); | |
104 else return 0; | |
105 } | |
106 virtual const_iterator begin() const { | |
(gdb) c | |
Continuing. | |
Breakpoint 1, blue_sky::bs_arrbase<double>::begin (this=0x12a5ea0) at kernel/include/bs_arrbase.h:102 | |
102 if(this->size() > 0) | |
(gdb) b delete | |
Function "delete" not defined. | |
Make breakpoint pending on future shared library load? (y or [n]) n | |
(gdb) help breakpoint | |
Making program stop at certain points. | |
List of commands: | |
awatch -- Set a watchpoint for an expression | |
break -- Set breakpoint at specified line or function | |
catch -- Set catchpoints to catch events | |
catch assert -- Catch failed Ada assertions | |
catch catch -- Catch an exception | |
catch exception -- Catch Ada exceptions | |
catch exec -- Catch calls to exec | |
catch fork -- Catch calls to fork | |
catch syscall -- Catch system calls by their names and/or numbers | |
catch throw -- Catch an exception | |
catch vfork -- Catch calls to vfork | |
clear -- Clear breakpoint at specified line or function | |
commands -- Set commands to be executed when a breakpoint is hit | |
condition -- Specify breakpoint number N to break only if COND is true | |
delete -- Delete some breakpoints or auto-display expressions | |
delete bookmark -- Delete a bookmark from the bookmark list | |
delete breakpoints -- Delete some breakpoints or auto-display expressions | |
delete checkpoint -- Delete a checkpoint (experimental) | |
delete display -- Cancel some expressions to be displayed when program stops | |
delete mem -- Delete memory region | |
delete tracepoints -- Delete specified tracepoints | |
delete tvariable -- Delete one or more trace state variables | |
disable -- Disable some breakpoints | |
disable breakpoints -- Disable some breakpoints | |
disable display -- Disable some expressions to be displayed when program stops | |
disable mem -- Disable memory region | |
---Type <return> to continue, or q <return> to quit---q | |
Quit | |
(gdb) delete 1 | |
(gdb) c | |
Continuing. | |
Program received signal SIGSEGV, Segmentation fault. | |
_wordcopy_fwd_aligned (dstp=<value optimized out>, srcp=<value optimized out>, len=16) at wordcopy.c:119 | |
119 wordcopy.c: No such file or directory. | |
in wordcopy.c | |
(gdb) bt | |
#0 _wordcopy_fwd_aligned (dstp=<value optimized out>, srcp=<value optimized out>, len=16) at wordcopy.c:119 | |
#1 0x00007ffff6a41652 in memmove (dest=0x0, src=<value optimized out>, len=80) at memmove.c:73 | |
#2 0x00007ffff21d3e07 in std::__copy_move<false, true, std::random_access_iterator_tag>::__copy_m<double> (__first=0xfdd360, __last=0xfdd3b0, __result=0x0) | |
at /usr/include/c++/4.5/bits/stl_algobase.h:386 | |
#3 0x00007ffff21f8901 in std::__copy_move_a<false, double*, double*> (__first=0xfdd360, __last=0xfdd3b0, __result=0x0) at /usr/include/c++/4.5/bits/stl_algobase.h:404 | |
#4 0x00007ffff21faab5 in std::__copy_move_a2<false, double*, double*> (__first=0xfdd360, __last=0xfdd3b0, __result=0x0) at /usr/include/c++/4.5/bits/stl_algobase.h:442 | |
#5 0x00007ffff21fa17a in std::copy<double*, double*> (__first=0xfdd360, __last=0xfdd3b0, __result=0x0) at /usr/include/c++/4.5/bits/stl_algobase.h:474 | |
#6 0x00007ffff2302303 in blue_sky::bs_arrbase<double>::assign<double*> (this=0x12a5ea0, start=0xfdd360, finish=0xfdd3b0) at kernel/include/bs_arrbase.h:156 | |
#7 0x00007ffff2300871 in blue_sky::python::test_nparray<blue_sky::bs_array<double, blue_sky::bs_nparray>, blue_sky::bs_array<double, blue_sky::vector_traits> > (a=..., b=...) | |
at kernel/src/python/bs_nparray.cpp:64 | |
#8 0x00007ffff2322758 in boost::python::detail::invoke<boost::python::to_python_value<blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::vector_traits>, true> const&>, blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::vector_traits>, true> (*)(blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true>, blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true>), boost::python::arg_from_python<blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true> >, boost::python::arg_from_python<blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true> > > (rc=..., f=@0x11a6e28, ac0=..., ac1=...) at /opt/libs/boost/boost/python/detail/invoke.hpp:75 | |
#9 0x00007ffff231fa4f in impl<blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::vector_traits>, true> (*)(blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true>, blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true>), boost::python::default_call_policies, boost::mpl::vector3<blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::vector_traits>, true>, blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true>, blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true> > >::operator() (this=0x11a6e28, args_=(<numpy.ndarray at remote 0x12a1a70>, <numpy.ndarray at remote 0x129da20>)) at /opt/libs/boost/boost/python/detail/caller.hpp:223 | |
#10 0x00007ffff231cc21 in boost::python::objects::caller_py_function_impl<boost::python::detail::caller<blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::vector_traits>, true> (*)(blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true>, blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true>), boost::python::default_call_policies, boost::mpl::vector3<blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::vector_traits>, true>, blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true>, blue_sky::smart_ptr<blue_sky::bs_array<double, blue_sky::bs_nparray>, true> > > >::operator() (this=0x11a6e20, args=(<numpy.ndarray at remote 0x12a1a70>, <numpy.ndarray at remote 0x129da20>), kw= | |
0x0) at /opt/libs/boost/boost/python/object/py_function.hpp:38 | |
#11 0x00007ffff07ba7cb in boost::python::objects::py_function::operator() (this=0x11a6e50, args=(<numpy.ndarray at remote 0x12a1a70>, <numpy.ndarray at remote 0x129da20>), kw=0x0) | |
at ./boost/python/object/py_function.hpp:143 | |
#12 0x00007ffff07b8319 in boost::python::objects::function::call (this=0x11a6e40, args=(<numpy.ndarray at remote 0x12a1a70>, <numpy.ndarray at remote 0x129da20>), keywords=0x0) | |
at libs/python/src/object/function.cpp:226 | |
#13 0x00007ffff07b9a65 in boost::python::objects::(anonymous namespace)::bind_return::operator() (this=0x7fffffffce80) at libs/python/src/object/function.cpp:585 | |
#14 0x00007ffff07ba4c5 in boost::detail::function::void_function_ref_invoker0<boost::python::objects::<unnamed>::bind_return, void>::invoke(boost::detail::function::function_buffer &) ( | |
function_obj_ptr=...) at ./boost/function/function_template.hpp:188 | |
---Type <return> to continue, or q <return> to quit---q | |
Quit | |
(gdb) up 7 | |
#7 0x00007ffff2300871 in blue_sky::python::test_nparray<blue_sky::bs_array<double, blue_sky::bs_nparray>, blue_sky::bs_array<double, blue_sky::vector_traits> > (a=..., b=...) | |
at kernel/src/python/bs_nparray.cpp:64 | |
64 res->assign(a->begin(), a->end()); | |
(gdb) l | |
59 std::cout << a->size () << std::endl; | |
60 std::cout << a->ss (0) << std::endl; | |
61 | |
62 *res = *a; | |
63 res->assign(*a); | |
64 res->assign(a->begin(), a->end()); | |
65 //*res = *a->clone(); | |
66 res->resize(sz + 1); | |
67 for(ulong i = 0; i < sz; ++i) | |
68 (*res)[i] = (*a)[i] + (*b)[i]; | |
(gdb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment