In my case I have one process that had loaded a key that was stored as a UUID 
in system.data and then the second process fails to load the same key, looking 
at the emulator output, the error is indeed thrown from inside the TPM 
(emulated), but I also see the same behaviour on an Intel NUC with a real TPM.

-----Original Message-----
From: Dmitri Toubelis [mailto:[email protected]] 
Sent: 29 April 2014 22:21
To: Ceri Coburn
Subject: Re: [TrouSerS-users] Multiple context across multiple applications 
issue

Ceri,

A while ago I discovered a bug I trousers that exhibits the similar behavior to 
what you describe. I narrowed down this issue to broken implementation of 
Tspi_Key_UnloadKey() in trousers 
(https://sourceforge.net/p/trousers/bugs/173/). I removed call to this function 
from my code and it solved the problem for me. Obviously, if you are not using 
UnloadKey() then it is something else.

----- Original Message -----
> From: "Ceri Coburn" <[email protected]>
> To: "Dmitri Toubelis" <[email protected]>, "Ceri Coburn" 
> <[email protected]>
> Cc: "trousers-users" <[email protected]>
> Sent: Tuesday, April 29, 2014 2:11:43 PM
> Subject: RE: [TrouSerS-users] Multiple context across multiple 
> applications issue
> 
> Hi Dmitri,
> 
> I don't currently use Tspi_Key_UnloadKey, but that's not to say that I 
> couldn't if it will provide a solution.
> 
> Thanks.
> 
> -----Original Message-----
> From: Dmitri Toubelis [mailto:[email protected]]
> Sent: 29 April 2014 17:04
> To: Ceri Coburn
> Cc: trousers-users
> Subject: Re: [TrouSerS-users] Multiple context across multiple 
> applications issue
> 
> As far as I know the whole purpose of TSS layer is to provide 
> concurrency, so from what you describe it sounds like a bug in 
> trousers.
> 
> Do you by any chance use Tspi_Key_UnloadKey() function in your code?
> If so, then I may have few ideas.
> 
> ----- Original Message -----
> > From: "Ceri Coburn" <[email protected]>
> > To: "trousers-users" <[email protected]>
> > Sent: Tuesday, April 29, 2014 11:08:29 AM
> > Subject: [TrouSerS-users] Multiple context across multiple 
> > applications issue
> > 
> > Hi All,
> > 
> > Are the any restrictions with running multiple applications with 
> > multiple contexts accessing the same key?
> > 
> > I have multiple applications accessing context's that are 
> > simultaneously loading the same keys from the persistent store.
> >  When
> > they are both running I get an error loading keys with an error
> > TPM_INVALID_KEYHANDLE.   I am currently running trousers 0.3.7
> > (Ubuntu
> > 12.04 package) and also confirmed the same issue on Ubuntu 14.04 
> > (0.3.11).
> > 
> > It always seems the second application is the one that has problems 
> > loading the key.
> > 
> > Anyone know if this is by design or could it be cause by another 
> > issue?
> > 
> > Thanks
> > 
> > --------------------------------------------------------------------
> > --
> > -------- "Accelerate Dev Cycles with Automated Cross-Browser Testing 
> > - For FREE Instantly run your Selenium tests across 300+ browser/OS 
> > combos.  Get unparalleled scalability from the best Selenium testing 
> > platform available.
> > Simple to use. Nothing to install. Get started now for free."
> > http://p.sf.net/sfu/SauceLabs
> > _______________________________________________
> > TrouSerS-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/trousers-users
> > 
> 
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud 
> service.
> For more information please visit http://www.symanteccloud.com 
> ______________________________________________________________________
> 
> 

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com 
______________________________________________________________________


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users

Reply via email to