Segmentation violation: th2polyHoneycomb.C

Hello,

I get a segmentation violation trying the example th2polyHoneycomb.C.
I tried V5.34 and V6.05, both crashed after “hc->Draw(“gllego”);”…

Tested with .x th2polyHoneycomb.C …

What could I missed?
Thank you!

What could I missed?

Telling us what’s you platform, building ROOT with debug info and providing us with a reasonable stack trace, describing what’s your machine, hardware, drivers etc.?

Sorry, here are at least some informations:

------------------------------------------------------------
  | Welcome to ROOT 6.05/02                http://root.cern.ch |
  |                               (c) 1995-2014, The ROOT Team |
  | Built for linuxx8664gcc                                    |
  | From tag v6-05-02, 14 September 2015                       |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------
root [0] .x hist/th2polyHoneycomb.C 

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
    from libstdcxx.v6.printers import register_libstdcxx_printers
#0  0x00007f5ad22f0b4c in __libc_waitpid (pid=21440, stat_loc=stat_loc
entry=0x7ffebc95e700, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
#1  0x00007f5ad22762e2 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2  0x00007f5ad2fecfc3 in TUnixSystem::StackTrace (this=0x1edc9c0) at /home/merlin/Downloads/root-6.05.02/core/unix/src/TUnixSystem.cxx:2301
#3  0x00007f5ad2fef80c in TUnixSystem::DispatchSignals (this=0x1edc9c0, sig=kSigSegmentationViolation) at /home/merlin/Downloads/root-6.05.02/core/unix/src/TUnixSystem.cxx:3539
#4  <signal handler called>
#5  0x00007f5ad03acfb1 in llvm::cl::AddLiteralOption(llvm::cl::Option&, char const*) () from /usr/local/lib/libCling.so
#6  0x00007f5abde3edcc in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.4.so.1
#7  0x00007f5ad330f13a in call_init (l=<optimized out>, argc=argc
entry=2, argv=argv
entry=0x7ffebc965be8, env=env
entry=0x213a8d0) at dl-init.c:78
#8  0x00007f5ad330f223 in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=<optimized out>) at dl-init.c:36
#9  _dl_init (main_map=0x3700da0, argc=2, argv=0x7ffebc965be8, env=0x213a8d0) at dl-init.c:126
#10 0x00007f5ad3313c70 in dl_open_worker (a=a
entry=0x7ffebc961028) at dl-open.c:577
#11 0x00007f5ad330eff4 in _dl_catch_error (objname=0x7ffebc961018, errstring=0x7ffebc961020, mallocedp=0x7ffebc961010, operate=0x7f5ad33139a0 <dl_open_worker>, args=0x7ffebc961028) at dl-error.c:187
#12 0x00007f5ad33133bb in _dl_open (file=0x7ffebc961290 "/usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so", mode=-2147483390, caller_dlopen=<optimized out>, nsid=-2, argc=2, argv=0x7ffebc965be8, env=0x213a8d0) at dl-open.c:661
#13 0x00007f5ad19b402b in dlopen_doit (a=a
entry=0x7ffebc961240) at dlopen.c:66
#14 0x00007f5ad330eff4 in _dl_catch_error (objname=0x1eefaf0, errstring=0x1eefaf8, mallocedp=0x1eefae8, operate=0x7f5ad19b3fd0 <dlopen_doit>, args=0x7ffebc961240) at dl-error.c:187
#15 0x00007f5ad19b462d in _dlerror_run (operate=operate
entry=0x7f5ad19b3fd0 <dlopen_doit>, args=args
entry=0x7ffebc961240) at dlerror.c:163
#16 0x00007f5ad19b40c1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#17 0x00007f5ac3c1700c in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#18 0x00007f5ac3c1abeb in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#19 0x00007f5ac3bf752c in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#20 0x00007f5ac3bf3f3b in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#21 0x00007f5ac3bf46d0 in glXChooseVisual () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#22 0x00007f5ac4230a84 in TX11GLManager::InitGLWindow (this=0x36df750, winID=71303427) at /home/merlin/Downloads/root-6.05.02/graf3d/gl/src/TX11GL.cxx:213
#23 0x00007f5ac5d4e78c in TRootCanvas::CreateCanvas (this=this
entry=0x346acf0, name=name
entry=0x31c7590 "c1") at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TRootCanvas.cxx:552
#24 0x00007f5ac5d5190c in TRootCanvas::TRootCanvas (this=0x346acf0, c=0x31eb700, name=0x31c7590 "c1", x=10, y=10, width=700, height=500) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TRootCanvas.cxx:321
#25 0x00007f5ac5cdf20c in TRootGuiFactory::CreateCanvasImp (this=<optimized out>, c=0x31eb700, title=0x31c7590 "c1", x=10, y=10, width=700, height=500) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TRootGuiFactory.cxx:71
#26 0x00007f5ac789e4c0 in TCanvas::Constructor (this=0x31eb700, name=0x31c7590 "c1", title=0x31c7590 "c1", form=<optimized out>) at /home/merlin/Downloads/root-6.05.02/graf2d/gpad/src/TCanvas.cxx:284
#27 0x00007f5ac789f4a4 in TCanvas::TCanvas (this=0x31eb700, name=0x31c7590 "c1", title=0x31c7590 "c1", form=1) at /home/merlin/Downloads/root-6.05.02/graf2d/gpad/src/TCanvas.cxx:224
#28 0x00007f5ac789f5e1 in TCanvas::MakeDefCanvas () at /home/merlin/Downloads/root-6.05.02/graf2d/gpad/src/TCanvas.cxx:1406
#29 0x00007f5ad333002b in ?? ()
#30 0x00007ffebc961a00 in ?? ()
#31 0x00007ffebc961c80 in ?? ()
#32 0x0000000001f584c0 in ?? ()
#33 0x00007f5ad3330000 in ?? ()[/code]
#34 0x00007ffebc961a00 in ?? ()
#35 0x00007f5acef59d93 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /usr/local/lib/libCling.so
#36 0x00007f5acef5ebfa in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value*, cling::Transaction**) () from /usr/local/lib/libCling.so
#37 0x00007f5acef5ed53 in cling::Interpreter::process(std::string const&, cling::Value*, cling::Transaction**) () from /usr/local/lib/libCling.so
#38 0x00007f5aceff5c03 in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /usr/local/lib/libCling.so
#39 0x00007f5aceee3e06 in TCling::ProcessLine (this=0x1f53d60, line=<optimized out>, error=0x0) at /home/merlin/Downloads/root-6.05.02/core/meta/src/TCling.cxx:1969
#40 0x00007f5ad2f0f9f0 in TApplication::ProcessLine (this=0x1f41a30, line=<optimized out>, sync=<optimized out>, err=0x0) at /home/merlin/Downloads/root-6.05.02/core/base/src/TApplication.cxx:991
#41 0x00007f5ad2e7c2b1 in TROOT::ProcessLine (this=0x7f5ad32c8780 <ROOT::GetROOT1()::alloc>, line=line
entry=0x7f5ad2ff4982 "TCanvas::MakeDefCanvas();", error=error
entry=0x0) at /home/merlin/Downloads/root-6.05.02/core/base/src/TROOT.cxx:1992
#42 0x00007f5ad2e7c31e in TROOT::MakeDefCanvas (this=<optimized out>) at /home/merlin/Downloads/root-6.05.02/core/base/src/TROOT.cxx:1192
#43 0x00007f5ad2f30c5d in TObject::AppendPad (this=0x2fe0600, option=0x7ffebc9621d9 "gllego") at /home/merlin/Downloads/root-6.05.02/core/base/src/TObject.cxx:169
#44 0x00007f5ac807e408 in TH1::Draw (this=0x2fe0600, option=<optimized out>) at /home/merlin/Downloads/root-6.05.02/hist/hist/src/TH1.cxx:2907
#45 0x00007f5ad3332215 in ?? ()
#46 0x400155d5a31f7ec5 in ?? ()
#47 0x3ff0000000000000 in ?? ()
#48 0x4000000000000000 in ?? ()
#49 0x00007530d3332000 in ?? ()
#50 0x00007f5ac86fc530 in vtable for TRandom () from /usr/local/lib/libMathCore.so
#51 0x0200000000000000 in ?? ()
#52 0x00007f5ad32a7690 in vtable for TString () from /usr/local/lib/libCore.so
#53 0x006d6f646e61520c in ?? ()
#54 0x00007ffebc962750 in ?? ()
#55 0x00007f5ad32a7690 in vtable for TString () from /usr/local/lib/libCore.so
#56 0x0000001f00000021 in ?? ()
#57 0x00000000031bf6f0 in ?? ()
#58 0x00007ffe3651df4b in ?? ()
#59 0x0000000000000000 in ?? ()
===========================================================


The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
[root.cern.ch/bugs](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  0x00007f5ad03acfb1 in llvm::cl::AddLiteralOption(llvm::cl::Option&, char const*) () from /usr/local/lib/libCling.so
#6  0x00007f5abde3edcc in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.4.so.1
#7  0x00007f5ad330f13a in call_init (l=<optimized out>, argc=argc
entry=2, argv=argv
entry=0x7ffebc965be8, env=env
entry=0x213a8d0) at dl-init.c:78
#8  0x00007f5ad330f223 in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=<optimized out>) at dl-init.c:36
#9  _dl_init (main_map=0x3700da0, argc=2, argv=0x7ffebc965be8, env=0x213a8d0) at dl-init.c:126
#10 0x00007f5ad3313c70 in dl_open_worker (a=a
entry=0x7ffebc961028) at dl-open.c:577
#11 0x00007f5ad330eff4 in _dl_catch_error (objname=0x7ffebc961018, errstring=0x7ffebc961020, mallocedp=0x7ffebc961010, operate=0x7f5ad33139a0 <dl_open_worker>, args=0x7ffebc961028) at dl-error.c:187
#12 0x00007f5ad33133bb in _dl_open (file=0x7ffebc961290 "/usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so", mode=-2147483390, caller_dlopen=<optimized out>, nsid=-2, argc=2, argv=0x7ffebc965be8, env=0x213a8d0) at dl-open.c:661
#13 0x00007f5ad19b402b in dlopen_doit (a=a
entry=0x7ffebc961240) at dlopen.c:66
#14 0x00007f5ad330eff4 in _dl_catch_error (objname=0x1eefaf0, errstring=0x1eefaf8, mallocedp=0x1eefae8, operate=0x7f5ad19b3fd0 <dlopen_doit>, args=0x7ffebc961240) at dl-error.c:187
#15 0x00007f5ad19b462d in _dlerror_run (operate=operate
entry=0x7f5ad19b3fd0 <dlopen_doit>, args=args
entry=0x7ffebc961240) at dlerror.c:163
#16 0x00007f5ad19b40c1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#17 0x00007f5ac3c1700c in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#18 0x00007f5ac3c1abeb in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#19 0x00007f5ac3bf752c in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#20 0x00007f5ac3bf3f3b in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#21 0x00007f5ac3bf46d0 in glXChooseVisual () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#22 0x00007f5ac4230a84 in TX11GLManager::InitGLWindow (this=0x36df750, winID=71303427) at /home/merlin/Downloads/root-6.05.02/graf3d/gl/src/TX11GL.cxx:213
#23 0x00007f5ac5d4e78c in TRootCanvas::CreateCanvas (this=this
entry=0x346acf0, name=name
entry=0x31c7590 "c1") at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TRootCanvas.cxx:552
#24 0x00007f5ac5d5190c in TRootCanvas::TRootCanvas (this=0x346acf0, c=0x31eb700, name=0x31c7590 "c1", x=10, y=10, width=700, height=500) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TRootCanvas.cxx:321
#25 0x00007f5ac5cdf20c in TRootGuiFactory::CreateCanvasImp (this=<optimized out>, c=0x31eb700, title=0x31c7590 "c1", x=10, y=10, width=700, height=500) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TRootGuiFactory.cxx:71
#26 0x00007f5ac789e4c0 in TCanvas::Constructor (this=0x31eb700, name=0x31c7590 "c1", title=0x31c7590 "c1", form=<optimized out>) at /home/merlin/Downloads/root-6.05.02/graf2d/gpad/src/TCanvas.cxx:284
#27 0x00007f5ac789f4a4 in TCanvas::TCanvas (this=0x31eb700, name=0x31c7590 "c1", title=0x31c7590 "c1", form=1) at /home/merlin/Downloads/root-6.05.02/graf2d/gpad/src/TCanvas.cxx:224
#28 0x00007f5ac789f5e1 in TCanvas::MakeDefCanvas () at /home/merlin/Downloads/root-6.05.02/graf2d/gpad/src/TCanvas.cxx:1406
#29 0x00007f5ad333002b in ?? ()
#30 0x00007ffebc961a00 in ?? ()
#31 0x00007ffebc961c80 in ?? ()
#32 0x0000000001f584c0 in ?? ()
#33 0x00007f5ad3330000 in ?? ()
#34 0x00007ffebc961a00 in ?? ()
#35 0x00007f5acef59d93 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /usr/local/lib/libCling.so
#36 0x00007f5acef5ebfa in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value*, cling::Transaction**) () from /usr/local/lib/libCling.so
#37 0x00007f5acef5ed53 in cling::Interpreter::process(std::string const&, cling::Value*, cling::Transaction**) () from /usr/local/lib/libCling.so
#38 0x00007f5aceff5c03 in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /usr/local/lib/libCling.so
===========================================================


