Home | News | Documentation | Download

PyROOT and numpy 1.15


#1

ROOT Version: 6.08.06
Platform: sl6
Compiler: gcc4.9.3


Hi all,

I have updated numpy to 1.15.4 and now see a clash with ROOT. If I do

import numpy
import ROOT

everything works fine. If I do

import ROOT
import numpy

I get a segmentation error:

*** Break *** segmentation violation

===========================================================

There was a crash.

This is the entire stack trace of all threads:

===========================================================

#0 0x00007fd7da00389e in waitpid () from /lib64/libc.so.6

#1 0x00007fd7d9f954e9 in do_system () from /lib64/libc.so.6

#2 0x00007fd7d224b5ba in TUnixSystem::StackTrace() () from /cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_88/ROOT/6.08.06/x86_64-slc6-gcc49-opt/lib/libCore.so

#3 0x00007fd7d224dabc in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_88/ROOT/6.08.06/x86_64-slc6-gcc49-opt/lib/libCore.so

#4 <signal handler called>

#5 0x00007fd7da07f716 in __strcmp_sse42 () from /lib64/libc.so.6

#6 0x00007fd7d18cd2aa in ?? () from /usr/lib64/libcrypto.so.10

#7 0x00007fd7d18cd5f6 in lh_insert () from /usr/lib64/libcrypto.so.10

#8 0x00007fd7d185512b in OBJ_NAME_add () from /usr/lib64/libcrypto.so.10

#9 0x00007fd7baf7e89d in openssl_add_all_ciphers_int () from /home/bjoern/anaconda2/lib/python2.7/lib-dynload/_hashlib.so

#10 0x00007fd7baf2d87a in ossl_init_add_all_ciphers_ossl_ () from /home/bjoern/anaconda2/lib/python2.7/lib-dynload/_hashlib.so

#11 0x00007fd7da982e03 in pthread_once () from /lib64/libpthread.so.0

#12 0x00007fd7baf4184a in CRYPTO_THREAD_run_once () from /home/bjoern/anaconda2/lib/python2.7/lib-dynload/_hashlib.so

#13 0x00007fd7baf2dedc in OPENSSL_init_crypto () from /home/bjoern/anaconda2/lib/python2.7/lib-dynload/_hashlib.so

#14 0x00007fd7baf26de2 in init_hashlib () from /home/bjoern/anaconda2/lib/python2.7/lib-dynload/_hashlib.so

#15 0x00007fd7dacf518e in _PyImport_LoadDynamicModule () from /home/bjoern/anaconda2/bin/../lib/libpython2.7.so.1.0

#16 0x00007fd7dacf3323 in import_submodule () from /home/bjoern/anaconda2/bin/../lib/libpython2.7.so.1.0

...

#176 0x00007fd7dad1016c in Py_Main () from /home/bjoern/anaconda2/bin/../lib/libpython2.7.so.1.0

#177 0x00007fd7d9f75d20 in __libc_start_main () from /lib64/libc.so.6

#178 0x000055f2f147707f in _start () at ../sysdeps/x86_64/elf/start.S:103

===========================================================

Any ideas as to what is causing this?


#2

Hi @mikkel

I cannot reproduce on lxplus, using LCG 94 on SLC6 gcc62 with ROOT 6.14, python2, numpy 1.15.4.

My guess is that this is a problem with your anaconda installation. I see in the stack trace that you are using the anaconda Python. ROOT’s interplay with anaconda is tricky: ROOT needs to be compiled with the same compiler that is shipped with anaconda.

Cheers,
Enric


#3

Hi - thanks for getting back - I will try and get rid of my anaconda dependence!

Best,
Mikkel