GOSTSec / gostcoin

GOST R 34.11-2012 algo, GOST R 34.10-2012 signature
http://gostco.in
MIT License
41 stars 20 forks source link

android sigsegv #14

Closed nonlin-lin-chaos-order-etc-etal closed 7 years ago

nonlin-lin-chaos-order-etc-etal commented 7 years ago

after first wiz completion:


1  ??                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   0xa423ada6 
2  std::locale::operator==(std::locale const&) const                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    0xa423ae5c 
3  std::locale::operator!=(std::locale const&) const                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    0xa423af5e 
4  std::ios_base::imbue(std::locale const&)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             0xa4236a4a 
5  ??                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   0xa423696a 
6  boost::property_tree::stream_translator<char, std::char_traits<char>, std::allocator<char>, char [4]>::put_value(char const (&) [4])                                                                                                                                                                                                                                                                                                                                                                                                 0xa3ec17f8 
7  void boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string>>::put_value<char [4], boost::property_tree::stream_translator<char, std::char_traits<char>, std::allocator<char>, char [4]>>(char const (&) [4], boost::property_tree::stream_translator<char, std::char_traits<char>, std::allocator<char>, char [4]>)                                                                                                                                                                                      0xa3ebc2e8 
8  boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string>>& boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string>>::put<char [4], boost::property_tree::stream_translator<char, std::char_traits<char>, std::allocator<char>, char [4]>>(boost::property_tree::string_path<std::string, boost::property_tree::id_translator<std::string>> const&, char const (&) [4], boost::property_tree::stream_translator<char, std::char_traits<char>, std::allocator<char>, char [4]>)   0xa3eb707c 
9  boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string>>& boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string>>::put<char [4]>(boost::property_tree::string_path<std::string, boost::property_tree::id_translator<std::string>> const&, char const (&) [4])                                                                                                                                                                                                                 0xa3eb3234 
10 writeFirstConfig(bool, bool, bool, bool)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             0xa3eacd40 
11 FinishWizard(int)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    0xa41d6d74 
12 runFirstRunWizard()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  0xa41d6a10 
13 main                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 0xa3de2450 
14 ??                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   0xa4abd1d2 
nonlin-lin-chaos-order-etc-etal commented 7 years ago

http://stackoverflow.com/questions/19316260/android-ndk-doesnt-support-stdlocale

There is no support for locales in the C library / from native code, and this is intentional. As Elliot pointed out, your only hope is to use JNI to get relevant values.

nonlin-lin-chaos-order-etc-etal commented 7 years ago

util.cpp:

using boost::property_tree::ptree;

http://www.boost.org/doc/libs/1_57_0/doc/html/property_tree/reference.html

nonlin-lin-chaos-order-etc-etal commented 7 years ago

переписываю на QSettings

в анонкойне поюзали boost:: ptree ,а он завязан на локали которых в ндк нету

QSettings На локали не повязан

nonlin-lin-chaos-order-etc-etal commented 7 years ago

переписал