Skip to content

Errors when key/value is object/tuple/array which contains string field #3

Description

@eienEika

Following code:

import limdb
type Foo = object
  a: string
let db = initDatabase("db", (int, Foo))
db[1] = Foo(a: "a")
echo db[1]

runs without error.
But in next run (without resetting value) when you try read db[1] program crashes with SIGSEGV.
Some remarks:

  • Foo.a is empty string works;
  • string and seq[string] as db value works.

Also for Foo as key there is another error. It doesn't compile because there are no compare procedure for string, string.

Nim version 1.6.12 and devel, no matter of --mm is refc or arc/orc.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions