Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8043507

(smartcardio) javax.smartcardio.CardTerminals.list() fails on MacOSX

XMLWordPrintable

        The function javax.smartcardio.CardTerminals.list() sometimes fails when called from an app running on MacOSX.

        It can be reproduced with ./sun/security/smartcardio/TestDefault.java manual test.
        To make the bug more reproducible I've run it in a loop.
        The failure occurs once on every few hundred cycles.

        java(29245,0x100f21000) malloc: *** mach_vm_map(size=140698833653760) failed (error code=3)
        *** error: can't allocate region
        *** set a breakpoint in malloc_error_break to debug
        Exception in thread "main" java.lang.OutOfMemoryError
        at sun.security.smartcardio.PCSC.SCardListReaders(Native Method)
        at sun.security.smartcardio.PCSCTerminals.list(PCSCTerminals.java:80)
        at javax.smartcardio.CardTerminals.list(CardTerminals.java:72)
        at TestDefault1.main(TestDefault1.java:47)

              igerasim Ivan Gerasimov
              igerasim Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: