Skip to content

Segmentation fault on output executable #101

@OvercookedBeef

Description

@OvercookedBeef

I was following the instructions for SEA from here.

Here are my steps:

$ node --experimental-sea-config sea-config.json
Wrote single executable preparation blob to sea-prep.blob
$ cp $(command -v node) "sea_linux"
$ npx postject "sea_linux" NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2
Start injection of NODE_SEA_BLOB in sea_linux...
warning: Can't find string offset for section name '.note'
💉 Injection done!
$ ./sea_linux 
Segmentation fault (core dumped)

Here's my sea-config.json:

{
    "main": "index.js",
    "output": "sea-prep.blob"
}

I ran it with GDB and here's the output, not sure if it's helpful:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7fd4867 in _dl_relocate_object (l=l@entry=0x7ffff7ffe2e0, scope=<optimized out>, reloc_mode=<optimized out>, 
    consider_profiling=<optimized out>, consider_profiling@entry=0) at dl-reloc.c:301
301         ELF_DYNAMIC_RELOCATE (l, scope, lazy, consider_profiling, skip_ifunc);
(gdb) bt
#0  0x00007ffff7fd4867 in _dl_relocate_object (l=l@entry=0x7ffff7ffe2e0, scope=<optimized out>, reloc_mode=<optimized out>, 
    consider_profiling=<optimized out>, consider_profiling@entry=0) at dl-reloc.c:301
#1  0x00007ffff7fe7071 in dl_main (phdr=<optimized out>, phnum=<optimized out>, user_entry=<optimized out>, 
    auxv=<optimized out>) at rtld.c:2314
#2  0x00007ffff7fe3786 in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7fffffffe320, 
    dl_main=dl_main@entry=0x7ffff7fe53e0 <dl_main>) at ../sysdeps/unix/sysv/linux/dl-sysdep.c:141
#3  0x00007ffff7fe50de in _dl_start_final (arg=0x7fffffffe320) at rtld.c:494
#4  _dl_start (arg=0x7fffffffe320) at rtld.c:581
#5  0x00007ffff7fe3dc8 in _start () from /lib64/ld-linux-x86-64.so.2
#6  0x0000000000000001 in ?? ()
#7  0x00007fffffffe6d3 in ?? ()
#8  0x0000000000000000 in ?? ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions