[haiku-bugs] [Haiku] #9034: Installoptionalpackages Segment Violation

  • From: "HAL" <trac@xxxxxxxxxxxx>
  • Date: Sat, 29 Sep 2012 01:54:47 -0000

#9034: Installoptionalpackages Segment Violation
-----------------------+-------------------------
 Reporter:  HAL        |        Owner:  nobody
     Type:  bug        |       Status:  new
 Priority:  normal     |    Milestone:  R1
Component:  - General  |      Version:  R1/alpha3
 Keywords:             |   Blocked By:
 Blocking:             |  Has a Patch:  0
 Platform:  All        |
-----------------------+-------------------------
 Installoptionalpackage crashed when I typed
 {{{
 installoptionalpackage -f
 }}}
  in terminal to get a list of inatallable packages.
 Steps to reproduce:
 1. In terminal type installoptionalpackage -f
 2. Press Enter.
 This results in gdb and I have a back trace.
 I get similar crashes too when trying to install any application. If I
 don't click the button to show the gdb but OK instead, nothing gets
 installed.
 Here is an example:

 {{{
 installoptionalpackage -a -s SampleStudio
 /bin/installoptionalpackage: line 464: availablePackages[${pkg}]: bad
 array subscript
 ... no packages need to be installed.

 If you wish to re-install a package, run these two commands
     rm /boot/common/data/optional-packages/OptionalPackageNames
     open /boot/common/data/optional-packages/InstalledPackages
 and delete the line containing the package name(s).

 Not proceeding with installation.
 ~> rm /boot/common/data/optional-packages/OptionalPackageNames
 }}}
 When I rm /boot/common/data/optional-packages/OptionalPackageNames
 it does not make any difference when I try again. Also doing this:
 open /boot/common/data/optional-packages/InstalledPackages
 and delete the line containing the package name(s),
 the package name does not exist there anyway.
 I was testing in hrev1alpha4-44597.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9034>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: