#9034: Installoptionalpackages Segment Violation ----------------------------+------------------------------------- Reporter: HAL | Owner: nobody Type: bug | Status: new Priority: normal | Milestone: R1 Component: Applications | Version: R1/Development Resolution: | Keywords: crash segment violation Blocked By: | Blocking: Has a Patch: 0 | Platform: All ----------------------------+------------------------------------- Changes (by diver): * version: R1/alpha3 => R1/Development Old description: > 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. New description: 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.[[BR]] I was testing in hrev1alpha4-44597. -- -- Ticket URL: <http://dev.haiku-os.org/ticket/9034#comment:3> Haiku <http://dev.haiku-os.org> Haiku - the operating system.