Skip to content

Segmentation Fault on test/zim.test.ts #164

@benoit74

Description

@benoit74

We've just had two segfault on test/zim.test.ts, see https://github.com/openzim/node-libzim/actions/runs/16348986226/attempts/2

Looks like it might be correlated to #80 but no clue so opening a distinct issue since context is a bit different.

Next CI run was fine. Tend to prove this is a kind of race condition, maybe related to too early release of the content provider: #80 (comment) ; looking at StringItem code, it uses a StringProvider (see

class StringProvider : public Napi::ObjectWrap<StringProvider> {
) which makes very little things around pointer "reservation", it just manipulate it a bit. It looks like it is highly possible the object is released before pointer is really used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions