[Bug 647545] Re: safesign (libaetpkss.so) hangs the process which uses it

2011-04-03 Thread Ludovic Rousseau
Naty has pcsc-lite version 1.7.0 so the bug should be fixed.
Closing the bug report.

** Changed in: pcsc-lite (Ubuntu)
   Status: New = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/647545

Title:
  safesign (libaetpkss.so) hangs the process which uses it

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 647545] Re: safesign (libaetpkss.so) hangs the process which uses it

2010-10-22 Thread Ludovic Rousseau
Your Python sample exposed a bug in pcsc-lite. It is now fixed un
revision 5344.

I now have:
$ ./SCardCancel2.py
Context established!
context canceled
Released context.

-- 
safesign (libaetpkss.so) hangs the process which uses it
https://bugs.launchpad.net/bugs/647545
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 647545] Re: safesign (libaetpkss.so) hangs the process which uses it

2010-10-22 Thread Ludovic Rousseau
I have no problem on Linux using pcsc-lite 1.6.5 and your Python sample.

$ ./SCardCancel2.py Context established!
context canceled
Exception: Failed to release context: Command cancelled.


PCSC-Lite 1.5.3 is an old version. You should at least try with version 1.5.5.

-- 
safesign (libaetpkss.so) hangs the process which uses it
https://bugs.launchpad.net/bugs/647545
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 647545] Re: safesign (libaetpkss.so) hangs the process which uses it

2010-10-22 Thread Jan Rochat
Hi Ludovic,

I can not force ubuntu to update to 1.6.5., maybe you should tell them
to. Furthermore the example above gives no exception when running on
windows 7 or windows xp. (release context does return success instead of
cancel)

Jan

-- 
safesign (libaetpkss.so) hangs the process which uses it
https://bugs.launchpad.net/bugs/647545
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 647545] Re: safesign (libaetpkss.so) hangs the process which uses it

2010-10-21 Thread Jan Rochat
Below a program that shows the problem out of the context of SafeSign 
(libaetpkss.so). The program runs fine on Windows (XP), and hangs on Ubuntu 
with 
PCSC-Lite 1.5.3

#! /usr/bin/env python

from smartcard.scard import *

try:
 hresult, hcontext = SCardEstablishContext(SCARD_SCOPE_USER)
 if hresult != SCARD_S_SUCCESS:
 raise Exception('Failed to establish context : ' +
 SCardGetErrorMessage(hresult))
 print 'Context established!'

 try:

 hresult = SCardCancel(hcontext)
 if hresult != SCARD_S_SUCCESS:
 raise Exception('Failed to cancel context : ' +
 SCardGetErrorMessage(hresult))
 print 'context canceled'

 finally:
 hresult = SCardReleaseContext(hcontext)
 if hresult != SCARD_S_SUCCESS:
 raise Exception('Failed to release context: ' +
 SCardGetErrorMessage(hresult))
 print 'Released context.'

except Exception, message:
 print Exception:, message

Cheers,

Jan

BTW  If you encounter problems with SafeSign you can always send a bug
report to supp...@aeteurope.nl

-- 
safesign (libaetpkss.so) hangs the process which uses it
https://bugs.launchpad.net/bugs/647545
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 647545] Re: safesign (libaetpkss.so) hangs the process which uses it

2010-09-29 Thread Paul Moran
Also seen this problem with the 1.5 libs. However upgrading to 1.6.4
causes other issues: the hanging problem goes away but now the usb token
is never detected.

It could be a problem with libaetpkss.so since its closed source and we
can't tell if its correct or not.

-- 
safesign (libaetpkss.so) hangs the process which uses it
https://bugs.launchpad.net/bugs/647545
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 647545] Re: safesign (libaetpkss.so) hangs the process which uses it

2010-09-26 Thread Magosányi Árpád
I confirm that 1.6.x does not have this problem (I have installed it
from debian pool), so I have lost interest in patching an old version,
so I will be happy with a WONTFIX.

The answer to your questions:
- no, there is no one at the other end of the pipe
- I could generate a pcscd log, but I think it would not bring us closer.

-- 
safesign (libaetpkss.so) hangs the process which uses it
https://bugs.launchpad.net/bugs/647545
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 647545] Re: safesign (libaetpkss.so) hangs the process which uses it

2010-09-25 Thread Ludovic Rousseau
Interesting patch. But I (as upstream maintainer) can't apply it before
I understand the problem.

If you can write a small sample to reproduce the problem without using a
proprietary software I will have a look.

If it is not possible I have some questions:
- does the FIFO the code is trying to open exists or not?
- can you follow [1] and generate a pcscd log?

[1] http://pcsclite.alioth.debian.org/ccid.html#support

-- 
safesign (libaetpkss.so) hangs the process which uses it
https://bugs.launchpad.net/bugs/647545
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 647545] Re: safesign (libaetpkss.so) hangs the process which uses it

2010-09-25 Thread Magosányi Árpád
I don't know what the heck libaetpkss does, as it is closed source.
I assure you I am not happy to use proprietary code. It kept a lot of my 
packages downgraded because this bug, and it took me a day to figure out at 
last what is the problem.
It is possible that safesign calls linpcsc-lite in the wrong way.
But it is a good custom of open source software to work around bugs in other 
software.
In the other hand open() without O_NONBLOCK definitely hangs on a fifo if there 
is no process at the other side.
My patch could definitely be improved to have a timeout to wait if pcscd comes 
up.
But it does work without that, at least for me.

-- 
safesign (libaetpkss.so) hangs the process which uses it
https://bugs.launchpad.net/bugs/647545
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 647545] Re: safesign (libaetpkss.so) hangs the process which uses it

2010-09-25 Thread Ludovic Rousseau
The latest pcsc-lite 1.6.x do not use a fifo anymore. So the patch would
only be for the 1.5.x branch.

If I can't reproduce/understand the bug myself I will not apply the patch, even 
if it works for you.
I note you have not replied to the 2 questions in my previous message.

-- 
safesign (libaetpkss.so) hangs the process which uses it
https://bugs.launchpad.net/bugs/647545
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs