Re: [ROOT] TMapFiles

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Jun 04 2001 - 23:09:27 MEST


Hi PG,

  are you trying to map an existing file with a new version of ROOT?
This might not work since the memory layout might have changed of the
program and its shared libs.

Cheers, Fons.


On Mon, Jun 04, 2001 at 03:06:37PM +0200, Piergiorgio Cerello wrote:
> 
> Hi Fons,
> first of all, thanks.
> I'm now linking with:
> 
> ROOTLIBS      = $(shell $(ROOTSYS)/bin/root-config --new --glibs) -lMinuit
> -lHtml -lProof -lThread
> 
> Second, unfortunately, I still get an error when trying to open the
> shared memory:
> 
> gdb) run 127.0.0.1 /data1 onl > geb2hdt.dat
> Starting program: /data1/fROOT/bin/tgt_Linux/geb2hdt 127.0.0.1 /data1 onl
> > geb2hdt.dat
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x41cd5000 in ?? () from /data2/root/lib/libGraf3d.so
> Current language:  auto; currently c
> 
> Any suggestion?
> 
> Thanks, ciao,
> 
>  Piergiorgio
> 
> PS: I'm running on RedHat 6.2
> 
> On Tue, 29 May 2001, Fons Rademakers wrote:
> 
> > Hi Piergiorgio,
> > 
> >   is this in a standalone program or using the root.exe module? In the
> > first case make sure you link with libNew.so (i.e. root-config --new --libs)
> > in the latter use directly "rootn.exe" instead of "root" which call "root.exe".
> > 
> > Cheers, Fons.
> > 
> > 
> > 
> > Piergiorgio Cerello wrote:
> > > 
> > > Dear all,
> > > in migrating to ROOT 3.00 (from 2.23) I find the following error in
> > > creating a TMapFile:
> > > 
> > > Error in <TMapFile::TMapFile>: mapped file not in mmalloc format or
> > > already open in RW mode by another process
> > > 
> > > which was not there before.
> > > Any suggestion?
> > > thanks!
> > > Piergiorgio
> > 
> > -- 
> > Org:    CERN, European Laboratory for Particle Physics.
> > Mail:   1211 Geneve 23, Switzerland
> > E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
> > WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910
> > 

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



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