Comments (9)
Hello,
I have the same issue, do you have the following error??
com.apple.xpc.launchd1: Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash
Sep 3 17:03:33 iMac-de-admin com.apple.xpc.launchd1: Service exited due to signal: Segmentation fault: 11
Applications which use this, like dropbox is not working.
do you find a way to fix or debut that ??
Thanks,
from mach_inject.
I have just a segmentation fault in inject code, but most likely it's the same problem as yours.
Unfortunately, do not have a way to fix it at the moment - focused on other tasks.
from mach_inject.
Try removing the fprintf
debugging code from INJECT_ENTRY
in mach_inject_bundle_stub.c. It's ultimately trying to take out a pthread lock, but it's not safe to do so until we are inside pthread_entry
from mach_inject.
It's working back to normal !!!!
Thanks
from mach_inject.
Thank you very much, it worked.
And it seems that without this modifications it was failing sometimes on 10.9, or am I wrong with this?
And, btw, why it worked on 10.9 and stopped to work at 10.10, any ideas?
from mach_inject.
Removing fprintf
from INJECT_ENTRY
fixed the problem for me as well. I'm not sure I understand what pthread lock it was trying to take out? Can you explain? Thanks @iccir
from mach_inject.
Effectively, when we are in INJECT_ENTRY, we are in a very hostile environment and limited in what we can call. We have no idea what the state of the rest of the app is, and are limited to calling async-safe APIs.
See Landon Fuller's excellent article for more information about this: http://landonf.bikemonkey.org/code/objc/Reliable_Crash_Reporting.20110912.html
I can't remember the exact backtrace in the crash log, but fprintf() was calling into other functions which eventually tried to take out a lock, and hit an assertion in the pthread code.
from mach_inject.
It was fixed(hopefully) in #14
Should we close this issue?
from mach_inject.
Yes, I think it can be closed now.
from mach_inject.
Related Issues (19)
- Update Example
- swizzle applicationDidFinishLaunching using mach_inject HOT 4
- [Question] Scenario where the dylib library to load is out side of the target process' sandbox container HOT 5
- [Question] Do I need to re-inject the bundle if Finder restarts? HOT 2
- using mach_inject in xamarin.mac HOT 1
- Invalid Memory Yosemite
- mach_inject doesn't work on OSX 10.11 (El Capitan). HOT 3
- mach_inject crashes target in OSX 10.12 (Sierra), unless if launched through Xcode HOT 3
- [QUESTION] mach_inject without root permissions like Dropbox HOT 20
- Inject code to deal with NSWindow HOT 5
- Not able to Inject on Mac OS X 10.12.6 & Mac OS X 10.13 (17A291j) Beta release HOT 2
- mach_inject doesn't work on Apple processes in 10.14 unless filesystem SIP is disabled HOT 6
- help me mac os sierra
- mach_inject causes the injected process to crash after installing Mojave security update 2020-005 HOT 2
- Support for M1 (arm) HOT 1
- mach_inject in Mavericks is broken HOT 16
- mach/MACH_ERROR.h
- One err check missing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mach_inject.