Skip to content

segmentation fault #866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
antkss opened this issue May 15, 2025 · 5 comments
Open

segmentation fault #866

antkss opened this issue May 15, 2025 · 5 comments

Comments

@antkss
Copy link

antkss commented May 15, 2025

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

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@antkss
Copy link
Author

antkss commented May 15, 2025

there's 1 more thing
when run like this

as@~🍎 openrc --user
as@~🍎

it's normal
no daemon is created
but when logout and login again with openrc --user inside /etc/profile
daemon can be created more than 2 times

@navi-desu
Copy link
Member

first don't use sysinit with user services
second, i've never actually tried --override with user services, i need to fix that
third, pam_openrc.so creates a daemon, or rather, two, supervise-daemon and under it, openrc-user

i'm unsure what you mean with "daemon can be created more than 2 times"

@antkss
Copy link
Author

antkss commented May 15, 2025

sorry, my language, but is that a bug ?

@navi-desu
Copy link
Member

i don't see what behaviour would be considered a bug on the second comment, but i didn't properly understand what "daemons" you speak of

the first comment is indeed a bug, i'll fix it

@antkss
Copy link
Author

antkss commented May 16, 2025

i don't see what behaviour would be considered a bug on the second comment, but i didn't properly understand what "daemons" you speak of

the first comment is indeed a bug, i'll fix it

yes it's mean supervise-daemon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants