A problem on C/C++ struct/gROOT.ProcessLine/Python

From: Kazuyoshi Furutaka <furutaka_at_jb3.so-net.ne.jp>
Date: Sat, 10 Jun 2006 12:12:40 +0900 (JST)


Dear rooters,

On our x86_64 machine running Linux Fedora Core 5 (kernel 2.6.16-1.2122) $ROOTSYS/tutorials/staff.py segfaults (the messages were collected in one of the attachment to this e-mail).

The problem doesn't occur on 32-bit machines with the same OS and configuration...

To reproduce, it's sufficient to run the attached 'test.py' script.

How can I avoid/solve this problem?

VERSIONS: Python 2.4.2 (#1, Feb 12 2006, 03:45:41) [GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

gcc (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1) glibc-2.4-8

ROOT Version 5.11/06 1 June 2006, configured as

    ./configure linuxx8664gcc --enable-ruby --enable-explicitlink Enabled support for asimage, astiff, builtin_afterimage, builtin_freetype, builtin_pcre, builtin_gsl, builtin_zlib, exceptions, explicitlink, krb5, ldap, opengl, pch, python, ruby, shadowpw, shared, ssl, thread, xml, xrootd.

Thanks in advance.

Yours,
Kazuyoshi

--
Kazuyoshi Furutaka
furutaka_at_jb3.so-net.ne.jp



$ python staff.py *** Break *** segmentation violation Generating stack trace... 0x000000391c1605b9 in vsprintf + 0x79 from /lib64/libc.so.6 0x00002aaaaf1d5cc0 in G__fprinterr + 0x160 from /usr/local/root/lib/libCint.so 0x00002aaaaf20a97e in G__getfunction + 0x2c0e from /usr/local/root/lib/libCint.so 0x00002aaaaf1ab1d8 in G__ClassInfo::New() + 0x188 from /usr/local/root/lib/libCint.so 0x00002aaaae8ce824 in TClass::New(TClass::ENewType) + 0xd4 from /usr/local/root/lib/libCore.so 0x00002aaaae3ff913 in PyROOT::TConstructorHolder::operator()(PyROOT::ObjectProxy*, _object*, _object*) + 0x153 from /usr/local/root/lib/libPyROOT.so 0x00002aaaae40cb54 in _ZN6PyROOT55_GLOBAL__N_pyroot_src_MethodProxy.cxx_00000000_8D60D9967mp_callEPNS_11MethodProxyEP7_obj + 0x494 from /usr/local/root/lib/libPyROOT.so 0x0000003922036500 in PyObject_Call + 0x10 from /usr/lib64/libpython2.4.so.1.0 0x000000392207387c in <unknown> from /usr/lib64/libpython2.4.so.1.0 0x000000392206f7e8 in <unknown> from /usr/lib64/libpython2.4.so.1.0 0x0000003922036500 in PyObject_Call + 0x10 from /usr/lib64/libpython2.4.so.1.0 0x00000039220926c9 in PyEval_EvalFrame + 0x2259 from /usr/lib64/libpython2.4.so.1.0 0x00000039220947db in PyEval_EvalFrame + 0x436b from /usr/lib64/libpython2.4.so.1.0 0x0000003922095dd5 in PyEval_EvalCodeEx + 0x915 from /usr/lib64/libpython2.4.so.1.0 0x0000003922095e22 in PyEval_EvalCode + 0x32 from /usr/lib64/libpython2.4.so.1.0 0x00000039220b2059 in <unknown> from /usr/lib64/libpython2.4.so.1.0 0x00000039220b3518 in PyRun_SimpleFileExFlags + 0x1a8 from /usr/lib64/libpython2.4.so.1.0 0x00000039220b97bc in Py_Main + 0x9bc from /usr/lib64/libpython2.4.so.1.0 0x000000391c11ce54 in __libc_start_main + 0xf4 from /lib64/libc.so.6 0x0000000000400659 in <unknown> from python Aborted

#!/usr/bin/python from ROOT import * gROOT.ProcessLine( "struct teststruct_t {\ Int_t intvar;\ Float_t fltvar;\ };" ); test = teststruct_t()

Received on Sat Jun 10 2006 - 05:13:07 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET