Hello,
I’ve compiled ROOT 5.32.00 from the source. It’s configured for “macosx64” by default.
The contents of “config.status” is the following:
bash-3.2$ cat config.status
--enable-gdml --enable-python --enable-mysql --enable-ruby --enable-roofit --enable-tmva --enable-memstat --enable-fftw3
I am aware most (or all?) of these flags are “on” by default.
I compiled this version of ROOT without a problem.
However, when I start a ROOT interactive session and attempt to open a TCanvas, I get the following segmentation fault.
root [0] TCanvas c1
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
Thread 1 (process 78548):
#0 0x00007fff8227cb28 in wait4 ()
#1 0x00007fff822910e6 in system ()
#2 0x000000010011fd5c in TUnixSystem::StackTrace ()
#3 0x000000010011cd51 in TUnixSystem::DispatchSignals ()
#4 <signal handler called>
#5 0x0000000103af0703 in _XReply ()
#6 0x0000000103ad7855 in XAllocColor ()
#7 0x0000000103c953f3 in find_useable_visual ()
#8 0x0000000103c95ac2 in query_screen_visual_id ()
#9 0x0000000103c972db in create_asvisual_for_id ()
#10 0x0000000103c20bd2 in TASImage::InitVisual ()
#11 0x0000000103c2b063 in TASImage::ReadImage ()
#12 0x0000000102dc2dc3 in TImage::Open ()
#13 0x0000000103306ea4 in TGPicturePool::GetPicture ()
#14 0x00000001033d2ded in TGHScrollBar::TGHScrollBar ()
#15 0x00000001033421b2 in TGCanvas::TGCanvas ()
#16 0x0000000103430046 in TRootCanvas::CreateCanvas ()
#17 0x00000001034307da in TRootCanvas::TRootCanvas ()
#18 0x0000000103439ca7 in TRootGuiFactory::CreateCanvasImp ()
#19 0x0000000102f72955 in TCanvas::Constructor ()
#20 0x0000000102f731d9 in TCanvas::TCanvas ()
#21 0x0000000102fe4a33 in G__G__GPad_157_0_10 ()
#22 0x00000001008c1506 in Cint::G__ExceptionWrapper ()
#23 0x000000010098425c in G__execute_call ()
#24 0x0000000100985a7b in G__call_cppfunc ()
#25 0x0000000100959698 in G__interpret_func ()
#26 0x00000001009486a0 in G__getfunction ()
#27 0x000000010090fad9 in G__define_var ()
#28 0x00000001009ae9db in G__exec_statement ()
#29 0x00000001009058af in G__exec_tempfile_core ()
#30 0x0000000100905bb6 in G__exec_tempfile_fp ()
#31 0x00000001009bc228 in G__process_cmd ()
#32 0x00000001000207fe in TCint::ProcessLine ()
#33 0x000000010006a538 in TApplication::ProcessLine ()
#34 0x0000000101013c0c in TRint::HandleTermInput ()
#35 0x00000001010124b7 in TTermInputHandler::Notify ()
#36 0x000000010101478d in TTermInputHandler::ReadNotify ()
#37 0x000000010011ca12 in TUnixSystem::CheckDescriptors ()
#38 0x000000010011cf26 in TUnixSystem::DispatchOneEvent ()
#39 0x00000001000ad06d in TSystem::InnerLoop ()
#40 0x00000001000af583 in TSystem::Run ()
#41 0x0000000100068ad7 in TApplication::Run ()
#42 0x000000010101437b in TRint::Run ()
#43 0x0000000100000990 in main ()
===========================================================
The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5 0x0000000103af0703 in _XReply ()
#6 0x0000000103ad7855 in XAllocColor ()
#7 0x0000000103c953f3 in find_useable_visual ()
#8 0x0000000103c95ac2 in query_screen_visual_id ()
#9 0x0000000103c972db in create_asvisual_for_id ()
#10 0x0000000103c20bd2 in TASImage::InitVisual ()
#11 0x0000000103c2b063 in TASImage::ReadImage ()
#12 0x0000000102dc2dc3 in TImage::Open ()
#13 0x0000000103306ea4 in TGPicturePool::GetPicture ()
#14 0x00000001033d2ded in TGHScrollBar::TGHScrollBar ()
#15 0x00000001033421b2 in TGCanvas::TGCanvas ()
#16 0x0000000103430046 in TRootCanvas::CreateCanvas ()
#17 0x00000001034307da in TRootCanvas::TRootCanvas ()
#18 0x0000000103439ca7 in TRootGuiFactory::CreateCanvasImp ()
#19 0x0000000102f72955 in TCanvas::Constructor ()
#20 0x0000000102f731d9 in TCanvas::TCanvas ()
===========================================================
Root >
I have seen a post regarding a similar crash: Root problems on macosx64
Here’s a bug-fix for that report: savannah.cern.ch/bugs/index.php?76678
However this seems to refer to 5.28.00, and I assume this should be fixed for 5.32.00.
Can someone point out what could be an issue here?
Here’s my g++ version:
bash-3.2$ g++ --version
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I copy and paste the first part of config.log which indicates minimum system specifications.
bash-3.2$ cat config.log
Checking for source directory
Result: /Applications/ROOT/64bit/5.32.00
Invoked on kazu.local
with Darwin kazu.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
at Thu Feb 9 04:00:03 JST 2012:
./configure
"--enable-gdml"
"--enable-python"
"--enable-mysql"
"--enable-ruby"
"--enable-roofit"
"--enable-tmva"
"--enable-memstat"
"--enable-fftw3"
arch=darwin
chip=i386
rele=10.8.0
macosx64