napi-rs / napi-rs/package-template

Segmentation fault

Open
#346 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
371
Forks
45
Avg merge
3m
Merged PRs (30d)
1

Description

I have a segmentation fault when loading my native module from a file.
Strangely if I load it from another topper file it's ok then.

I debugged via console.log the index.js entrypoint and the issue is coming when calling. getReports() fonction that lead to the segmentation fault.

So it even does not get the glibcVersionRuntime ,

If I import it elsewhere on my project it's ok and get the glibcVersionRuntime 2.28 and return false

Not sure what to do then..

Capture d’écran 2023-11-08 à 11 42 39

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with index.js at line 26, where the getReports() call is reported to trigger the segmentation fault during native-module loading. Reproduce both the failing package-template load and the working load from another project, then identify why glibcVersionRuntime is not reached; done means the module loads without a segmentation fault and reports the runtime version.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.