Severe problem with PyRoot - file segmentation fault

From: James Jackson <james.jackson_at_cern.ch>
Date: Fri, 13 Jun 2008 16:54:04 +0100


Hi,

I am having serious problems with PyRoot on a new SLC4 machine (it's a VM but that shouldn't make any difference), with ROOT built from the latest production source:



[james_at_slc4vm PdfErrors]$ python
Python 2.3.4 (#1, Dec 11 2007, 21:18:01) [GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> from ROOT import TFile, TH1F

Warning in <TClassTable::Add>: class TFile already in TClassTable ...many more of these...
Warning in <TClassTable::Add>: class TViewer3DPad already in TClassTable
>>> f = TFile("test.root", "recreate")
>>> g = TH1F("testhist", "testhist", 10, 0, 10)
>>> g.Fill(5)

6
>>> f.ls()
TFile**		test.root	
  TFile*		test.root	
   OBJ: TH1F	testhist	testhist : 0 at: 0x9a9e280

>>> f.Close()
>>> <here do Ctrl+D>

Segmentation fault

Subsequently inspecting the root file shows it to be empty:



[james_at_slc4vm PdfErrors]$ python
Python 2.3.4 (#1, Dec 11 2007, 21:18:01) [GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> from ROOT import TFile

Warning in <TClassTable::Add>: class TFile already in TClassTable ...many more of these
Warning in <TClassTable::Add>: class TViewer3DPad already in TClassTable
>>> f = TFile("test.root")
>>> f.ls()
TFile**		test.root	
  TFile*		test.root
----------------------------------

Could anybody suggest what is going wrong?

[james_at_slc4vm PdfErrors]$ uname -a
Linux slc4vm.local 2.6.9-67.0.15.EL.cern #1 Thu May 8 11:11:47 CEST 2008 i686 i686 i386 GNU/Linux

Regards,
James. Received on Fri Jun 13 2008 - 17:54:22 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 13 2008 - 23:50:01 CEST