iBoot64Patcher icon indicating copy to clipboard operation
iBoot64Patcher copied to clipboard

Segmentation fault (core dumped) while patching ibss

Open haen7 opened this issue 5 years ago • 0 comments

I get Segmentation fault (core dumped) while trying to patch ibss on Ubuntu 18.04. here is the gdb output:

$ iBoot64Patcher ibss.raw ibss.pwn -n
main: Starting...
Segmentation fault (core dumped)
$ gdb iBoot64Patcher 
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
Reading symbols from iBoot64Patcher...done.
(gdb) run ibss.raw ibss.pwn
Starting program: /usr/local/bin/iBoot64Patcher ibss.raw ibss.pwn
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
main: Starting...

Program received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
62	../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
(gdb) bt
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:62
#1  0x00007ffff707f4d3 in _IO_vfprintf_internal (s=s@entry=0x7fffffffda50, format=format@entry=0x7ffff7bceac4 "memstr failed to find \"%s\"", ap=ap@entry=0x7fffffffdba0) at vfprintf.c:1643
#2  0x00007ffff7156411 in __GI___vasprintf_chk (result_ptr=result_ptr@entry=0x55555576a440, flags=flags@entry=1, format=format@entry=0x7ffff7bceac4 "memstr failed to find \"%s\"", 
    args=args@entry=0x7fffffffdba0) at vasprintf_chk.c:66
#3  0x00007ffff79b5251 in vasprintf (__ap=0x7fffffffdba0, __fmt=0x7ffff7bceac4 "memstr failed to find \"%s\"", __ptr=0x55555576a440) at /usr/include/x86_64-linux-gnu/bits/stdio2.h:210
#4  tihmstar::exception::exception (this=0x55555576a410, code=<optimized out>, filename=0x7ffff7bcea8a "vmem.cpp", err=0x7ffff7bceac4 "memstr failed to find \"%s\"") at exception.cpp:23
#5  0x00007ffff7bc3155 in tihmstar::OFexception::OFexception (err=0x7ffff7bceac4 "memstr failed to find \"%s\"", filename=0x7ffff7bcea8a "vmem.cpp", code=85, this=0x55555576a410)
    at ../include/liboffsetfinder64/OFexception.hpp:18
#6  tihmstar::not_found::not_found (error=0x7ffff7bceac4 "memstr failed to find \"%s\"", filename=0x7ffff7bcea8a "vmem.cpp", code=85, this=0x55555576a410)
    at ../include/liboffsetfinder64/OFexception.hpp:39
#7  tihmstar::offsetfinder64::vmem::memstr (this=<optimized out>, little=little@entry=0x7ffff7bcf1a0 "__PAGEZERO") at vmem.cpp:85
#8  0x00007ffff7bcb4b4 in tihmstar::offsetfinder64::ibootpatchfinder64::has_kernel_load (this=<optimized out>) at ibootpatchfinder64.cpp:84
#9  0x00005555555554b4 in main (argc=<optimized out>, argv=0x7fffffffdec8) at main.cpp:54

I built the latest commit (49b4c45) from source.

haen7 avatar Feb 20 '20 14:02 haen7