Re: postinstall crash with "invalid argument" in Snow Leopard
Re: postinstall crash with "invalid argument" in Snow Leopard
- Subject: Re: postinstall crash with "invalid argument" in Snow Leopard
- From: Glen Low <email@hidden>
- Date: Sat, 3 Oct 2009 10:18:15 +0800
Greg
I can confirm that putting the #!/bin/sh header into the postinstall
fixed the installd crash. I suppose execve on SL must be more careful
to obey the letter of its man page (an interpreter file begins with a
line of the form #! interpreter [arg ...]).
On 02/10/2009, at 11:16 PM, Greg Neagle wrote:
Remember that several arguments are passed to the postinstall script
by Installer - perhaps there's a bug in your script triggered by one
of the arguments?
-Greg
On Oct 2, 2009, at 2:41 AM, Glen Low wrote:
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
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