Opened 7 years ago

Closed 7 years ago

#11427 closed Support Requests (invalid)

Boost serialization error when used with Jarsigner

Reported by: bennyboysmith@… Owned by: Robert Ramey
Milestone: Boost 1.58.0 Component: serialization
Version: Boost 1.58.0 Severity: Cosmetic
Keywords: Cc:

Description

Hello,

Background:

I order to automate signing Android APK file files, I have a Gemalto USB smart card plugged into a Scientific Linux 6.6 Virtual Machine. I've installed Boost (1_58) and the necessary software (Java OpenJDK 1.7.0_79) and libraries (pcsc-lite, etc) in order for the VM to recognise and read certs from the smart card.

Even though Jarsigners signs the apk file, it always bombs out with this message:

jarsigner: /usr/local/include/boost/serialization/singleton.hpp:131: static T& boost::serialization::singleton<T>::get_instance() [with T = boost::archive::detail::oserializer<boost::archive::text_oarchive, MiniDriver>]: Assertion `! detail::singleton_wrapper< T >::m_is_destroyed' failed. Aborted

This is the code I am running (most basic form):

jarsigner -verbose -storetype PKCS11 -storepass 123456 $FILENAME Alias

As mentioned before, the apk is actually signing file and I can verify the cert is loaded into the app successfully. However for better error handing and logging I need to resolve this boost error.

Any advice would be greatly appreciated.

Ben

Change History (1)

comment:1 by Robert Ramey, 7 years ago

Resolution: invalid
Status: newclosed

Seems to me this would be an issue with the Jarsigner. This indicates that the static serialization DLL has not been freed before the end of the program. In any case, I don't see how I can address it.

Also note that this double checking only occurs on debug build. It might be that the debug version of the dll is being used.

in any case, I don't see what I can do here.

Note: See TracTickets for help on using tickets.