Problem with tutorials root 4.01/03

Dear Rooters

I have just downloded the new CVS version of root, and started
the tutorials “demo.C”. When trying “shapes.C” I get the following
error, probably due to the new openGL viewer:
root [1]
*** Break *** bus error
Root > *** malloc[28909]: Deallocation of a pointer not malloced: 0x57; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug

Interestingly, the download from Sept. 20 did not have this problem.

BTW, “geometry.C” gives the following result, but nothing is displayed:
root [1] .x geometry.C
na49 : Real Time = 5.25 seconds Cpu Time = 5.01 seconds
geometry : Real Time = 0.68 seconds Cpu Time = 0.62 seconds

As known, my system is MacOS X 10.3.1.

Best regards
Christian

Dear Rooters

I have just downloaded the newest root version from cvs and tested
the tutorials. When running “shapes.C” I still get the same error as
reported last time and OpenGL viewer is not opened.

Christian

Same for me:


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 4.01/03 20 October 2004 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      [root.cern.ch](http://root.cern.ch)            *
    
  •                                     *
    

FreeType Engine v2.1.3 used to render TrueType fonts.
Compiled for macosx.

CINT/ROOT C/C++ Interpreter version 5.15.154, Sep 29 2004
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.

Welcome to the ROOT tutorials

Type “.x demos.C” to get a toolbar from which to execute the demos

Type “.x demoshelp.C” to see the help window

root [0] .x shapes.C

*** Break *** bus error

with MacOSX 10.3.5 and CVS head

Could you report the traceback when it breaks? (using gdb/bt)

I have no way to test on Mac. It works OK on Windows and Linux.

Rene

I’ve fixed the problem on MacOS and now shapes.C works again with the new OpenGL viewer.

Cheers, Fons.

hmm, not for me

#0 0xbffe4764 in ?? ()
#1 0x0403f7d0 in TGVerticalLayout::GetDefaultSize() const ()
#2 0x04367204 in TGCompositeFrame::GetDefaultWidth() const ()
#3 0x04015658 in TGCanvas::Layout() ()
#4 0x0402f7cc in TGCompositeFrame::MapSubwindows() ()
#5 0x0402f7cc in TGCompositeFrame::MapSubwindows() ()
#6 0x0402f7cc in TGCompositeFrame::MapSubwindows() ()
#7 0x0402f7cc in TGCompositeFrame::MapSubwindows() ()
#8 0x0402f7cc in TGCompositeFrame::MapSubwindows() ()
#9 0x0310e734 in TViewerOpenGL::CreateViewer() ()
#10 0x0310db60 in TViewerOpenGL::TViewerOpenGL(TVirtualPad*) ()
#11 0x0311fae0 in G__G__GL_255_1_0(G__value*, char const*, G__param*, int) ()
#12 0x004ed5f0 in G__CallFunc::ExecInt(void*) ()
#13 0x01a4ec64 in TMethodCall::Execute(void*, long&) ()
#14 0x019edea0 in TPluginHandler::ExecPlugin(int, …) ()
#15 0x01a1fe2c in TVirtualViewer3D::Viewer3D(char const*) ()
#16 0x02407128 in TPad::x3d(char const*) ()
#17 0x0242fb98 in G__G__GPad_192_0_21(G__value*, char const*, G__param*, int) ()
#18 0x0046e0f8 in G__call_cppfunc ()
#19 0x0045b914 in G__interpret_func ()
#20 0x0043acdc in G__getfunction ()
#21 0x004d3630 in G__getstructmem ()
#22 0x004cce3c in G__getvariable ()
#23 0x0042f6c4 in G__getitem ()
#24 0x0042ddc4 in G__getexpr ()
#25 0x00485bd4 in G__exec_function ()
#26 0x0048d4bc in G__exec_statement ()
#27 0x00415504 in G__exec_tempfile_core ()
#28 0x0041573c in G__exec_tempfile ()
#29 0x00495a98 in G__process_cmd ()
#30 0x01a3cab8 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) ()
#31 0x019bca9c in TApplication::ProcessFile(char const*, int*) ()
#32 0x019bc2e8 in TApplication::ProcessLine(char const*, bool, int*) ()
#33 0x002073ec in TRint::HandleTermInput() ()
#34 0x01a8c4d0 in TUnixSystem::CheckDescriptors() ()
#35 0x01a8bb00 in TUnixSystem::DispatchOneEvent(bool) ()
#36 0x01a0ba84 in TSystem::InnerLoop() ()
#37 0x01a0b9f0 in TSystem::Run() ()
#38 0x019bcd9c in TApplication::Run(bool) ()
#39 0x00206e10 in TRint::Run(bool) ()
#40 0x000021b0 in main ()
#41 0x00001c24 in _start (argc=1, argv=0xbffffb20, envp=0xbffffb28) at /SourceCache/Csu/Csu-47/crt.c:267
#42 0x8fe1a558 in __dyld__dyld_start ()

Hi Eddy,

I can reproduce the problem. We will investigate.

Rene