Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

eosiocpp generate abi errors,when source contains std::map #2446

Closed
chenlian2015 opened this issue Apr 17, 2018 · 2 comments
Closed

eosiocpp generate abi errors,when source contains std::map #2446

chenlian2015 opened this issue Apr 17, 2018 · 2 comments
Assignees
Labels

Comments

@chenlian2015
Copy link

source as belows:

    /*
    @abi table
    */
    struct approveto {
       uint64_t symbol_name;
       std::map<uint64_t, uint64_t> approved;

errors as belows:
/usr/local/bin/eosiocpp: line 67: 10773 Segmentation fault: 11 ${ABIGEN} -extra-arg=-c -extra-arg=--std=c++14 -extra-arg=--target=wasm32 -extra-arg=-nostdinc -extra-arg=-nostdinc++ -extra-arg=-DABIGEN -extra-arg=-I${EOSIO_INSTALL_DIR}/include/libc++/upstream/include -extra-arg=-I${EOSIO_INSTALL_DIR}/include/musl/upstream/include -extra-arg=-I${BOOST_INCLUDE_DIR} -extra-arg=-I${EOSIO_INSTALL_DIR}/include -extra-arg=-I$context_folder -extra-arg=-fparse-all-comments -destination-file=${outname} -verbose=0 -context=$context_folder $1 --

@algys
Copy link

algys commented Apr 17, 2018

hi, I have some problem

segfault in eosio::abi_generator::resolve_type:

(gdb) frame
#0 0x00000000004af95f in eosio::abi_generator::resolve_type(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()

(gdb) bt
#0 0x00000000004af95f in eosio::abi_generator::resolve_type(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()
#1 0x00000000004af9ee in eosio::abi_generator::resolve_type(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()
#2 0x00000000004af9ee in eosio::abi_generator::resolve_type(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()
#3 0x00000000004af9ee in eosio::abi_generator::resolve_type(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()

it seems to recursion...

@andriantolie
Copy link
Contributor

abi_serializer only support builtin-type, struct, and vector

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants