-
Notifications
You must be signed in to change notification settings - Fork 115
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
Makes anything that uses open
on Mac OS X not work properly.
#11
Comments
@solnic, @psionides, @kitschpatrol and @jcoveney, can you confirm that guys? |
Yes I've noticed that on my end. On Dec 17, 2011, at 6:48 PM, Marcin Kulikreply@reply.github.com wrote:
|
That's bad. Unfortunately I don't have any Mac at hand to debug this. |
@mr-szymanski, @kitschpatrol, can you guys run:
and paste the output? Sth weird is happening there. |
@sickill There is no |
Oh, you're right. But there is ktrace, I don't know if the usage is similar though. |
@sickill |
Can someone post an example of a command that is dying? Because I haven't run into any errors, and open still works. I'm on 10.6 though, maybe on 10.7 it breaks. As far as a strace replacement, does this work? |
@jcoveney: Example:
TextEdit will show in the dock but will hang and not open the file. Also, that did not work. |
Ok, thanks. I was able to get the error. This looks to be how to get dtruss to work:
something interesting to note: sudo open test.txt does work without issue, whereas a normal open.txt hangs on opening (which is why above you need to make sure to run the open as yourself). Here is the result: Let me know if anything else would be useful. |
@jcoveney thx for dtruss dump. I don't see stderred.dylib/so anywhere in there. Also there are no plain write() calls, there are some write_nocancel() ones but with stdout file descriptor. |
I just found out that DYLD_FORCE_FLAT_NAMESPACE=1 (not stderred.dylib) breaks Cocoa apps. Temporary solution for you would be to create alias like this:
|
Alternative to DYLD_INSERT_LIBRARIES: http://www.mikeash.com/pyblog/friday-qa-2009-01-30-code-injection.html#comment-3fb6e4b8cf65ec984e7836e2b86a2875 Needs more investigation though. |
I'm on 10.7.3 and haven't had any issues with the DYLD_FORCE_FLAT_NAMESPACE being set when launching apps from the command line. However, just to be safe I went ahead and took the piece referenced above and implemented it for stderred` with great success. You can see what I did at cehoffman@f94a9fd0dc9fd583261b77f4cb53d569394b2913. |
@cehoffman awesome! Please let me know when you'll be confident about this code and I'll be happy to merge it. |
I have just merged pull request by @cehoffman that hopefully solves this issue once for all. Whoever is still observing this thread, can you please check latest version from master and let me know how it works for you? |
It's working fine for me! 10.7.3. |
It seems it's no longer an issue, closin. |
I installed stderred on Mac OS X (10.6.8) and whenever the
open
command line utility is called, it will fail to run. The application that is opened will hang unless it is already open.The text was updated successfully, but these errors were encountered: