GithubHelp home page GithubHelp logo

Thread 1: EXC_BAD_ACCESS about fishhook HOT 5 CLOSED

facebook avatar facebook commented on April 20, 2024
Thread 1: EXC_BAD_ACCESS

from fishhook.

Comments (5)

swolchok avatar swolchok commented on April 20, 2024

Have you updated your local checkout of fishhook recently? It's difficult to tell without the full crash report, but 4eeb18c fixed an issue that fits the description you provided.

from fishhook.

meiszhe avatar meiszhe commented on April 20, 2024

Have you updated your local checkout of fishhook recently? It's difficult to tell without the full crash report, but 4eeb18c fixed an issue that fits the description you provided.

Hello, i updated my local checkout, but the crash occured again.
if (cur->rebindings[j].replaced != NULL && indirect_symbol_bindings[i] != cur->rebindings[j].replacement) { *(cur->rebindings[j].replaced) = indirect_symbol_bindings[i]; }
Crash Info : Thread 1: EXC_BAD_ACCESS (code=2, address=0x106ea8c90)
I use fishhook (I add 'cwsa' prefix ):
const struct mach_header *header = _dyld_get_image_header(index); intptr_t slide = _dyld_get_image_vmaddr_slide(index); cwsa_rebind_symbols_image(header, slide, (struct cwsa_rebinding[1]){ {"objc_msgSend", cwsa_hook_objc_msgSend, (void *)&cwsa_hook_objc_msgSend} }, 1);
If you know the reason, please tell me, thank you.

from fishhook.

meiszhe avatar meiszhe commented on April 20, 2024

Have you updated your local checkout of fishhook recently? It's difficult to tell without the full crash report, but 4eeb18c fixed an issue that fits the description you provided.

I think i find the reason, {"objc_msgSend", cwsa_hook_objc_msgSend, (void *)&cwsa_hook_objc_msgSend}should be {"objc_msgSend", cwsa_hook_objc_msgSend, (void *)&cwsa_orig_objc_msgSend}.
I changed this, and the crash disappeared.

from fishhook.

swolchok avatar swolchok commented on April 20, 2024

Glad you were able to get it fixed!

from fishhook.

Joan0018 avatar Joan0018 commented on April 20, 2024

Have you updated your local checkout of fishhook recently? It's difficult to tell without the full crash report, but 4eeb18c fixed an issue that fits the description you provided.

Hello, i updated my local checkout, but the crash occured again. if (cur->rebindings[j].replaced != NULL && indirect_symbol_bindings[i] != cur->rebindings[j].replacement) { *(cur->rebindings[j].replaced) = indirect_symbol_bindings[i]; } Crash Info : Thread 1: EXC_BAD_ACCESS (code=2, address=0x106ea8c90) I use fishhook (I add 'cwsa' prefix ): const struct mach_header *header = _dyld_get_image_header(index); intptr_t slide = _dyld_get_image_vmaddr_slide(index); cwsa_rebind_symbols_image(header, slide, (struct cwsa_rebinding[1]){ {"objc_msgSend", cwsa_hook_objc_msgSend, (void *)&cwsa_hook_objc_msgSend} }, 1); If you know the reason, please tell me, thank you.

May I know, where did I add this? currently facing the same issue

XCode version: 13.2.1
MacOS version: 12.1
RN version 0.59

from fishhook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.