|
From: David A. <dm...@an...> - 2001-08-20 16:56:52
|
On the off chance that someone has an insight:
I've been wanting to build an RPM for RedHat 7.1 but have been held up by a
difficult bug that affects several of the demo programs.
The following short VPython program segfaults:
from visual import *
value = 1.0
pos = vector(-1.01475,0.0876125,0)
axis = vector(0,1,0)
value = value*dot(pos,axis)
The following code in "getattr_methods" crashes deep in the "throw"
machinery:
virtual Object getattr_methods( const char *_name )
{
STD::string name( _name );
method_map_t &mm = methods();
if( name == "__methods__" )
{
List methods;
for( method_map_t::iterator i = mm.begin(); i != mm.end(); ++i )
methods.append( String( (*i).first ) );
return methods;
}
// see if name exists
if( mm.find( name ) == mm.end() )
throw AttributeError( name );
#0 0x4008b801 in __kill () from /lib/i686/libc.so.6
#1 0x4002e61b in raise (sig=6) at signals.c:65
#2 0x4008cd82 in abort () at ../sysdeps/generic/abort.c:88
#3 0x4087d9dc in __cxxabiv1::__terminate(void (*)()) ()
from /usr/lib/libstdc++.so.3
#4 0x4087d8cf in __gxx_personality_v0 () from /usr/lib/libstdc++.so.3
#5 0x408d1fd7 in _Unwind_GetTextRelBase () from /lib/libgcc_s.so.1
#6 0x408d210e in _Unwind_RaiseException () from /lib/libgcc_s.so.1
#7 0x4087db54 in __cxa_throw () from /usr/lib/libstdc++.so.3
#8 0x40286772 in Py::PythonExtension<Vector>::getattr_methods(char const*)
(
this=0x80e7ed0, _name=0x401a8bb0 "__array__")
at CXX/Include/CXX_Extensions.h:578
#9 0x402596ee in Vector::getattr(char const*) (this=0x80e7ed0,
attr=0x401a8bb0 "__array__") at pvector.cpp:250
#10 0x40262ea9 in Py::PythonType::getattr_handler(_object*, char*) (
self=0x80e7ed4, name=0x401a8bb0 "__array__")
at CXX/Src/cxx_extensions.cxx:357
#11 0x0807db0e in PyObject_GetAttrString () at eval.c:41
#12 0x0807db3f in PyObject_HasAttrString () at eval.c:41
#13 0x401a4512 in array_fromobject (op_in=0x80e7ed4, type=12, min_depth=0,
max_depth=0, flags=0) at ./Src/arrayobject.c:1723
#14 0x401a48a1 in PyArray_FromObject (op=0x80e7ed4, type=12, min_depth=0,
max_depth=0) at ./Src/arrayobject.c:1797
#15 0x40196659 in array_array (ignored=0x0, args=0x80bae08, kws=0x80e8280)
at ./Src/multiarraymodule.c:883
#16 0x080557e2 in PyEval_CallObjectWithKeywords () at eval.c:41
#17 0x080556be in PyEval_CallObjectWithKeywords () at eval.c:41
#18 0x080544e0 in PyEval_EvalCode () at eval.c:41
#19 0x08054399 in PyEval_EvalCode () at eval.c:41
#20 0x08054399 in PyEval_EvalCode () at eval.c:41
#21 0x08054399 in PyEval_EvalCode () at eval.c:41
#22 0x08054399 in PyEval_EvalCode () at eval.c:41
#23 0x080521b5 in PyEval_EvalCode () at eval.c:41
#24 0x08065785 in PyRun_File () at eval.c:41
#25 0x08064d00 in PyRun_SimpleFile () at eval.c:41
#26 0x080648fb in PyRun_AnyFile () at eval.c:41
#27 0x080502c4 in Py_Main () at eval.c:41
#28 0x0804fc73 in main () at eval.c:41
#29 0x4007a177 in __libc_start_main (main=0x804fc54 <main>, argc=2,
---Type <return> to continue, or q <return> to quit---
ubp_av=0xbffffadc, init=0x804f1ec <_init>, fini=0x8096a1c <_fini>,
rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffffacc)
at ../sysdeps/generic/libc-start.c:129
|