Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Segmentation fault (core dumped) while patching ibss #11

@haen7

Description

@haen7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions