Skip to content
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

segmentation fault #27

Open
532910 opened this issue Jan 13, 2019 · 3 comments
Open

segmentation fault #27

532910 opened this issue Jan 13, 2019 · 3 comments

Comments

@532910
Copy link

532910 commented Jan 13, 2019

% cat /proc/cmdline        
BOOT_IMAGE=/boot/vmlinuz-4.9.0-8-amd64 ... iomem=relaxed

% lsmod | grep mei         
# catchsegv ./intelmetool 
Bad news, you have a `C204 Chipset LPC Controller` so you have ME hardware on board and it is very difficult to remove, continuing...
RCBA at 0xfed1c000
MEI not hidden on PCI, checking if visible
MEI found: [8086:1c3a] 6 Series/C200 Series Chipset Family MEI Controller #1

ME Status   : 0xf0345
ME Status 2 : 0x40000301

ME: FW Partition Table      : OK
ME: Bringup Loader Failure  : NO
ME: Firmware Init Complete  : YES
ME: Manufacturing Mode      : NO
ME: Boot Options Present    : NO
ME: Update In Progress      : NO
ME: Current Working State   : Normal
ME: Current Operation State : M0 without UMA
ME: Current Operation Mode  : (null)
ME: Error Code              : No Error
ME: Progress Phase          : Module Loading
ME: Power Management Event  : Clean Moff->Mx wake
ME: Progress Phase State    : Unknown 0x00

PCI READ [bc] : 0x000000bc
ME: Extend Register not valid

ME seems okay on this board
Error mapping physical memory 0x000000002ff03000[0x2000] ERRNO=1
Segmentation fault
*** Segmentation fault
Register dump:

 RAX: 0000000000000004   RBX: 0000000000000000   RCX: 0000000000000004
 RDX: 0000000000000000   RSI: 0000000000000004   RDI: 00007ffd86015204
 RBP: 00007ffd860151c0   R8 : 00007ffd860151c4   R9 : 0000000000000cfc
 R10: 0000000000000004   R11: 00007fa4495025f0   R12: 00005599eef333c0
 R13: 00007ffd86015750   R14: 0000000000000000   R15: 0000000000000000
 RSP: 00007ffd860151a0

 RIP: 00005599eef34e9a   EFLAGS: 00013202

 CS: 0033   FS: 0000   GS: 0000

 Trap: 0000000e   Error: 00000004   OldMask: 00000000   CR2: 00000004

 FPUCW: 0000037f   FPUSW: 00000000   TAG: 00000000
 RIP: 00000000   RDP: 00000000

 ST(0) 0000 0000000000000000   ST(1) 0000 0000000000000000
 ST(2) 0000 0000000000000000   ST(3) 0000 0000000000000000
 ST(4) 0000 0000000000000000   ST(5) 0000 0000000000000000
 ST(6) 0000 0000000000000000   ST(7) 0000 0000000000000000
 mxcsr: 1f80
 XMM0:  000000000000000000000000ffffff00 XMM1:  000000000000000000000000ffffff00
 XMM2:  000000000000000000000000ffffff00 XMM3:  000000000000000000000000ffffff00
 XMM4:  000000000000000000000000ffffff00 XMM5:  000000000000000000000000ffffff00
 XMM6:  000000000000000000000000ffffff00 XMM7:  000000000000000000000000ffffff00
 XMM8:  000000000000000000000000ffffff00 XMM9:  000000000000000000000000ffffff00
 XMM10: 000000000000000000000000ffffff00 XMM11: 000000000000000000000000ffffff00
 XMM12: 000000000000000000000000ffffff00 XMM13: 000000000000000000000000ffffff00
 XMM14: 000000000000000000000000ffffff00 XMM15: 000000000000000000000000ffffff00

Backtrace:
./intelmetool(+0x2e9a)[0x5599eef34e9a]
./intelmetool(+0x2f80)[0x5599eef34f80]
./intelmetool(+0x3ace)[0x5599eef35ace]
./intelmetool(+0x2896)[0x5599eef34896]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fa4491802e1]
./intelmetool(+0x13ea)[0x5599eef333ea]

Memory map:

5599eef32000-5599eef38000 r-xp 00000000 00:19 25585 /tmp/intelmetool/intelmetool
5599ef137000-5599ef138000 r--p 00005000 00:19 25585 /tmp/intelmetool/intelmetool
5599ef138000-5599ef139000 rw-p 00006000 00:19 25585 /tmp/intelmetool/intelmetool
5599f0a2f000-5599f0da7000 rw-p 00000000 00:00 0 [heap]
7fa4486f3000-7fa448709000 r-xp 00000000 08:02 1310975 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa448709000-7fa448908000 ---p 00016000 08:02 1310975 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa448908000-7fa448909000 r--p 00015000 08:02 1310975 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa448909000-7fa44890a000 rw-p 00016000 08:02 1310975 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fa44890a000-7fa448922000 r-xp 00000000 08:02 1310997 /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa448922000-7fa448b21000 ---p 00018000 08:02 1310997 /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa448b21000-7fa448b22000 r--p 00017000 08:02 1310997 /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa448b22000-7fa448b23000 rw-p 00018000 08:02 1310997 /lib/x86_64-linux-gnu/libpthread-2.24.so
7fa448b23000-7fa448b27000 rw-p 00000000 00:00 0
7fa448b27000-7fa448b2e000 r-xp 00000000 08:02 1310999 /lib/x86_64-linux-gnu/librt-2.24.so
7fa448b2e000-7fa448d2d000 ---p 00007000 08:02 1310999 /lib/x86_64-linux-gnu/librt-2.24.so
7fa448d2d000-7fa448d2e000 r--p 00006000 08:02 1310999 /lib/x86_64-linux-gnu/librt-2.24.so
7fa448d2e000-7fa448d2f000 rw-p 00007000 08:02 1310999 /lib/x86_64-linux-gnu/librt-2.24.so
7fa448d2f000-7fa448d43000 r-xp 00000000 08:02 1310998 /lib/x86_64-linux-gnu/libresolv-2.24.so
7fa448d43000-7fa448f42000 ---p 00014000 08:02 1310998 /lib/x86_64-linux-gnu/libresolv-2.24.so
7fa448f42000-7fa448f43000 r--p 00013000 08:02 1310998 /lib/x86_64-linux-gnu/libresolv-2.24.so
7fa448f43000-7fa448f44000 rw-p 00014000 08:02 1310998 /lib/x86_64-linux-gnu/libresolv-2.24.so
7fa448f44000-7fa448f46000 rw-p 00000000 00:00 0
7fa448f46000-7fa448f5f000 r-xp 00000000 08:02 1310910 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fa448f5f000-7fa44915e000 ---p 00019000 08:02 1310910 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fa44915e000-7fa44915f000 r--p 00018000 08:02 1310910 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fa44915f000-7fa449160000 rw-p 00019000 08:02 1310910 /lib/x86_64-linux-gnu/libz.so.1.2.8
7fa449160000-7fa4492f5000 r-xp 00000000 08:02 1310950 /lib/x86_64-linux-gnu/libc-2.24.so
7fa4492f5000-7fa4494f5000 ---p 00195000 08:02 1310950 /lib/x86_64-linux-gnu/libc-2.24.so
7fa4494f5000-7fa4494f9000 r--p 00195000 08:02 1310950 /lib/x86_64-linux-gnu/libc-2.24.so
7fa4494f9000-7fa4494fb000 rw-p 00199000 08:02 1310950 /lib/x86_64-linux-gnu/libc-2.24.so
7fa4494fb000-7fa4494ff000 rw-p 00000000 00:00 0
7fa4494ff000-7fa44950b000 r-xp 00000000 08:02 1311290 /lib/x86_64-linux-gnu/libpci.so.3.5.2
7fa44950b000-7fa44970b000 ---p 0000c000 08:02 1311290 /lib/x86_64-linux-gnu/libpci.so.3.5.2
7fa44970b000-7fa44970c000 r--p 0000c000 08:02 1311290 /lib/x86_64-linux-gnu/libpci.so.3.5.2
7fa44970c000-7fa44970d000 rw-p 0000d000 08:02 1311290 /lib/x86_64-linux-gnu/libpci.so.3.5.2
7fa44970d000-7fa449711000 r-xp 00000000 08:02 1310938 /lib/x86_64-linux-gnu/libSegFault.so
7fa449711000-7fa449910000 ---p 00004000 08:02 1310938 /lib/x86_64-linux-gnu/libSegFault.so
7fa449910000-7fa449911000 r--p 00003000 08:02 1310938 /lib/x86_64-linux-gnu/libSegFault.so
7fa449911000-7fa449912000 rw-p 00004000 08:02 1310938 /lib/x86_64-linux-gnu/libSegFault.so
7fa449912000-7fa449935000 r-xp 00000000 08:02 1310723 /lib/x86_64-linux-gnu/ld-2.24.so
7fa449b05000-7fa449b07000 rw-p 00000000 00:00 0
7fa449b07000-7fa449b26000 r-xp 00000000 08:02 1310765 /lib/x86_64-linux-gnu/libudev.so.1.6.5
7fa449b26000-7fa449b27000 r--p 0001e000 08:02 1310765 /lib/x86_64-linux-gnu/libudev.so.1.6.5
7fa449b27000-7fa449b28000 rw-p 0001f000 08:02 1310765 /lib/x86_64-linux-gnu/libudev.so.1.6.5
7fa449b28000-7fa449b2a000 rw-p 00000000 00:00 0
7fa449b2e000-7fa449b32000 rw-s fed1c000 00:06 1027 /dev/mem
7fa449b32000-7fa449b35000 rw-p 00000000 00:00 0
7fa449b35000-7fa449b36000 r--p 00023000 08:02 1310723 /lib/x86_64-linux-gnu/ld-2.24.so
7fa449b36000-7fa449b37000 rw-p 00024000 08:02 1310723 /lib/x86_64-linux-gnu/ld-2.24.so
7fa449b37000-7fa449b38000 rw-p 00000000 00:00 0
7ffd85ff6000-7ffd86017000 rw-p 00000000 00:00 0 [stack]
7ffd86105000-7ffd86107000 r--p 00000000 00:00 0 [vvar]
7ffd86107000-7ffd86109000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
zsh: exit 139   catchsegv ./intelmetool
@zamaudio
Copy link
Owner

zamaudio commented Jan 14, 2019

Looks like you dont have permission to map part of memory as root, maybe your kernel is too old? Sorry not sure what the problem is. You're getting EPERM on mmap.

@532910
Copy link
Author

532910 commented Jan 14, 2019

This is debian sid and stable on 4.19.0-1-amd64 and 4.9.0-8-amd64

@532910
Copy link
Author

532910 commented Jan 14, 2019

I've tried to report same issue to coreboot's redmine but still waiting for registration confirmation.

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