[ROOT] Segmentation violation from root running threaded demo

From: Peter Gallanis (peter@gallanis.com)
Date: Tue May 29 2001 - 04:39:10 MEST


Configuration: Dell Laptop (PIII) running RedHat 7.1, root version 3.00/06 

I installed RedHat 7.1 and am now experiencing segmentation errors when running the CalcPi example.  I built the example as described in the makefile, loaded the libpthread.so and libThread.so libraries (via rootlogon.C) then loaded CalcPiThread.so and RunPi.C file.  When I invoke the RunPi() function (with and without a parameter), I get the "Intervals = 10.00000" message printed out and a segmentation violation error message from root, and then "Function RunPi() busy flag cleared" message.  Getting root to terminate usually takes a combinaiton of ^C and .q commands.

I built root using  'configure linux --enable-thread'  and when I start root it says it was "Compiled with thread support". I have also set Unix.*.Root.UseThreads to true (as well as Root.Debug to true).  If I use gEnv->Print(), I see that those parms are indeed set to ture.

I had this working a month or so ago, and then added RedHat to a new system and downloaded the current version of root.  I don't recall the previous verson of root I used (the machine died on me) so maybe it's related to this specific release.

In a related question, I am planning on build a standalone system around the root class libraries, and will be relying heavily on the thread and other classes .  Was root intended to be run like this and has it ever been done beore, because I could never really get the standalone version to work before when the interactive version did run.

Thanks,
Peter



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:47 MET