Root > 
 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
    from libstdcxx.v6.printers import register_libstdcxx_printers
#0  0x00007f5ad22f0b4c in __libc_waitpid (pid=21822, stat_loc=stat_loc
entry=0x7ffebc961180, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
#1  0x00007f5ad22762e2 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2  0x00007f5ad2fecfc3 in TUnixSystem::StackTrace (this=0x1edc9c0) at /home/merlin/Downloads/root-6.05.02/core/unix/src/TUnixSystem.cxx:2301
#3  0x00007f5ad2fef80c in TUnixSystem::DispatchSignals (this=0x1edc9c0, sig=kSigSegmentationViolation) at /home/merlin/Downloads/root-6.05.02/core/unix/src/TUnixSystem.cxx:3539
#4  <signal handler called>
#5  TGViewPort::HandleConfigureNotify (this=0x34d2270, event=0x7ffebc963840) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TGCanvas.cxx:289
#6  0x00007f5ac5cccb43 in TGFrame::HandleEvent (this=0x34d2270, event=0x7ffebc963840) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TGFrame.cxx:458
#7  0x00007f5ac5d19458 in TGClient::HandleEvent (this=0x330cc90, event=0x7ffebc963840) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TGClient.cxx:840
#8  0x00007f5ac5d1970d in TGClient::ProcessOneEvent (this=this
entry=0x330cc90) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TGClient.cxx:650
#9  0x00007f5ac5d1976d in TGClient::HandleInput (this=0x330cc90) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TGClient.cxx:697
#10 0x00007f5ad2fefeb8 in TUnixSystem::DispatchOneEvent (this=0x1edc9c0, pendingOnly=<optimized out>) at /home/merlin/Downloads/root-6.05.02/core/unix/src/TUnixSystem.cxx:1046
#11 0x00007f5ad2f4efc6 in TSystem::InnerLoop (this=0x1edc9c0) at /home/merlin/Downloads/root-6.05.02/core/base/src/TSystem.cxx:410
#12 0x00007f5ad2f4fbd0 in TSystem::Run (this=0x1edc9c0) at /home/merlin/Downloads/root-6.05.02/core/base/src/TSystem.cxx:360
#13 0x00007f5ad2f0de4f in TApplication::Run (this=this
entry=0x1f41a30, retrn=retrn
entry=false) at /home/merlin/Downloads/root-6.05.02/core/base/src/TApplication.cxx:1139
#14 0x00007f5ad2b1fbd8 in TRint::Run (this=0x1f41a30, retrn=<optimized out>) at /home/merlin/Downloads/root-6.05.02/core/rint/src/TRint.cxx:459
#15 0x000000000040104c in main (argc=1, argv=0x7ffebc965be8) at /home/merlin/Downloads/root-6.05.02/main/src/rmain.cxx:30
===========================================================


The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
[root.cern.ch/bugs](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  TGViewPort::HandleConfigureNotify (this=0x34d2270, event=0x7ffebc963840) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TGCanvas.cxx:289
#6  0x00007f5ac5cccb43 in TGFrame::HandleEvent (this=0x34d2270, event=0x7ffebc963840) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TGFrame.cxx:458
#7  0x00007f5ac5d19458 in TGClient::HandleEvent (this=0x330cc90, event=0x7ffebc963840) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TGClient.cxx:840
#8  0x00007f5ac5d1970d in TGClient::ProcessOneEvent (this=this
entry=0x330cc90) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TGClient.cxx:650
#9  0x00007f5ac5d1976d in TGClient::HandleInput (this=0x330cc90) at /home/merlin/Downloads/root-6.05.02/gui/gui/src/TGClient.cxx:697
#10 0x00007f5ad2fefeb8 in TUnixSystem::DispatchOneEvent (this=0x1edc9c0, pendingOnly=<optimized out>) at /home/merlin/Downloads/root-6.05.02/core/unix/src/TUnixSystem.cxx:1046
#11 0x00007f5ad2f4efc6 in TSystem::InnerLoop (this=0x1edc9c0) at /home/merlin/Downloads/root-6.05.02/core/base/src/TSystem.cxx:410
#12 0x00007f5ad2f4fbd0 in TSystem::Run (this=0x1edc9c0) at /home/merlin/Downloads/root-6.05.02/core/base/src/TSystem.cxx:360
#13 0x00007f5ad2f0de4f in TApplication::Run (this=this
entry=0x1f41a30, retrn=retrn
entry=false) at /home/merlin/Downloads/root-6.05.02/core/base/src/TApplication.cxx:1139
#14 0x00007f5ad2b1fbd8 in TRint::Run (this=0x1f41a30, retrn=<optimized out>) at /home/merlin/Downloads/root-6.05.02/core/rint/src/TRint.cxx:459
#15 0x000000000040104c in main (argc=1, argv=0x7ffebc965be8) at /home/merlin/Downloads/root-6.05.02/main/src/rmain.cxx:30
===========================================================

System:

Ubuntu 14.04 LTS 64 Bit
E6400 3.8GiB
Intel® Core™2 Duo CPU T9550 @ 2.66GHz × 2
Gallium 0.4 on NV98

I just tried with the root master on Mac, (6.05/03), it works fine.
Is OpenGL properly installed on you machine ?

I confirm that the problem exists on my Ubuntu 14.04.3 LTS / x86_64 with both ROOT v5-34-00-patches (several weeks old) and 6.05/02.

Hi,

odd.
I could not reproduce it with 6.05/02 on Kubuntu 15.05, CMake build.
Was a Makefile build used?

Danilo

I just tried again on Mac with :

ROOT 6.05/03 Cocoa back end ==> Ok
ROOT 6.05/03 X11 backend ==> OK
ROOT 5.34/35 Cocoa backend ==> OK
ROOT 5.34/35 X11 backend ==> Fail. but no crash I get:

root [0] .x th2polyHoneycomb.C
Error in <TUnixSystem::DynamicPathName>: RGL[.so | .dll | .dylib | .sl | .dl | .a] does not exist in /Users/couet/git/root534-bin/lib:/Users/couet/git/root534-bin/lib:/Users/couet/git/root534-bin/lib::.:/Users/couet/git/root534-bin/lib::/Users/couet/git/root534-bin/cint/cint/stl
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1
Error in <TUnixSystem::DynamicPathName>: RGL[.so | .dll | .dylib | .sl | .dl | .a] does not exist in /Users/couet/git/root534-bin/lib:/Users/couet/git/root534-bin/lib:/Users/couet/git/root534-bin/lib::.:/Users/couet/git/root534-bin/lib::/Users/couet/git/root534-bin/cint/cint/stl

But i just moved to cmake build for this one… could be that …

Do some other example using GL work ?
What do you get if you turn GL backend ON in $ROOTSYS/etc/system.rootc ? doing

OpenGL.CanvasPreferGL:                      1

do that and plot a simple 1D histo

I don’t know how to test GL output with a TH1 so I tried a TH2 with “GLLEGO” and “GLSURF” and both are drawn fine with ROOT v5-34-00-patches (several weeks old) but they “segfault” with 6.05/02 (both ROOT versions built with the standard “configure + make” method).

I just tried to draw a TH1 and with 6.05/02 I also get a “segfault”.

As I said:

OpenGL.CanvasPreferGL: 1

in $ROOTSYS/etc/system.rootc

Ok, OpenGL is the problem:

leads to a segfault with tutorials/hist/h1draw.C.
With the default setting:

everything works fine!

May be you can make sure it is properly installed by running some OpenGL tests coming with your distribution.

As I wrote, “GLLEGO” and “GLSURF” work fine with ROOT v5-34-00-patches (several weeks old) but they “segfault” with 6.05/02.

With both X11 and Cocoa backend on Mac I get:

$ root
   ----------------------------------------------------------------
  | Welcome to ROOT 6.05/03                    http://root.cern.ch |
  |                                   (c) 1995-2014, The ROOT Team |
  | Built for macosx64                                             |
  | From heads/master@v6-05-02-349-g04c1ad5, Oct 09 2015, 12:42:37 |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'     |
   ----------------------------------------------------------------

root [0] gStyle->SetCanvasPreferGL();
root [1] hpxpy->Draw("gllego")
Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1
root [2] 

Hi,

I think this is a problem with llvm through Mesa Gallium vs. ROOT clang.

Danilo, I remember there was a discussion about this a month or two back, about llvm initialization code being invoked twice … now I can’t find the discussion any more. Did we reach any conclusion back then?

Cheers,
Matevz

Hi Matevz,

I think we did not converge on that.
I will raise this point at the ROOT meeting tomorrow.

Cheers,
Danilo

BTW. This issue seems to be closely connected to: ROOT 6.04/06 on Ubuntu 14.04 tutorials/eve/box.C crashes