Hi Gerrit,

On Wed, 2006-03-15 at 09:12 +0800, Gerrit Voss wrote:
> Hi,
> 
> On Tue, 2006-03-14 at 13:43 -0600, Dirk Reiners wrote:
> >     Hi everybody,
> > 
> > I've been trying to resurrect my little Python wrapper (Tools/osgBench),
> > but I'm running into some problems that confuse me. So if anybody here
> > has run into a similar problem I'd be interested.
> > 
> > The problem is that the system crashes during osgInit, when initializing
> > the ThreadManager, in free() which is called from __tls_get_addr. The
> > error mesahe (and valgrind) say that the address that is freed has not
> > been allocated. The line that is given as the crash site is a
> > static_cast, which doesn't make a lot of sense to me.
> > 
> > Has anybody seen this kind of crash before? Any hints?
> 
> not really, could you tell us a little bit more (e.g. Linux version,
> compiler version).

sorry:

dream: Tools/osgBench 249 % uname -a
Linux dream.vrac 2.6.15.6 #1 SMP PREEMPT Tue Mar 14 10:41:05 CST 2006
x86_64 x86_64 x86_64 GNU/Linux
dream: Tools/osgBench 250 % gcc --version
gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.1)

OpenSG CVS, x86_64

./configure --prefix=BUILD --with-glut --with-qt=/usr/lib64/qt-3.3/ --
with-tif --with-jpg --with-png --enable-gif --enable-text --enable-opt-
drawtree --enable-pthread-elf-tls

Using Boost 1.33.1 and Python 2.4 with Tools/osgBench

Stack trace attached. Not sure if it's correct, the line it crashes is a
static_cast<>, which doesn't make a lot of sense.

Thanks

        Dirk



(gdb) bt
#0  0x0000003c8b52e37d in raise () from /lib64/tls/libc.so.6
#1  0x0000003c8b52faae in abort () from /lib64/tls/libc.so.6
#2  0x0000003c8b562a01 in __libc_message () from /lib64/tls/libc.so.6
#3  0x0000003c8b5685ce in _int_free () from /lib64/tls/libc.so.6
#4  0x0000003c8b568916 in free () from /lib64/tls/libc.so.6
#5  0x0000003c8b30d5a7 in __tls_get_addr () from /lib64/ld-linux-x86-64.so.2
#6  0x00002aaaafcd6d9a in osg::BasePThreadBase::setupThread (this=0x7d5970) at /home/reiners/OpenSGcvs/OpenSG/Source/Base/Base/OSGBaseThread.cpp:174
#7  0x00002aaaafcd6e26 in osg::BasePThreadBase::init (this=0x7d5970) at /home/reiners/OpenSGcvs/OpenSG/Source/Base/Base/OSGBaseThread.cpp:198
#8  0x00002aaaade87096 in osg::PThreadBase::init (this=0x7d5970) at /home/reiners/OpenSGcvs/OpenSG/Source/System/FieldContainer/OSGThread.cpp:225
#9  0x00002aaaafcfd6cd in osg::ThreadManager::init (this=0x6a1650) at /home/reiners/OpenSGcvs/OpenSG/Source/Base/Base/OSGThreadManager.cpp:385
#10 0x00002aaaafcfd0c3 in osg::ThreadManager::initialize () at /home/reiners/OpenSGcvs/OpenSG/Source/Base/Base/OSGThreadManager.cpp:242
#11 0x00002aaaafcd3850 in osg::osgInit (major=1, minor=6, release=0, debug=false, dll=false, mt=false) at /home/reiners/OpenSGcvs/OpenSG/Source/Base/Base/OSGBaseFunctions.cpp:420
#12 0x00002aaaad19b362 in init_module_osgbench () from /home/reiners/OpenSGcvs/OpenSG/Tools/osgBench/osgbench.so
#13 0x00002aaab0334d67 in boost::function0<void, std::allocator<boost::function_base> >::operator() () from /usr/local/lib/libboost_python-gcc-1_33_1.so.1.33.1
#14 0x00002aaab03349b8 in boost::python::handle_exception_impl () from /usr/local/lib/libboost_python-gcc-1_33_1.so.1.33.1
#15 0x00002aaab03351ee in boost::python::handle_exception<void (*)()> () from /usr/local/lib/libboost_python-gcc-1_33_1.so.1.33.1
#16 0x00002aaab0334ff2 in boost::python::detail::init_module () from /usr/local/lib/libboost_python-gcc-1_33_1.so.1.33.1
#17 0x00000000004995a9 in _PyImport_LoadDynamicModule (name=0x7fffffa5c2b0 "osgbench", pathname=0x7fffffa5be00 "/home/reiners/OpenSGcvs/OpenSG/Tools/osgBench/osgbench.so", fp=0x0) at ./Python/importdl.c:53
#18 0x0000000000496f30 in load_module (name=0x7fffffa5c2b0 "osgbench", fp=0x3898, buf=0x3898 <Address 0x3898 out of bounds>, type=3, loader=0x3898) at Python/import.c:1677
#19 0x0000000000497362 in import_submodule (mod=0x5ffe00, subname=0x7fffffa5c2b0 "osgbench", fullname=0x7fffffa5c2b0 "osgbench") at Python/import.c:2262
#20 0x0000000000497561 in load_next (mod=0x5ffe00, altmod=0x5ffe00, p_name=0x7fffffa5c2b8, buf=0x7fffffa5c2b0 "osgbench", p_buflen=0x7fffffa5c2ac) at Python/import.c:2082
#21 0x0000000000497a22 in import_module_ex (name=0x0, globals=0x6309b0, locals=0x6, fromlist=0x2aaaaab41210) at Python/import.c:1917
#22 0x0000000000497d16 in PyImport_ImportModuleEx (name=0x2aaaaab4f0e4 "osgbench", globals=0x6309b0, locals=0x6309b0, fromlist=0x2aaaaab41210) at Python/import.c:1958
#23 0x000000000046b2c1 in builtin___import__ (self=0x3898, args=0x3898) at Python/bltinmodule.c:45
#24 0x00000000004176c0 in PyObject_Call (func=0x3898, arg=0x3898, kw=0x6) at Objects/abstract.c:1756
#25 0x0000000000472d7c in PyEval_CallObjectWithKeywords (func=0x2aaaaaae3440, arg=0x2aaaaab42100, kw=0x0) at Python/ceval.c:3425
#26 0x00000000004752aa in PyEval_EvalFrame (f=0x683a40) at Python/ceval.c:2020
#27 0x000000000047accf in PyEval_EvalCodeEx (co=0x2aaaaab017a0, globals=0x3898, locals=0x6, args=0x683a40, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2736
#28 0x000000000047af12 in PyEval_EvalCode (co=0x3898, globals=0x3898, locals=0x6) at Python/ceval.c:484
#29 0x00000000004a0e8b in PyRun_FileExFlags (fp=0x62f010, filename=0x7fffffa5e817 "q2.py", start=6, globals=0x6309b0, locals=0x6309b0, closeit=1, flags=0x2aaaaab017a0) at Python/pythonrun.c:1265
#30 0x00000000004a182f in PyRun_SimpleFileExFlags (fp=0x62f010, filename=0x7fffffa5e817 "q2.py", closeit=1, flags=0x7fffffa5cc6c) at Python/pythonrun.c:860
#31 0x0000000000410748 in Py_Main (argc=-5904361, argv=0x0) at Modules/main.c:484
#32 0x0000003c8b51c4bb in __libc_start_main () from /lib64/tls/libc.so.6
#33 0x000000000040fdba in _start ()

Reply via email to