Skip to content

segmentation fault #866

@antkss

Description

@antkss

command: openrc -o sysinit --user
openrc (OpenRC) 0.62.2

LEGEND: STACK | HEAP | CODE | DATA | WX | RODATA
─────────────────────────────────────────────────────────────────────[ REGISTERS / show-flags on / show-compact-regs on ]─────────────────────────────────────────────────────────────────────
RAX 0                                                                                            RBX 0x7fffffffe9f2 ◂— 0x74696e69737973 /* 'sysinit' */
RDI 0x7fffffffe9f2 ◂— 0x74696e69737973 /* 'sysinit' */                                           RCX 0x73
RSI 0                                                                                            R11 0x216
RDX 0xb                                                                                          R12 0x55555555c066 ◂— '/run/openrc/krunlevel'
R10 0x55555555c07c ◂— 'RC_BOOTLEVEL'                                                             R13 0
R8  0x43                                                                                         R14 0
R9  0x8080808080808001                                                                           R15 0x7fffffffe690 ◂— 4
RBP 4                                                                                            RSP 0x7fffffffe4f8 —▸ 0x555555558f4c ◂— test eax, eax
RIP 0x7ffff7f8cc04 (strcmp+36) ◂— movzx edx, byte ptr [rsi + rax]                                EFLAGS0x10246 [ cf PF af ZF sf IF df of ]
──────────────────────────────────────────────────────────────────────────────────────────[ STACK ]───────────────────────────────────────────────────────────────────────────────────────────
00:0000rsp 0x7fffffffe4f8 —▸ 0x555555558f4c ◂— test eax, eax
01:00080x7fffffffe500 —▸ 0x7fffffffe698 —▸ 0x7fffffffe9e2 ◂— '/sbin/openrc'
02:00100x7fffffffe508 ◂— 4
03:00180x7fffffffe510 —▸ 0x55555555e800 —▸ 0x55555555cc77 ◂— 0x706f74732d6f6e /* 'no-stop' */
04:00200x7fffffffe518 —▸ 0x555555557186 ◂— test al, al
05:00280x7fffffffe520 ◂— 0xd68 /* 'h\r' */
─────────────────────────────────────────────────────────────────────────────[ DISASM / x86-64 / set emulate on ]─────────────────────────────────────────────────────────────────────────────
0x7ffff7f8cc04 <strcmp+36>   movzx  edx, byte ptr [rsi + rax]     <Cannot dereference [0x0]>
      0x7ffff7f8cc08 <strcmp+40>   cmp    cl, dl
      0x7ffff7f8cc0a <strcmp+42>   jne    0x7ffff7f8cc18              <strcmp+56>
      0x7ffff7f8cc0c <strcmp+44>   add    rax, 1
      0x7ffff7f8cc10 <strcmp+48>   test   dl, dl

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions