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

Segmentation fault (core dumped) #527

@ansigroup

Description

@ansigroup

Hello,

we found an issue (cdt 1.5.0-1.6.1) on using construction which include array of self objects, like std::vector<testtab> :

TABLE testtab {
  uint64_t    id;
  std::vector<testtab> container; 

  auto primary_key() const {  return id; }
};

This construction is used in simpleassets.io (NFT standart) for attaching NFTs and FTs into others NFTs (https://github.com/CryptoLions/SimpleAssets/blob/master/include/SimpleAssets.hpp#L529)

Using CDT 1.5.0 - wasm was created but abi was failed. For deploying wasused manually modified abi file (https://github.com/CryptoLions/SimpleAssets/blob/master/SimpleAssets.abi#L539) and result was OK (img below).

image

With cdt 1.6.1. building is failed totaly and no wasm or abi is created.

Test project with construction:
test.tar.gz

Thanks,
Best Regards,
Bohdan

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions