Git Product home page Git Product logo

Comments (3)

cdeil avatar cdeil commented on May 22, 2024

The crash did occur when importing roopy.root2array.root_numpy, e.g. like this:

python -c 'import rootpy.root2array'

I did reinstall rootpy, and as before librootnumpy seems to have been compiled successfully:

creating build/temp.macosx-10.7-x86_64-2.7/rootpy/root2array/root_numpy
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -O2 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Users/deil/bin/root/root_v5.32.02.source/include -Irootpy/root2array/root_numpy/ -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c rootpy/root2array/root_numpy/_librootnumpy.cxx -o build/temp.macosx-10.7-x86_64-2.7/rootpy/root2array/root_numpy/_librootnumpy.o -pthread -m64 -I/Users/deil/bin/root/root_v5.32.02.source/include
In file included from rootpy/root2array/root_numpy/_librootnumpy.cxx:14:
rootpy/root2array/root_numpy/TreeStructure.h:155:17: warning: unused variable 'ok' [-Wunused-variable]
            int ok = find_coltype(leaf,ct,cv);
                ^
rootpy/root2array/root_numpy/TreeStructure.h:242:19: warning: unused variable 'tmp' [-Wunused-variable]
            char* tmp = PyString_AsString(pytype);
                  ^
rootpy/root2array/root_numpy/TreeStructure.h:391:21: warning: unused variable 'rt' [-Wunused-variable]
        const char* rt = leaf->GetTypeName();
                    ^
rootpy/root2array/root_numpy/TreeStructure.h:526:17: warning: unused variable 'ilocal' [-Wunused-variable]
            int ilocal = bc.LoadTree(iEntry);
                ^
rootpy/root2array/root_numpy/TreeStructure.h:514:13: warning: unused variable 'kkk' [-Wunused-variable]
        int kkk = PyArray_DescrConverter(numpy_descr,&descr);
            ^
rootpy/root2array/root_numpy/_librootnumpy.cxx:175:12: warning: unused variable 'tree' [-Wunused-variable]
    TTree* tree=NULL;
           ^
rootpy/root2array/root_numpy/_librootnumpy.cxx:178:15: warning: unused variable 'array' [-Wunused-variable]
    PyObject* array=NULL;
              ^
rootpy/root2array/root_numpy/_librootnumpy.cxx:205:12: warning: unused variable 'tree' [-Wunused-variable]
    TTree* tree=NULL;
           ^
rootpy/root2array/root_numpy/_librootnumpy.cxx:208:15: warning: unused variable 'array' [-Wunused-variable]
    PyObject* array=NULL;
              ^
9 warnings generated.
/usr/bin/clang++ -bundle -undefined dynamic_lookup -isysroot / -L/opt/local/lib build/temp.macosx-10.7-x86_64-2.7/rootpy/root2array/root_numpy/_librootnumpy.o -o build/lib.macosx-10.7-x86_64-2.7/rootpy/root2array/root_numpy/_librootnumpy.so -L/Users/deil/bin/root/root_v5.32.02.source/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread -Wl,-rpath,/Users/deil/bin/root/root_v5.32.02.source/lib -lm -ldl -m64 -L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib

Also now the segfault during the docs build is gone, there are only a few warnings:

http://dl.dropbox.com/u/4923986/bug_reports/rootpy_docs2.log

I don't know what changed, the backtrace from the root_numpy import mentioned ROOT::TROOT, and this (still) crashes for me on Mac and Linux:

python -c 'import ROOT; ROOT.TROOT()'

Hmm, I guess this issue might be resolved.

from rootpy.

ndawe avatar ndawe commented on May 22, 2024

The docs need some attention... I've fixed all warnings and errors and removed root_numpy from the list of documented modules since it should really be invisible to users.

python -c 'import ROOT; ROOT.TROOT()'

This also crashes for me... Looks like a double delete?

from rootpy.

cdeil avatar cdeil commented on May 22, 2024

I've filed a ROOT bug report about the crash when creating ROOT.TROOT() here:
https://savannah.cern.ch/bugs/?94478

It's classified as spam at the moment, though, apparently their bug reported has been configured to detect stupid things like trying to construct a second object for a signleton class. :-)

Thanks for the quick fixes in rootpy!

from rootpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.