RE: [ROOT] rootcint crashes with access violation on Windows

From: Valeri Fine (fine@bnl.gov)
Date: Mon Jul 28 2003 - 17:12:57 MEST


Hello Pere,
  It is the know problem to be fixed.

Can you check how your TEMP and TMP environment variables are defined if
any.


The message:
> Error: rootcint: failed to open \s1gc. in main

means the rootcint attempted to write the *temporary* files to your AFS
mapped drive and failed due the AFS protection.

That explains why 

> If I change my current directory using another drive letter but
pointing
> to the exact same place in the remote file system (AFS) the command
> works and produces the required files.

I doesn't matter where your job reads files from it is matter where it
tries to create the temporary file at.

Try to define the TEMP and TMP variables properly. If that doesn't help
I would dig deeper. Let me know.


> Dear rooters,
> 
>   I have had crashes of rootcint time to time but today I was able to
> reproduce it just by changing the current directory. I am using
version
> v3.05.06 on windows.
> 
> E:\cern.ch\user\m\mato\w0\GAUDI_v12r1\GaudiRootDb\v9r2\dict> rootcint
-f
> ..\dict\TBlobDict.cpp -c ..
> \src\TBlob.h ..\src\LinkDef.h
> Error: rootcint: failed to open \s1gc. in main
> And it pops-up a window saying: The instruction at"0x7c014432"
> referenced memory at "0x0000000C". The memory could not be "read"
> 
> If I change my current directory using another drive letter but
pointing
> to the exact same place in the remote file system (AFS) the command
> works and produces the required files.
> 
> H:\w0\GAUDI_v12r1\GaudiRootDb\v9r2\cmt> rootcint -f
> ..\dict\TBlobDict.cpp -c ..\src\TBlob.h ..\src\L
> inkDef.h
> 
>   The failing execution produces the good TBlobDict.h but the
> TBlobDict.cpp contains only the CINT part and not the ROOT part.
> 
>   The only difference between the two executions is the length of the
> current directory path as far I can see.
> 
> 
> ------------------------------------------------------------
> Pere Mato  CERN, EP Division, CH 1211 Geneva 23, Switzerland
>            e-mail: Pere.Mato@cern.ch    tel: +41 22 76 78696
>            fax:  +41 22 76 79425        gsm: +41 79 20 10855
> 
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET