postinstall crash with "invalid argument" in Snow Leopard
postinstall crash with "invalid argument" in Snow Leopard
- Subject: postinstall crash with "invalid argument" in Snow Leopard
- From: Glen Low <email@hidden>
- Date: Fri, 2 Oct 2009 17:41:27 +0800
Hi All
I'm responsible for the Graphviz installer (graphviz.org) which uses
PackageMaker and has mostly worked fine on Leopard. However on Snow
Leopard, the installer now crashes at the postinstall stage. Here is a
partial capture of the crash log:
Application Specific Information:
*** NSTask: Task create for path '/tmp/PKInstallSandbox.7PAWOk/Scripts/
com.att.graphviz.cli.pkg.JpUSK2/postinstall' failed: 22, "Invalid
argument". Terminating temporary process.
*** multi-threaded process forked ***
Thread 0 Crashed:
0 com.apple.Foundation 0x00007fff831fa742
___NEW_PROCESS_COULD_NOT_BE_EXECD___ + 5
1 com.apple.Foundation 0x00007fff83130250 -[NSConcreteTask
launchWithDictionary:] + 3506
2 com.apple.PackageKit 0x00007fff8143914e -[PKInstallTask
run] + 370
As near as I can figure, the installer is trying to invoke the
postinstall shell script but fails to do so. Subsequent to the failure
I tried to sudo the postinstall script as given by the path and it
runs successfully, so there doesn't seem anything wrong with the
script on Snow Leopard.
There seems to be a few reports of similar crashes on other FLOSS
projects out on the 'net but no suggested fixes.
The only thing that occurs to me is that the script isn't prefaced
with a #!/bin/sh, and I'll test it from a NSTask invoke from a Cocoa
app... perhaps SL is stricter about what it allows to execute.
Any other suggestions?
Cheers, Glen Low
---
pixelglow software | simply brilliant stuff
www.pixelglow.com
aim: pixglen
twitter: pixelglow
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden