Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save SED4906/cebdf8149240be856753d3a3c530b941 to your computer and use it in GitHub Desktop.

Select an option

Save SED4906/cebdf8149240be856753d3a3c530b941 to your computer and use it in GitHub Desktop.
Userland crashes with PCID
Debug information for team /bin/sh /boot/home/haiku/generated.x86_64/cross-tools-x86_64-bu (118200):
CPU(s): 4x Intel Core™ i3-9100F
Memory: 15.94 GiB total, 840.72 MiB used
Haiku revision: hrev59395+1 Jan 1 1980 00:00:0 (x86_64)
Active Threads:
thread 118201: team 118200 debug task
thread 118200: sh (main)
state: Exception (General protection fault)
Frame IP Function Name
-----------------------------------------------
0x7f49e06b95a0 0x3328a69cdd strncmp + 0x2d
Disassembly:
strncmp:
0x0000003328a69cb0: 4889f8 mov %rdi, %rax
0x0000003328a69cb3: 4809f0 or %rsi, %rax
0x0000003328a69cb6: a803 test $0x3, %al
0x0000003328a69cb8: 7459 jz 0x3328a69d13
0x0000003328a69cba: 4885d2 test %rdx, %rdx
0x0000003328a69cbd: 751b jnz 0x3328a69cda
0x0000003328a69cbf: eb5f jmp 0x3328a69d20
0x0000003328a69cc1: 0f1f8000000000 nopl %eax, (%rax)
0x0000003328a69cc8: 84c0 test %al, %al
0x0000003328a69cca: 7415 jz 0x3328a69ce1
0x0000003328a69ccc: 4883c701 add $0x1, %rdi
0x0000003328a69cd0: 4883c601 add $0x1, %rsi
0x0000003328a69cd4: 4883ea01 sub $0x1, %rdx
0x0000003328a69cd8: 7446 jz 0x3328a69d20
0x0000003328a69cda: 0fb607 movzxb (%rdi), %eax
0x0000003328a69cdd: 3806 cmpb %al, (%rsi) <--
Frame memory:
[0x7f49e06b9598] .D.(3... ee 44 a6 28 33 00 00 00
0x7f49e06b95d0 0x3328a644e9 getenv + 0x69
0x7f49e06b9a00 0x3328a5cac9 preload_addons() + 0x19
0x7f49e06b9a90 0x3328a5cbb7 load_program + 0x27
0x7f49e06b9ac0 0x3328a6441e runtime_loader + 0xee
00000000 0x7fa0dc2f0258 commpage_thread_exit + 0
Registers:
rip: 0x0000003328a69cdd
rsp: 0x00007f49e06b9598
rbp: 0x00007f49e06b95c0
rax: 0x000000000000004c
rbx: 0xecd3888dd870dc6c
rcx: 0x736465ff524d4e43
rdx: 0x0000000000000011
rsi: 0xecd3888dd870dc6c
rdi: 0x0000003328a6a643
r8: 0xfefefefefefefeff
r9: 0x0000000000000003
r10: 0x0000000000001000
r11: 0x0000000000000246
r12: 0x00007f49e06ba698
r13: 0x0000003328a6a643
r14: 0x0000000000000011
r15: 0x0000000000000000
cs: 0x002b
ds: 0x0000
es: 0x0000
fs: 0x0000
gs: 0x0000
ss: 0x0023
st0: 0
st1: 0
st2: 0
st3: 0
st4: 0
st5: 0
st6: 0
st7: 0
mm0: {0, 0, 0, 0}
mm1: {0, 0, 0, 0}
mm2: {0, 0, 0, 0}
mm3: {0, 0, 0, 0}
mm4: {0, 0, 0, 0}
mm5: {0, 0, 0, 0}
mm6: {0, 0, 0, 0}
mm7: {0, 0, 0, 0}
ymm0: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm1: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm2: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm3: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm4: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm5: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm6: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm7: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm8: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm9: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm10: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm11: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm12: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm13: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm14: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
ymm15: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
Loaded Images:
ID Text Base Text End Data Base Data End Type Name
--------------------------------------------------------------------------------
1471505 0x3328a54000 0x3328a73000 0x3328a73000 0x3328a74000 lib /boot/system/runtime_loader
1471504 0x7fa0dc2f0000 0x7fa0dc2f8000 0x00000000 0x00000000 system commpage
Areas:
ID Base End Size (KiB) Protection Locking Name
--------------------------------------------------------------------------------
4506541 0x269457000 0x269467000 64 rw- none rld heap
4506542 0x1e5dc45000 0x1e5dc46000 4 rw-S none _rld_debug_
4506539 0x3328a54000 0x3328a73000 124 r-x none runtime_loader_seg0rx
4506540 0x3328a73000 0x3328a74000 4 rw- none runtime_loader_seg1rw
4506537 0x7f49df6ba000 0x7f49e06bf000 16404 rw-s none sh_118200_stack
4506538 0x7fa0dc2f0000 0x7fa0dc2f8000 32 r-xSk full commpage
4506536 0x7fef98b9b000 0x7fef98b9f000 16 rw-k full user area
Protection Flags: r - read, w - write, x - execute, s - stack, o - overcommit, c - cloneable, S - shared, k - kernel
Semaphores:
ID Count Last Holder Name
------------------------------------------------------------
Debug information for team /bin/sh /boot/home/haiku/generated.x86_64/cross-tools-x86_64-bu (119342):
CPU(s): 4x Intel Core™ i3-9100F
Memory: 15.94 GiB total, 847.13 MiB used
Haiku revision: hrev59395+1 Jan 1 1980 00:00:0 (x86_64)
Active Threads:
thread 119343: team 119342 debug task
thread 119342: sh (main)
state: Exception (Segment violation)
Frame IP Function Name
-----------------------------------------------
0x7f42d48b9720 0x189318d9cdd strncmp + 0x2d
Disassembly:
strncmp:
0x00000189318d9cb0: 4889f8 mov %rdi, %rax
0x00000189318d9cb3: 4809f0 or %rsi, %rax
0x00000189318d9cb6: a803 test $0x3, %al
0x00000189318d9cb8: 7459 jz 0x189318d9d13
0x00000189318d9cba: 4885d2 test %rdx, %rdx
0x00000189318d9cbd: 751b jnz 0x189318d9cda
0x00000189318d9cbf: eb5f jmp 0x189318d9d20
0x00000189318d9cc1: 0f1f8000000000 nopl %eax, (%rax)
0x00000189318d9cc8: 84c0 test %al, %al
0x00000189318d9cca: 7415 jz 0x189318d9ce1
0x00000189318d9ccc: 4883c701 add $0x1, %rdi
0x00000189318d9cd0: 4883c601 add $0x1, %rsi
0x00000189318d9cd4: 4883ea01 sub $0x1, %rdx
0x00000189318d9cd8: 7446 jz 0x189318d9d20
0x00000189318d9cda: 0fb607 movzxb (%rdi), %eax
0x00000189318d9cdd: 3806 cmpb %al, (%rsi) <--
Frame memory:
[0x7f42d48b9718] .D.1.... ee 44 8d 31 89 01 00 00
0x7f42d48b9750 0x189318d44e9 getenv + 0x69
0x7f42d48b9b80 0x189318ccac9 preload_addons() + 0x19
0x7f42d48b9c10 0x189318ccbb7 load_program + 0x27
0x7f42d48b9c40 0x189318d441e runtime_loader + 0xee
00000000 0x7f341277b258 commpage_thread_exit + 0
Registers:
rip: 0x00000189318d9cdd
rsp: 0x00007f42d48b9718
rbp: 0x00007f42d48b9740
rax: 0x000000000000004c
rbx: 0x00007f44444fad6f
rcx: 0x736465ff524d4e43
rdx: 0x0000000000000011
rsi: 0x00007f44444fad6f
rdi: 0x00000189318da643
r8: 0xfefefefefefefeff
r9: 0x0000000000000003
r10: 0x0000000000001000
r11: 0x0000000000000246
r12: 0x00007f42d48ba740
r13: 0x00000189318da643
r14: 0x0000000000000011
r15: 0x0000000000000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 0, 0, 0, 0, 0, 0, 0, 0}
ymm15: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
Loaded Images:
ID Text Base Text End Data Base Data End Type Name
--------------------------------------------------------------------------------
1484738 0x189318c4000 0x189318e3000 0x189318e3000 0x189318e4000 lib /boot/system/runtime_loader
1484737 0x7f341277b000 0x7f3412783000 0x00000000 0x00000000 system commpage
Areas:
ID Base End Size (KiB) Protection Locking Name
--------------------------------------------------------------------------------
4545686 0x7bd1ebb000 0x7bd1ecb000 64 rw- none rld heap
4545687 0x956e7b2000 0x956e7b3000 4 rw-S none _rld_debug_
4545684 0x189318c4000 0x189318e3000 124 r-x none runtime_loader_seg0rx
4545685 0x189318e3000 0x189318e4000 4 rw- none runtime_loader_seg1rw
4545683 0x7f341277b000 0x7f3412783000 32 r-xSk full commpage
4545682 0x7f42d38ba000 0x7f42d48bf000 16404 rw-s none sh_119342_stack
4545681 0x7ff1b1f0d000 0x7ff1b1f11000 16 rw-k full user area
Protection Flags: r - read, w - write, x - execute, s - stack, o - overcommit, c - cloneable, S - shared, k - kernel
Semaphores:
ID Count Last Holder Name
------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment