Skip to content
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

asepsisctl uninstall_wrapper fails with exit 139 #10

Closed
malthejorgensen opened this issue Oct 23, 2013 · 12 comments
Closed

asepsisctl uninstall_wrapper fails with exit 139 #10

malthejorgensen opened this issue Oct 23, 2013 · 12 comments

Comments

@malthejorgensen
Copy link

When I run asepsisctl diagnose I get the following:

$ asepsisctl diagnose
DesktopServicesPriv (/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv) is not properly installed.
  => Have you installed system update recently? It might revert it back to the original version.

Then, as according to http://asepsis.binaryage.com/#diagnose, I run:

$ asepsisctl uninstall_wrapper
> sudo cp -r "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_/_CodeSignature" "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A"
> sudo cp "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_/DesktopServicesPriv" "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv"
> sudo "/Library/Application Support/Asepsis/install_name_tool" -id "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv" "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv"
failed with code pid 844 exit 139

I'm on OS X 10.7.5.

@zyxar
Copy link

zyxar commented Oct 24, 2013

me2.

v1.3.1

install_name_tool is broken.

/Library/Application\ Support/Asepsis/install_name_tool
zsh: segmentation fault  /Library/Application\ Support/Asepsis/install_name_tool

@malthejorgensen
Copy link
Author

I get the same error – though it doesn't segfault if you use sudo

@zyxar
Copy link

zyxar commented Oct 24, 2013

BTW, "install from source" does not have this issue.

@darwin
Copy link
Member

darwin commented Oct 24, 2013

install_name_tool is coming with Xcode command-line tools I think. I just grab it and package it with Asepsis.

can you guys run these two commands in terminal?
file /Library/Application\ Support/Asepsis/install_name_tool
otool -L /Library/Application\ Support/Asepsis/install_name_tool

the output should be something like this: https://gist.github.com/darwin/17095ed1934fddd570e8

this install_name_tool works on my dev machine, but you are probably missing some dependency

@zyxar
Copy link

zyxar commented Oct 24, 2013

otool -L /Library/Application\ Support/Asepsis/install_name_tool
/Library/Application Support/Asepsis/install_name_tool:
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
otool -L `which install_name_tool`
/usr/bin/install_name_tool:
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)

@darwin
Copy link
Member

darwin commented Oct 24, 2013

so it is probably too recent version which breaks with older libSystem.B.dylib(s) :(

@malthejorgensen
Copy link
Author

I ran the two commands

$ file /Library/Application\ Support/Asepsis/install_name_tool
/Library/Application Support/Asepsis/install_name_tool: Mach-O 64-bit executable x86_64

$ otool -L /Library/Application\ Support/Asepsis/install_name_tool
/Library/Application Support/Asepsis/install_name_tool:
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)

And the one from @zyxar:

$ otool -L `which install_name_tool`
/usr/bin/install_name_tool:
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)

Which is the same result as @zyxar's. I guess I will install from source :)

@darwin
Copy link
Member

darwin commented Oct 25, 2013

You don't have to install from source. Just copy /usr/bin/install_name_tool over /Library/Application Support/Asepsis/install_name_tool.

install_name_tool coming with Asepsis is too new for your machine which has older libSystem.B.dylib

I should make another Asepsis release to fix it (today!)

@darwin
Copy link
Member

darwin commented Oct 25, 2013

Fixed release with old install_name_tool is 1.3.2:
http://downloads.binaryage.com/Asepsis-1.3.2.dmg

Please test it before I put it into sparkle updater. Thanks

@distinctgrey
Copy link

Works like a charms!

Log dump:

thomass-imac:~ thomas$ asepsisctl diagnose
DesktopServicesPriv (/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv) is not properly installed.
  => Have you installed system update recently? It might revert it back to the original version.
thomass-imac:~ thomas$ asepsisctl uninstall_wrapper
> sudo cp -r "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_/_CodeSignature" "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A"
Password:
> sudo cp "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_/DesktopServicesPriv" "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv"
> sudo "/Library/Application Support/Asepsis/install_name_tool" -id "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv" "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv"
> sudo rm -rf "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_"
thomass-imac:~ thomas$ asepsisctl install_wrapper
> sudo cp -r "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A" "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_"
> sudo "/Library/Application Support/Asepsis/install_name_tool" -id "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_/DesktopServicesPriv" "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A_/DesktopServicesPriv"
> sudo cp "/Library/Application Support/Asepsis/DesktopServicesPrivWrapper" "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv"
> sudo rm -rf "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/_CodeSignature"
thomass-imac:~ thomas$ asepsisctl diagnose
Your Asepsis setup seems to be OK

@malthejorgensen
Copy link
Author

I installed the new binary you uploaded – and it worked! :)

$ asepsisctl diagnose
Your Asepsis setup seems to be OK

Thanks!

@darwin
Copy link
Member

darwin commented Oct 25, 2013

Good. Thank you for your cooperation. I have just updated the website and sparkle with v1.3.2.

@darwin darwin closed this as completed Oct 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants