Menu

#1 SafeSign crash

1.0
closed
None
2014-09-21
2014-09-04
Anderson
No

Hi!

Sorry, I'm not on techie field, just trying to work with smart card on linux and found your tool.

I've installed it with:
sudo ./install.sh

that gave me something like
"new winscard.dll 32 bits installed"

Afterwards, I've reinstalled the token admin software (charismatics and safesign), but without luck. Is there other software that works with scard4wine? Did I do something wrong?

Attached is backtrace error from safesign under wine.
token admin version: SafeSignIC3088-x86-win-admin.exe

Thank you very much.

1 Attachments

Discussion

  • Mounir IDRASSI

    Mounir IDRASSI - 2014-09-06

    Hi,

    SCard4Wine is known to work with many smart card middlewareon the market like Gemalto, Oberthur and some eID software.

    From the backtrace, the crash happens Inside the aetpkss1 which is the PKCS#11 provider and it is trying to access a NULL pointer. First, aetpkss1 should not try to access a NULL pointer because it's a coding error. Secondly, there is no indication that this NULL pointer is coming from winscard and it is more probably coming from some Windows API not implemented yet by WINE.

    Is pcsclite working on your machine? Does the command pcsc_scan reports the correct state of the readers? It is important that pcsclite is fully functional before trying to SCard4Wine.

    In order to know more about the cause of the crash, I advise you to enable debugging output in WINE in order to have traces of function calls, especially those made to winscard. From there, we can see how aetpkss1 is interacting with WINE. This is an effective way that is very helpful in determining incompatibilities between WINE and Windows application.

     
  • Anderson

    Anderson - 2014-09-08

    Hi,

    I've managed to make it work directly on linux (without wine, with a native safesign app). Anyway:

    libpsclite1 is installed (version 1.8.10-1ubuntu1), as
    pcscd (loaded on ram), libccid and other tools (gscriptor, pcscd_tools etc). It seems reports are ok.

    I'm afraid I don't know how to enable debugging on wine. I did some research on winehq, found winedbg, but I don't know how to proceed in order to monitor winscard or aetpkss1 (attached dumps from aetcrss1 and tokenadmin)

    If you want to, you can close the topic (I can get my work done) or, if it worths your time and somehow benefits the community, please give me directions to make appropriate reports.

    Sorry for bothering and thank you again.

     
  • Mounir IDRASSI

    Mounir IDRASSI - 2014-09-08

    Hi,

    Thank you for your update. Indeed, your investigation of the issue will be helpful to others, so thank you in advance for that.

    You can trace all Winscard calls by launching wine as follow : WINEDEBUG=+winscard wine tokenadmin.exe

    I hope this will help us find if Winscard is the real reason behind this crash.

     
  • Anderson

    Anderson - 2014-09-11

    Hi! Sorry for the delay.

    It seems that one of Internet Banking "Security Module" ("Módulo de Segurança" of "Banco do Brasil" bank, gbpsv.exe) is the cause of trouble. That plugin is like a virus, a real plague under regular Windows: it gets stuck on startup and ram, cannot be killed/finished and the only way to unistall is by booting a linux partition and deleting its folder by hand.
    Unfortunatly, I need it, but, under gnu/linux I am ok with that, as I use an emulated firefox just for banking.

    If you want to install, here it is: https://seg.bb.com.br/windows.html

     
  • Mounir IDRASSI

    Mounir IDRASSI - 2014-09-11

    Hi,

    The debug dump you posted seem to confirm that Winscard is not responsible and that the banking special service has something to do with it instead.
    Thank you for reporting this. I'll have a look at this banking software even if I'm not sure I can interact with it without a proper card.

    If you don't have any other remarks, I will close this ticket.

    Cheers,

     
  • Mounir IDRASSI

    Mounir IDRASSI - 2014-09-21
    • status: open --> closed
     

Log in to post a comment.