• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: postinstall crash with "invalid argument" in Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 09:21:21 +0800

Greg, All

My script doesn't have any $n parameters.

AFAICT the crash happens before the script is even entered. SL doesn't want to exec(ve) the script at all.

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


References: 
 >postinstall crash with "invalid argument" in Snow Leopard (From: Glen Low <email@hidden>)
 >Re: postinstall crash with "invalid argument" in Snow Leopard (From: Greg Neagle <email@hidden>)

  • Prev by Date: Re: install and destination question
  • Next by Date: Re: postinstall crash with "invalid argument" in Snow Leopard
  • Previous by thread: Re: postinstall crash with "invalid argument" in Snow Leopard
  • Next by thread: Re: postinstall crash with "invalid argument" in Snow Leopard
  • Index(es):
    • Date
    • Thread